Investing.com XAU/USD Market Data API
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.
Endpoint health
Loading verification…
Connect your agent
Connect through MCP so your agent can find this API, read its docs, and call its endpoints.
Add the server from your terminal.
claude mcp add --transport http agent-data https://agent-data.motie.dev/mcpIn 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 keySign 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.
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
latestobjectlatest.lownumberlatest.highnumberlatest.opennumberlatest.closenumberlatest.timestampstring (date-time)sourcestringsymbolstringintervalstringtransportstringfetched_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: 60Number of source candles requested; Investing.com supports these exact values.
Example: 60
Response
sourcestringsymbolstringcandlesobject[]candles[].lownumbercandles[].highnumbercandles[].opennumbercandles[].closenumbercandles[].timestampstring (date-time)intervalstringtransportstringfetched_atstring (date-time)pointscountintegerDon’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.
An account is required to submit an extension. Prepare your request, then sign in to build.