Commodity Price API
Live gold, silver, platinum, palladium, copper, WTI, Brent and natural gas prices as clean JSON. No SDK, no OAuth dance — one key and an HTTP request.
Create your free key in your account — 100 requests a day, no card.
Get a keyAuthentication
Pass your key as a query parameter or a bearer token:
curl "https://igold.site/api/v1.php?resource=prices&key=ig_xxxxxxxx_yyyy"
# or
curl -H "Authorization: Bearer ig_xxxxxxxx_yyyy" \
"https://igold.site/api/v1.php?resource=prices"All prices
GET /api/v1.php?resource=prices
{
"ok": true,
"updatedAt": "2026-07-13T09:20:11+00:00",
"data": {
"gold": { "name": "Gold", "price": 4113.7, "unit": "oz t", "currency": "USD",
"change": -27.1, "changePercent": -0.65 },
"silver": { "name": "Silver", "price": 60.01, "unit": "oz t", "currency": "USD",
"change": -0.73, "changePercent": -1.2 }
}
}One market
GET /api/v1.php?resource=price&symbol=gold
Symbols: gold · silver · platinum · palladium · copper
crude-oil · brent · natural-gasValue a quantity
Melt-value maths without writing any conversion code — ideal for jewellers and scrap buyers. purity is a fraction (0.75 = 18K, 0.9167 = 22K).
GET /api/v1.php?resource=convert&symbol=gold&quantity=10&unit=g&purity=0.75
{
"ok": true,
"data": {
"symbol": "gold", "quantity": 10, "unit": "g", "purity": 0.75,
"pricePerGram": 132.23, "value": 991.73, "currency": "USD"
}
}
Units: g · oz (troy) · kg · tola · lbHistory
GET /api/v1.php?resource=history&symbol=silver&range=6mo
Ranges: 1mo · 3mo · 6mo · 1y · 5y (5y requires Pro)
{ "ok": true,
"data": { "symbol": "silver", "range": "6mo", "unit": "oz t",
"points": [ { "date": "2026-01-15", "close": 52.31 }, … ] } }Rate limits
| Plan | Requests / day | Keys |
|---|---|---|
| Free | 100 | 1 |
| Premium | 1,000 | 1 |
| Pro | 10,000 | 5 |
Responses include X-RateLimit-Limit and X-RateLimit-Remaining. Over the limit returns 429 until the next UTC day.
Errors
401 missing / invalid key 403 plan does not include this
429 daily limit reached 503 upstream data unavailable
{ "ok": false, "error": "Invalid or revoked API key." }Terms of use
Prices are indicative market data for information — not for trade execution or contractual settlement (see our disclaimer). Free and Premium keys require visible attribution with a link to igold.site wherever the data appears. Pro subscribers may display prices without attribution. Reselling the raw feed is not permitted on any plan.
API questions
Is the API really free?
Yes — every account gets an API key with 100 requests a day at no cost. Premium raises it to 1,000 and Pro to 10,000 with up to five keys.
How fresh is the data?
Prices are cached for up to 5 minutes, so a request returns data no more than a few minutes old. That suits websites, dashboards and shop displays; it is not intended for trade execution.
Can I show these prices on my own website?
Yes. Attribution with a link back to igold.site is required on the free and Premium tiers; Pro subscribers may display prices without attribution and can use the white-label widget.
What are the rate limits?
Every response includes X-RateLimit-Limit and X-RateLimit-Remaining headers. Exceeding your daily allowance returns HTTP 429 until the next UTC day.