Real-Time Spot Price
Live XAU spot price refreshed every second: the mid-market price from the global over-the-counter gold market, where banks and dealers trade physical gold around the clock.
Gold Price API — XAU
Live gold spot prices for your app: the mid-market price from the global over-the-counter spot market, refreshed every second with bid and ask, per troy ounce, gram or tola, in USD or 150+ currencies.
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% | 124.69 | |
| 22k | 91.7% | 114.29 | |
| 21k | 87.5% | 109.10 | |
| 20k | 83.3% | 103.90 | |
| 18k | 75.0% | 93.51 | |
| 14k | 58.3% | 72.73 | |
| 10k | 41.7% | 51.95 | |
| 9k | 37.5% | 46.76 |
From XAU 3,878.14 USD/T.oz · refreshed hourly on this page
Key facts
CommodityPriceAPI's gold price (XAU) is a mid-market reference rate for spot gold: the midpoint between the live bid and ask, taken from real-time market data for the global over-the-counter spot market sourced from official banks and exchanges, which trades around the clock from Sunday evening to Friday evening. It is refreshed every second and returned in US dollars per troy ounce.
What's included
Live XAU spot price refreshed every second: the mid-market price from the global over-the-counter gold market, where banks and dealers trade physical gold around the clock.
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 trades around the clock from Sunday evening to Friday evening. XAU follows the spot market through every session, including the hours between the twice-daily benchmark auctions.
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 spot rate for gold (XAU): the mid-market price from the global over-the-counter spot market, including bid and ask 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.
XAU is a mid-market reference rate: the midpoint between the live bid and ask, taken from real-time market data for the global over-the-counter spot gold market, sourced from official banks and exchanges. The market is centred on London, where banks and dealers trade physical gold around the clock, and XAU is refreshed every second.
No. The LBMA Gold Price is a benchmark set by auction twice a day, at 10:30 and 15:00 London time, and administered by ICE Benchmark Administration. XAU is the live spot price from the same over-the-counter market, so it moves every second, including between those auctions.
No. COMEX gold is a futures contract in New York and usually trades slightly above spot because of time to delivery. XAU is a spot price.
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.