Catalog / Investing.com XAU/USD Market Data

Investing.com XAU/USD Market Data API

investing.com

Live, read-only XAU/USD market data sourced from Investing.com's public chart endpoint. The quote route returns the latest chart candle close, and the history route returns source-native 15-minute OHLC candles.

  • Finance
  • gold
  • forex
  • commodities
  • market-data
2 endpointsDocs updated

Endpoint health

Loading verification…

Connect your agent

Connect through MCP so your agent can find this API, read its docs, and call its endpoints.

Setup guide

Add the server from your terminal.

Claude Code · terminal
claude mcp add --transport http agent-data https://agent-data.motie.dev/mcp

In Claude Code, run /mcp, select agent-data, then Authenticate. Sign in to your agent-data account in the browser.

Then ask your agent to use the Investing.com XAU/USD Market Data API for your task.

Call it over HTTP

Get an API key

Sign up free, generate an API key, and set it as AGENT_DATA_API_KEY in your environment. Your first 100 calls each month are free.

Fetches Investing.com's live 15-minute chart and returns its newest OHLC candle.

View call pricing
cURL · Xau usd quote
curl --request GET --get 'https://3kpkg0jfvk.execute-api.us-east-2.amazonaws.com/prod/0019f594-8540-41df-bc32-f5fc115c99ab/v1/xau-usd/quote' \
  --header "Authorization: Bearer $AGENT_DATA_API_KEY"

Endpoints

Inputs and response fields for every endpoint in this API.

GETXau usd quote/v1/xau-usd/quote

Fetches Investing.com's live 15-minute chart and returns its newest OHLC candle.

Input

No input parameters.

Response

latestobject
latest.lownumber
latest.highnumber
latest.opennumber
latest.closenumber
latest.timestampstring (date-time)
sourcestring
symbolstring
intervalstring
transportstring
fetched_atstring (date-time)
GETXau usd history/v1/xau-usd/history

Fetches source-native 15-minute XAU/USD candles. Investing.com accepts only the documented point counts 60, 70, 90, 110, 120, 140, and 160.

Input

pointscountOptionalQuery · integer, default: 60

Number of source candles requested; Investing.com supports these exact values.

Example: 60

Response

sourcestring
symbolstring
candlesobject[]
candles[].lownumber
candles[].highnumber
candles[].opennumber
candles[].closenumber
candles[].timestampstring (date-time)
intervalstring
transportstring
fetched_atstring (date-time)
pointscountinteger

Don’t see the endpoint you need?

Ask agent-data to add an endpoint or return more fields. Extensions are free and keep existing endpoints working.