Gold Price (XAU/USD)
$4,613.84
Call it yourself
Bearer token + one GET. MCP-native agents on Free already.
curl -H "Authorization: Bearer ga_live_..." \
"https://api.goldprice.dev/v1/prices?symbol=XAU-USD-SPOT"const res = await fetch(
"https://api.goldprice.dev/v1/prices?symbol=XAU-USD-SPOT",
{ headers: { Authorization: `Bearer ${process.env.GOLDPRICE_API_KEY}` } }
);
const { symbols } = await res.json();
console.log(symbols[0].price, symbols[0].sources);FAQ
Where does this price come from?
We aggregate XAU/USD spot from Pyth Network and the World Gold Council. Every source that contributes appears in the API response with its own license, timestamp, and staleness flag. No blended median, no hidden weights.How fresh is the price?
Hero pulse refreshes every 30 seconds. The underlying aggregator writes a new row each minute when sources tick. Per-source freshness is rendered to the right of the price.How far back does the chart go?
Up to 5 years of daily closes from Stooq XAU/USD. Recent days come from our live aggregator; deeper history layers in from the Stooq daily-close feed.Why does the page quote both troy ounce and gram?
Western trading desks, ETFs, and futures contracts settle in troy ounces because the LBMA daily fixing and COMEX both quote per troy ounce. Most retail markets across Asia, the Middle East, and Indonesia price gold per gram instead, because that is how jewelry and bullion are sold over the counter. goldprice.dev returns both quotes from the same underlying source data through one API, so the same spot price is exposed in whichever unit the caller wants.Can I get this via API?
GET /v1/prices?symbol=XAU-USD-SPOT for the live row, /v1/prices/history for daily-close series. Free tier covers 30 days; Pro unlocks the full window. MCP tool get_spot_price is on every tier.