---
title: "Spot metals price API | Narwhal API"
description: "Get gold, silver, platinum and palladium spot prices, plus WTI, Brent and copper reference prices derived from futures markets, not physical spot cargo prices."
url: "https://narwhalapi.com/api/commodities/spot"
---

All APIs

# Spot metals price API

Get gold, silver, platinum and palladium spot prices, plus WTI, Brent and copper reference prices derived from futures markets, not physical spot cargo prices.

[Get a free API key](https://narwhalapi.com/signup)
[Read the docs →](https://narwhalapi.com/docs/api/commodities.md)

## First request

### Get the gold price in US dollars

```
curl --request GET \
  --url "https://api.narwhalapi.com/v1/commodities/spot/XAU/USD" \
  --header "Authorization: Bearer $NARWHAL_API_KEY"
```

Example response

```
{
  "symbol": "XAU-USD",
  "commodity_key": "gold",
  "price": "3550.6320",
  "currency": "USD",
  "unit": "troy_ounce",
  "unit_key": "troy_ounce",
  "timestamp": "2026-11-20T05:54:00Z",
  "stale": false
}
```

## Endpoints

GET Get a spot price`/v1/commodities/spot/{commodity}/{currency}`

Get a spot price or a futures-based reference price.

#### Parameters

- `commodity` required XAU, XAG, XPT, XPD, WTI (WTI crude oil), BRENT (Brent crude oil) or XCU (copper).
- `currency` required The quote currency in capitals. Gold has 31 currencies. The others are quoted in USD only.

#### The quote

- `symbol` string The commodity and quote currency, such as XAU-USD.
- `currency` string The quote currency.
- `unit` string troy_ounce for precious metals, barrel for WTI and BRENT, and pound for XCU.
- `price` string One positive indicative price as a decimal string.
- `timestamp` date-time The quote time in UTC.
- `stale` boolean Whether the quote is stale. A closed market never makes a quote stale.

---

[Full reference →](https://narwhalapi.com/docs/api/commodities/spot.md)

GET Get price bars`/v1/commodities/spot/{commodity}/{currency}/bars`

Open, high, low and close bars for gold, silver, platinum, palladium, copper, WTI and BRENT.

#### Parameters

- `commodity` required XAU, XAG, XPT, XPD, WTI (WTI crude oil), BRENT (Brent crude oil) or XCU (copper).
- `currency` required The quote currency in capitals. Gold has 31 currencies. The others are quoted in USD only.
- `interval` optional 1m, 5m, 15m, 1h, 4h or 1d. The default is 1d.
- `start` required The first bar, as a UTC time on an interval boundary. Inclusive.
- `end` required The last bar, as a UTC time on an interval boundary. Exclusive.
- `limit` optional Bars per page. The default is 100 and the most is 500.
- `cursor` optional Reuse next_cursor from the previous page with the same query.

#### Response fields

- `bars` array Closed bars from oldest to newest, each with a timestamp and open, high, low and close as decimal strings. Gold in currencies other than USD has close only.
- `next_cursor` string The cursor for the next page. Null when no bars remain.

---

[Full reference →](https://narwhalapi.com/docs/api/commodities/spot.md)

## Use cases

### Oil price per litre and gallon

Convert Brent or WTI from dollars per barrel to litres and gallons.

[Read the guide →](https://narwhalapi.com/how-to/convert-the-oil-price-to-litres-and-gallons.md)

### Copper price per kg and tonne

Convert copper from dollars per pound to kilograms and metric tonnes.

[Read the guide →](https://narwhalapi.com/how-to/convert-the-copper-price-to-kg-and-tonnes.md)

### Gold-silver ratio

Divide gold by silver for matching dates or times.

[Read the guide →](https://narwhalapi.com/how-to/calculate-the-gold-silver-ratio.md)

### Price alerts

Send an alert when gold crosses your threshold.

[Read the guide →](https://narwhalapi.com/how-to/set-up-a-commodity-price-alert.md)

### Price history as CSV

Download daily gold price history to a CSV file.

[Read the guide →](https://narwhalapi.com/how-to/download-commodity-price-history-as-csv.md)

### Prices in your currency

Get a commodity price in your own currency, such as rupiah per gram.

[Read the guide →](https://narwhalapi.com/how-to/get-a-commodity-price-in-your-currency.md)

### Commodity price indexation

Move a contract price with a commodity index between two months.

[Read the use case →](https://narwhalapi.com/use-cases/commodity-price-indexation.md)

### Procurement cost tracking

Follow input costs month over month against a base month.

[Read the use case →](https://narwhalapi.com/use-cases/procurement-commodity-costs.md)

## Coverage

- Gold[Live spot price](https://narwhalapi.com/commodities/gold.md)
- Silver[Live spot price](https://narwhalapi.com/commodities/silver.md)
- Platinum[Live spot price](https://narwhalapi.com/commodities/platinum.md)
- Palladium[Live spot price](https://narwhalapi.com/commodities/palladium.md)
- Copper[Live spot price](https://narwhalapi.com/commodities/copper.md)
- WTI crude oil[Live spot price](https://narwhalapi.com/commodities/wti-crude.md)
- Brent crude oil[Live spot price](https://narwhalapi.com/commodities/brent-crude.md)

## Related APIs

### Physical commodity prices API

Physical prices for about 120 commodities across metals, battery materials, energy, fertilizer and chemical inputs, and agricultural goods, plus US retail fuel (EIA) and World Bank monthly benchmarks. Includes palm oil. Units as published.

[Explore the API →](https://narwhalapi.com/api/commodities/physical.md)

### Exchange rate API

Current exchange rates, currency conversion and stored rate history.

[Explore the API →](https://narwhalapi.com/api/fx.md)

### Pricing

Prepaid credit, $2 per 1,000 calls, no plans or tiers.

[See pricing →](https://narwhalapi.com/pricing.md)

## FAQ

What unit are the prices in?

The unit field is troy_ounce for precious metals, barrel for WTI and BRENT, and pound for XCU. A troy ounce is not an ordinary ounce.

Which currencies are available?

Gold is quoted in 31 currencies; silver, platinum, palladium, WTI, BRENT and XCU in USD only. The coverage list shows every commodity and currency. An unknown commodity returns 404 commodity_not_supported; a known commodity with an unsupported currency returns 404 currency_not_supported.

What should I check before using the data?

Keep the quote timestamp visible in your application. A stale quote must not be presented as a fresh market price. The daily 17:00 New York metals pause (21:00 UTC in summer, 22:00 UTC in winter) is not a market closure, and quotes during it can carry stale: true. A closed market never makes a quote stale: from Friday 17:00 to Sunday 17:00 New York time you get the last price with stale: false.

## Start with a free key

Free $10 credits every month, no card.Free $10 credits a month, no card.

[Get a free API key](https://narwhalapi.com/signup)
