One call returns the most traded gold futures month with its price, bid, ask and the day's high and low. Every plan includes it: Free is 15 minutes late, Basic, Plus, and Pro are live.
What the API returns
Gold futures trade by delivery month. We follow February, April, June, August, October and December plus the two nearest months, about a year ahead. Every answer names its month.
| Call | What it returns |
|---|---|
/v1/futures/XAU | The most traded month, with bid, ask and the day's range |
/v1/futures/XAU?month=YYYY-MM | One named month, such as 2027-04 |
/v1/futures/XAU/months | Every month we follow, with the most traded one marked |
Make the first request
This request returns the most traded gold month. Put your key in the Authorization: Bearer header.
curl "https://api.goldprice.dev/v1/futures/XAU" \ -H "Authorization: Bearer $GOLDPRICE_API_KEY"const res = await fetch("https://api.goldprice.dev/v1/futures/XAU", { headers: { Authorization: `Bearer ${process.env.GOLDPRICE_API_KEY}` },})const data = await res.json()if (!res.ok) throw new Error(data.error)import os, requestsres = requests.get( "https://api.goldprice.dev/v1/futures/XAU", headers={"Authorization": f"Bearer {os.environ['GOLDPRICE_API_KEY']}"}, timeout=10,)res.raise_for_status()data = res.json()Read the answer
price is the middle of the best bid and best ask, in US dollars per troy ounce. bid and ask are the best prices to sell and buy. The example below was made on November 26, 2026 at 12:41 AM UTC and is not a current price.
{ "symbol": "XAU", "exchange": "COMEX", "contract_month": "2027-02", "most_traded": true, "price": 3600.95, "bid": 3600.80, "ask": 3601.10, "day_high": 3619.80, "day_low": 3595.60, "currency": "USD", "unit": "troy_ounce", "timestamp": "2026-11-26T00:41:10Z", "delayed": false}| Field | Meaning |
|---|---|
symbol | Metal code: XAU, XAG, HG, XPT or XPD |
exchange | The exchange: COMEX, NYMEX, or SHFE for Shanghai gold |
contract_month | The delivery month of the contract, as YYYY-MM |
most_traded | True when this is the month with the most trading |
price | The middle of the best bid and best ask |
bid, ask | Best bid and best ask; null when the market shows none |
day_high, day_low | Highest and lowest price of the trading day; null when there is none yet |
currency | Currency of the price: USD, or CNY on SHFE |
unit | troy_ounce for gold, silver, platinum and palladium, pound for copper, gram on SHFE |
timestamp | When we received the price (UTC) |
delayed | True when our live feed is down: the price comes from a backup that runs late, or cannot be confirmed while the market trades |
state, message, next_open | Only while the market is closed: closed, with message and next_open (UTC) |
What people build with it
- A trading screen that shows spot and the next futures month side by side
- A chart of the gap between gold spot and futures, month by month
- A hedging tool that prices a purchase for delivery in a later month
- An agent that answers what gold futures trade at right now
Plans
Futures follow the spot rule on every plan. The full list is on pricing.
| Plan | Free | Basic | Plus | Pro |
|---|---|---|---|---|
| Futures prices | 15 minutes late | Live | Live | Live |
| Requests a month | 5,000 | 100,000 | 300,000 | 1,000,000 |
Next
Every parameter and error is in the futures reference. The gold futures page shows every month on one screen.