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 data · Proposed integrationCONCEPTSBroker 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.

resources

Errors

401, 429 and 503 response handling

Draft reference · Examples use sample data.

Error response format

503 · application/json
{
  "demo": true,
  "error": "FEED_STALE",
  "feed": "justmarkets",
  "message": "Fresh quotes unavailable. Check feed status before retrying."
}

Status codes

HTTPError codeNext step
401INVALID_API_KEYCreate or replace the key; verify the Authorization header.
429RATE_LIMITWait before retrying. The sample returns retry_after_seconds: 1.
429QUOTA_EXHAUSTEDAnnual allowance exhausted; no automatic overage charge.
503FEED_STALECheck feed status and wait for fresh data.

Retry deliberately

Do not retry invalid credentials or quota exhaustion in a loop. For rate limits, respect retry timing. For stale data, back off and inspect the status response.

Try an error scenario →