Metals Convert API: XAU Ounces to USD
A metals convert API multiplies an amount in one metal or FX code by a live rate and returns result as JSON — so you do not invert /api/latest yourself. On Metals-API that is GET https://metals-api.com/api/convert with query access_key, from, to, and amount. Gold as ISO metal is XAU (troy ounce). Symbol pages also show from=USD&to={{symbol}}&amount=100.
Copper Monthly starts at $19.99/mo (2,500 calls, 10-minute updates, 10 symbols). There is no Free Trial on Metals-API. Docs: metals-api.com/documentation (Convert). Support: [email protected], Monday–Friday 7am–4pm EST.
Request: one ounce of gold to USD
curl "https://metals-api.com/api/convert?access_key=YOUR_API_KEY&from=XAU&to=USD&amount=1"
Same path as any other pair. Do not mix ISO XAU with LBMA codes (USDLBXAUPM, …). If you called /api/latest?base=USD, rates.XAU is ounces per 1 USD; rates.USDXAU is already USD per ounce — convert exists so you can skip that mental invert.
Response envelope: official Convert fixture
Documentation publishes this GBP→JPY sample (amount 25). The XAU→USD call uses the same keys — copy the live result from your key, do not invent a gold print here.
{
"success": true,
"query": {
"from": "GBP",
"to": "JPY",
"amount": 25
},
"info": {
"timestamp": 1519328414,
"rate": 148.972231
},
"historical": "",
"date": "2018-02-22",
"result": 3724.305775
}
Other endpoints on the same key
GET /api/latest— spot basket; invert or readUSDXAU.GET /api/carat— jewelry USD per gram (24K–8K), not ounces.GET /api/timeseries,/api/fluctuation,/api/ohlc— history and ranges.
MCP (live): https://metals-api.mcp.metals-api.com/mcp?api_key= — tool metals.convert counts as one REST call. Page: /mcp.
Go live
1. Register on a paid plan (Copper Monthly from $19.99) — no product trial.
2. Copy access_key.
3. Call convert with from=XAU&to=USD&amount=1.
4. Read result and info.rate.
Convert XAU with a Metals-API key →