Real-Time Spot Price
Pull live gold prices refreshed every second from aggregated global exchanges — London, New York, Shanghai.
Gold Price API — XAU
Live spot prices, and multi-currency gold data — delivered via a single, clean API endpoint built for developers.
include=carat
Jewellers price by purity, not by the ounce. Add include=carat and the response carries a per-gram rate for each karat from 24k down to 8k, so the price list on your counter or storefront updates itself.
| Karat | Purity | Purity bar | USD / gram |
|---|---|---|---|
| 24k | 100.0% | 132.64 | |
| 22k | 91.7% | 121.59 | |
| 21k | 87.5% | 116.06 | |
| 20k | 83.3% | 110.53 | |
| 18k | 75.0% | 99.48 | |
| 14k | 58.3% | 77.37 | |
| 10k | 41.7% | 55.27 | |
| 9k | 37.5% | 49.74 |
From XAU 4,125.53 USD/T.oz · refreshed hourly on this page
What's included
Pull live gold prices refreshed every second from aggregated global exchanges — London, New York, Shanghai.
Every response can be denominated in the currency of your choice. USD, EUR, PKR, JPY — you name it.
Build charting dashboards and analytics with full OHLC data across any time interval you need.
Gold never sleeps. Our CFD-based feed tracks prices across extended trading hours — capturing moves that benchmark fixes miss.
Troy ounce, gram, tola — get prices in the most popular units that your platform needs, natively.
TLS encrypted, key-authenticated requests with 99.97% uptime backed by a contractual SLA.
Simple by design
Authenticate with your key, pass a currency and unit — that's it. No SDK required, no complex setup, no vendor lock-in.
DocumentationAPI reference
Returns the latest CFD-based spot rate for gold (XAU), including bid and ask prices. Rates are sourced from live OTC market feeds and reflect real-world traded prices.
Endpoint
quote parameter is not available on that plan. Standard, Advanced and Enterprise users can request any supported quote currency. On the legacy Lite plan rates are in USD and may be delayed by up to 10 minutes.Authentication
X-API-Keyheader · stringrequiredQuery parameters
quotestringoptionalStandard & aboveincludestringoptionalgram— appends a gram field with the per-gram rate (1 troy oz ÷ 31.1035)tola— appends a tola field with the per-tola rate (1 troy oz ÷ 2.66667)carat— appends a carats object with per-gram rates for 24k, 22k, 21k, 20k, 18k, 16k, 14k, 12k, 10k, 9k, and 8k purityThe base rate, bid, and ask fields are always returned in troy ounce regardless of this parameter.
metadatabooleanoptionalmetadata object in the response. Defaults to true. Pass false to receive only the rate and keep the payload minimal. Any other value is treated as the default.Response fields
successbooleantrue for 200 responses. Indicates the request was processed successfully.timestampnumberrates.XAUobjectrate (mid-market price per troy ounce), bid (highest buy price), and ask (lowest sell price). Additional fields — gram, tola, or carats — are present only when the include parameter is passed.metadata.XAUobjectT.oz) and the quote currency (e.g. USD, or whichever currency was requested). Omitted when the request sets metadata=false.Example
$ curl https://api.commoditypriceapi.com/v3/rates/latest/xau \
-H "X-API-Key: YOUR_API_KEY" \
-G -d "quote=EUR" \
-d "include=carat"Sample values. Run the playground above for a live response.
Get started
Start with an unlimited free trial for integrations on our Basic plan — no credit card, zero commitment. When you're ready to scale, request a plan upgrade and we'll have you live within the day.