Latest quote
GET /v1/quote · Bid, Ask and spread
API reference · Code and response examples
Request
Base URL: https://api.xauapi.com. Use an active private API key.
Request example
curl 'https://api.xauapi.com/v1/quote?feed=justmarkets' \
-H 'Authorization: Bearer YOUR_API_KEY'Query parameters
feed is optional and accepts justmarkets.
Example response
Illustrative values. Production responses include actual broker timestamps and freshness.
200 · application/json
{
"feed": "justmarkets",
"symbol": "XAUUSD",
"broker_symbol": "XAUUSD.m",
"bid": 4100,
"ask": 4100.2,
"spread": 0.2,
"timestamp": "2026-10-08T08:30:00.000Z",
"received_at": 1791448200100,
"sequence": 100,
"sampled": true,
"stale": false
}Response fields
| Field | Meaning |
|---|---|
bid / ask / spread | Broker prices in USD. Spread is ask minus bid. |
timestamp | UTC source tick time, not the time your request was made. |
received_at | Collector receipt time as Unix milliseconds. |
sequence | Monotonic feed sequence number. |
sampled / stale | Sampled observations may omit ticks. Stale is true after five seconds without a source tick. |
Behavior & errors
Inspect freshness even when the HTTP response is 200. Missing feed data returns 503. Authenticated requests admitted by the quota gate count toward your annual allowance.
Error handling →