Metals Fluctuation API: XAU Day Change as JSON

Metals-API 2 min read
Metals Fluctuation API: XAU Day Change as JSON

A metals fluctuation API returns how a metal moved between two dates: start_rate, end_rate, change, and change_pct. On Metals-API that is GET https://metals-api.com/api/fluctuation with query access_key. Official docs sample uses symbols=XAU.

Copper Monthly starts at $19.99/mo (2,500 calls, 10-minute updates, 10 symbols). There is no Free Trial. Gold Monthly is $149.99. Do not mix ISO XAU with LBMA (USDLBXAUPM). Docs: metals-api.com/documentation.

Request: XAU over a range

curl "https://metals-api.com/api/fluctuation?access_key=YOUR_API_KEY&start_date=2023-12-01&end_date=2015-12-15&symbols=XAU"

Docs also show type=last_day instead of a date pair. USDXAU is a latest-only invert field — it is not on the fluctuation envelope. If base=USD, invert with 1/value the way other FX-style endpoints do.

Response: official fluctuation sample

{
"success": true,
"fluctuation": true,
"start_date": "2018-02-25",
"end_date": "2018-02-26",
"base": "EUR",
"rates": {
"USD": {"start_rate": 1, "end_rate": 1, "change": 0, "change_pct": 0},
"XAU": {
"start_rate": 0.0004900901501473,
"end_rate": 0.0004950722517565,
"change": 4.9821016092000585,
"change_pct": 1.0165684023036687
}
}
}

The sample JSON uses 2018-02-25–2018-02-26 and base=EUR. The curl dates in docs are a different pair. Copy the curl with your key for today’s print.

Same key

  • GET /api/latest?symbols=XAU — spot (use rates.USDXAU when you need USD/oz on latest).
  • GET /api/timeseries — daily series (do not set end_date to today if the product follows the other FX-style APIs).
  • GET /api/convert — amount × rate.

Go live

1. Register — paid plan (no free trial).

2. Copy access_key.

3. GET /api/fluctuation with symbols=XAU.

4. Chart change_pct.

Read XAU day change with a Metals key →