---
title: "Gold futures API: live COMEX gold by month · goldprice.dev"
description: "Live gold futures prices by delivery month over a REST API and MCP. The most traded month, bid, ask and the day's range. Free plan included, 15 minutes late."
canonical: "https://goldprice.dev/gold-futures-api"
---

# 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.

| 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.

```bash
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, requests

res = 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.

```json title="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
}
```

| 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](https://goldprice.dev/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](https://goldprice.dev/docs/futures). The [gold futures page](https://goldprice.dev/prices/xau-usd-futures) 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

- [Futures API reference](https://goldprice.dev/docs/futures)
- [Gold Futures Price Today](https://goldprice.dev/prices/xau-usd-futures)
- [Pricing](https://goldprice.dev/pricing)

Source: https://goldprice.dev/gold-futures-api
