GETTING STARTEDIntroductionOverview of the xauapi data APIGETTING STARTEDQuickstartCreate a key and make your first requestGETTING STARTEDAuthenticationBearer tokens, key rotation and revocationGETTING STARTEDMCP integrationConnect AI tools to gold market dataCONCEPTSBroker feedsBrokers and source identityCONCEPTSFreshness & coverageTimestamps, sampling and stale dataAPI REFERENCELatest quoteGET /v1/quote · Bid, Ask and spreadAPI REFERENCECandlesGET /v1/candles · M1, M5 and M15 OHLCAPI REFERENCEFeed statusGET /v1/status · Connection and freshnessRESOURCESErrors401, 429 and 503 response handlingRESOURCESUsage & limitsAnnual allowance, rate limits and billing

11 topics. Select a result to open it.

getting started

Quickstart

Create a key and make your first request

API reference · Code and response examples

Before you begin

Create an account, complete onboarding and subscribe to Pro or Max. The included JustMarkets feed does not require your own broker login.

1. Create your key

Open API key in your workspace and select Create API key. Pro includes one active key; Max includes ten. Save the key immediately: it is shown only once.

2. Build a request

cURL
curl 'https://api.xauapi.com/v1/quote?feed=justmarkets' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Replace YOUR_API_KEY with your private key. The production base URL is https://api.xauapi.com.

3. Inspect a response

Open the API explorer, select Quote and send a request. Check the timestamp and stale flag before using the returned price.

4. Check your usage

Visit Usage & logs to see the request. Requests admitted by the quota gate count, including feed errors. Rejected authentication, quota and rate-limit requests do not consume allowance.