DocsDocs

Gold futures API

Live gold futures prices for every delivery month

26 Nov 2026 · 2 min read

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.

CallWhat it returns
/v1/futures/XAUThe most traded month, with bid, ask and the day's range
/v1/futures/XAU?month=YYYY-MMOne named month, such as 2027-04
/v1/futures/XAU/monthsEvery 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.

Shell
curl "https://api.goldprice.dev/v1/futures/XAU" \  -H "Authorization: Bearer $GOLDPRICE_API_KEY"
JavaScript
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)
Python
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.

Example answer, November 26, 2026 at 12:41 AM UTC
{  "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}
FieldMeaning
symbolMetal code: XAU, XAG, HG, XPT or XPD
exchangeThe exchange: COMEX, NYMEX, or SHFE for Shanghai gold
contract_monthThe delivery month of the contract, as YYYY-MM
most_tradedTrue when this is the month with the most trading
priceThe middle of the best bid and best ask
bid, askBest bid and best ask; null when the market shows none
day_high, day_lowHighest and lowest price of the trading day; null when there is none yet
currencyCurrency of the price: USD, or CNY on SHFE
unittroy_ounce for gold, silver, platinum and palladium, pound for copper, gram on SHFE
timestampWhen we received the price (UTC)
delayedTrue 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_openOnly 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.

PlanFreeBasicPlusPro
Futures prices15 minutes lateLiveLiveLive
Requests a month5,000100,000300,0001,000,000

Next

Every parameter and error is in the futures reference. The gold futures page shows every month on one screen.

Questions

Is the gold futures API free?

Yes. Free includes gold futures with prices 15 minutes late and 5,000 requests a month. Basic, Plus, and Pro get live prices. See [pricing](/pricing).

Which gold futures month do I get?

The month with the most trading, named in contract_month. Ask for any other month we follow with ?month=YYYY-MM.

Why is the futures price higher than spot?

A futures price is for gold delivered in a later month, so it includes the cost of holding gold until then. The gap usually grows with each month further out.

Can an AI agent read gold futures?

Yes. The MCP tool get_futures_price returns the same answer as the API. Setup is in the [MCP docs](/docs/mcp).

Keep reading

Start with a free API key

Free includes 5,000 requests a month with gold futures 15 minutes late. No card needed.

Get a free key