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.

resources

Errors

401, 429 and 503 response handling

API reference · Code and response examples

Error response format

503 · application/json
{
  "error": "FEED_UNAVAILABLE"
}

Status codes

HTTPError codeNext step
400UNKNOWN_FEED / INVALID_INTERVALUse justmarkets and M1, M5 or M15.
401UNAUTHORIZEDCreate or replace the key; verify the Authorization header.
429RATE_LIMITEDWait for the seconds indicated by the Retry-After response header.
403ENTITLEMENT_EXPIREDCheck your access period and billing status.
503HISTORY_UNAVAILABLECandle history is unavailable. Retry with bounded backoff.
429QUOTA_EXCEEDEDAnnual allowance exhausted; no automatic overage charge.
503FEED_UNAVAILABLECheck 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.

Quotes, candles and status can return HTTP 200 with stale: true. Inspect freshness independently of HTTP status. Successful data responses include x-ratelimit-limit and x-quota-remaining; error responses may omit these headers.

Open explorer →