Live gold and silver spot prices plus 768 historical closes (monthly closes from 2000-09-01, then daily closes from 2024-08-01 through 2026-08-17), as JSON. No API key, no account, no rate limit, and CORS enabled so you can call it straight from the browser.
Prices last updated
GET https://www.chartgoldprice.com/api/dataThere is an OpenAPI 3.0 specification for this endpoint, which Postman, Insomnia, Swagger UI and most client generators can import directly.
| Parameter | Values | Effect |
|---|---|---|
| history | gold | silver | both | Includes the full close series. Omit it for the small current-price response. |
Generated from the live data right now, so it cannot drift from what you actually receive. Full responses also include kilogram, tola and pavan prices, licence and attribution metadata.
{
"meta": {
"source": "ChartGoldPrice",
"currency": "USD",
"updated_at": "2026-08-17T18:32:06.926Z"
},
"prices": {
"gold": {
"symbol": "XAU",
"troy_ounce": 4401.795,
"gram": 141.521
},
"silver": {
"symbol": "XAG",
"troy_ounce": 65.762,
"gram": 2.1143
},
"gold_silver_ratio": 66.94
},
"history": {
"available": {
"gold": 768,
"silver": 768
}
}
}curl 'https://www.chartgoldprice.com/api/data'const res = await fetch(
'https://www.chartgoldprice.com/api/data'
);
const { prices } = await res.json();
console.log(prices.gold.troy_ounce);import requests
r = requests.get(
"https://www.chartgoldprice.com/api/data"
)
print(r.json()["prices"]["gold"]["gram"])Free to use, including commercially, with attribution to ChartGoldPrice and a link back to https://www.chartgoldprice.com. See the terms for the full text.
These are indicative reference prices, may be delayed, and are not trading quotes or financial advice. Do not settle trades against them. The service is provided as-is with no uptime guarantee — if you need an SLA, use a commercial provider.
Yes. There is no API key, no account, no rate limit and no paid tier. It reads the same committed price snapshots the website itself renders from, so serving it costs nothing per request. Attribution with a link back is appreciated and is the only condition of use.
Spot prices refresh twice daily on a schedule, and every response carries an updated_at timestamp so you can see exactly how fresh the figures are rather than guessing. These are indicative reference prices, not live trading quotes — do not settle trades against them.
Add ?history=gold, ?history=silver or ?history=both to the endpoint. That returns the full series as date and close pairs — monthly closes from 2000-09-01, then daily closes from 2024-08-01 through 2026-08-17, 768 points in total. The same data is downloadable as CSV from the chart pages if you would rather work in a spreadsheet.
Yes. The endpoint sends Access-Control-Allow-Origin: *, so it can be fetched directly from client-side JavaScript without a proxy. Responses are cached at the CDN edge, so repeated calls are fast and cost nothing extra.
Every price is returned simultaneously per troy ounce, gram, kilogram, tola and pavan, so there is no need to convert client-side. The gold-to-silver ratio is included as well.