About Widget Dashboard →

Free Gold Price API

Live OHLCV data · Gold, silver, oil · JSON format · No API key · 100 req/hr · CORS enabled

Base Endpoint

GET https://aurumrates.com/api/chart

Parameters

ParameterRequiredValuesDescription
symbolYesGC=F, SI=F, CL=F, etc.Yahoo Finance commodity symbol
rangeYes1d, 5d, 1mo, 3mo, 6mo, 1y, 5y, maxTime range for historical data
intervalYes1m, 5m, 15m, 1h, 1d, 1wk, 1moData interval (1m only for 1d range)

Supported Symbols

SymbolCommodityExchange
GC=FGoldCOMEX
SI=FSilverCOMEX
CL=FCrude Oil (WTI)NYMEX
BZ=FBrent CrudeICE
PL=FPlatinumNYMEX
PA=FPalladiumNYMEX
HG=FCopperCOMEX
NG=FNatural GasNYMEX

Example Request

// Fetch today's gold prices (5-minute intervals) fetch('https://aurumrates.com/api/chart?symbol=GC=F&range=1d&interval=5m') .then(res => res.json()) .then(data => { const result = data.chart.result[0]; const timestamps = result.timestamp; const quotes = result.indicators.quote[0]; console.log('Latest price:', quotes.close[quotes.close.length - 1]); });

Example Response (Abbreviated)

{ "chart": { "result": [{ "meta": { "symbol": "GC=F", "currency": "USD", "exchangeName": "CMX", "regularMarketPrice": 4380.50 }, "timestamp": [1712880000, 1712880300, ...], "indicators": { "quote": [{ "open": [4375.20, 4376.80, ...], "high": [4378.50, 4380.10, ...], "low": [4374.90, 4376.20, ...], "close": [4376.80, 4379.50, ...], "volume": [1250, 890, ...] }] } }] } }

Rate Limits & Caching

Embed Widget

For a no-code solution, use the AURUM embed widget - one line of HTML to add live gold prices to your site.

API FAQ

Is the API free? +
Yes. Free for up to 100 requests per hour. No API key required. CORS enabled for browser-side requests. Data sourced from major exchanges via Yahoo Finance and cached for 5 minutes.
What data format is returned? +
JSON with OHLCV (Open, High, Low, Close, Volume) data arrays plus timestamps. Compatible with any charting library (Chart.js, D3, Highcharts, TradingView).
Can I use this in production? +
The free tier is suitable for personal projects, small apps, and prototypes. For production applications with higher volume needs, contact partnerships@aurumrates.com for enterprise access.
How fresh is the data? +
Data is cached for 5 minutes. During market hours, you will see prices within 5 minutes of real-time. For the live 5-second updates shown on aurumrates.com, the frontend uses a different update mechanism.
Developer: Embed Widget · About AURUM · Contact