Gold Price API: Live & Historical XAU Rates

Symbol: XAU | Category: Precious Metal | Exchange: GLOBAL

Get real-time and historical Gold prices with our comprehensive Metals-API.

Historical Coverage

Since 1999-01-04

Data available from this date

Last Update

2026-11-10

Last price update date

Unit Type

Per Troy Ounce

Price per unit

Exchange

GLOBAL

Precious Metal

What is Gold?

Gold (XAU) is a precious metal symbol available through the Metals-API. It provides real-time and historical pricing data that can be accessed via our comprehensive API.

This symbol is classified under the Precious Metal category and is traded on the GLOBAL exchange.

Our API offers seamless integration to access current prices, historical data, fluctuations, and time-series information for Gold.

Gold Price Data Available in the API

Metals-API delivers the gold price (XAU) in JSON through a simple REST API: the latest rate, daily historical prices back to 1999-01-04, time series, fluctuation and OHLC data, in over 200 currencies.

SymbolWhat it gives you
Gold spot (XAU) Reference gold price per troy ounce, with daily history since 1999-01-04.
Gold bid (XAU-BID) Bid side of the gold quote, available since 2023-05-17.
Gold ask (XAU-ASK) Ask side of the gold quote, available since 2023-05-17.
LBMA Gold AM (LBXAUAM) LBMA morning gold price, available since 2021-11-30.
LBMA Gold PM (LBXAUPM) LBMA afternoon gold price, available since 2021-11-30.
COMEX gold front month (GC1) Gold futures front-month contract on COMEX, available since 2023-09-05.
Gold continuous contract (GC00) COMEX gold continuous futures contract, available since 2023-09-06.
City gold rates (e.g. AHME-22k) Gold rates by city in 18k, 22k and 24k, such as Ahmedabad Gold 22k.

Gold Price in JSON: Example Response

Example request and response (sample from November 1, 2026; not a live price):

https://metals-api.com/api/latest?access_key=YOUR_ACCESS_KEY&base=USD&symbols=XAU
{
    "success": true,
    "timestamp": 1793513624,
    "base": "USD",
    "date": "2026-11-01",
    "rates": {
        "USD": 1,
        "XAU": 0.00025810448069378,
        "USDXAU": 3874.4
    }
}

With base=USD, rates.XAU is the amount of gold, in troy ounces, that 1 US dollar buys. To get the gold price per ounce, invert it: 1 รท 0.00025810448 โ‰ˆ 3,874.40 USD. To skip that step, the latest endpoint also returns rates.USDXAU (USD per XAU): the price of one troy ounce of gold in US dollars, ready to use.

Gold Price API: Frequently Asked Questions

How do I get the current gold price in USD?

Call the latest endpoint with base=USD and symbols=XAU. Read rates.USDXAU for the price of one troy ounce in US dollars, or compute 1 / rates.XAU.

What is the difference between rates.XAU and rates.USDXAU?

With USD as the base, rates.XAU is the amount of gold (in troy ounces) one US dollar buys, and rates.USDXAU is the price of one troy ounce in US dollars. USDXAU is only returned by the latest endpoint.

How far back does historical gold price data go?

Daily historical gold (XAU) prices are available from 1999-01-04 through the historical and time-series endpoints.

Can I get gold prices in currencies other than USD?

Yes. Set the base parameter to the currency you need, such as EUR, GBP or INR. Rates are always returned relative to the base currency you choose.

Does the API include bid/ask, LBMA fixings and gold futures?

Yes. Use XAU-BID and XAU-ASK for the bid and ask quotes, LBXAUAM and LBXAUPM for the LBMA AM and PM gold prices, and GC1 or GC00 for COMEX gold futures.

API Usage Examples for XAU

1. Latest Rates Endpoint

Get the most recent Gold price. Depending on your subscription plan, the API's latest endpoint returns real-time data updated at different intervals.

API Request:

https://metals-api.com/api/latest?access_key=YOUR_API_KEY&base=USD&symbols=XAU

Request Parameters:

ParameterDescription
access_key[required] Your API Key.
base[optional] Base currency. Default USD.
symbols[required] Comma-separated metal or currency codes.

API Response:

{
    "success": true,
    "timestamp": 1519296206,
    "base": "USD",
    "date": "2024-01-15",
    "rates": {
        "XAU": 2650.45
    }
}
2. Historical Rates Endpoint

Get historical Gold price for a specific date. Historical rates are available since January 1999.

API Request:

https://metals-api.com/api/2024-01-15?access_key=YOUR_API_KEY&base=USD&symbols=XAU

Request Parameters:

ParameterDescription
YYYY-MM-DD[required] Date for historical rates.
access_key[required] Your API Key.
base[optional] Base currency. Default USD.
symbols[required] Comma-separated symbol codes.

API Response:

{
    "success": true,
    "historical": true,
    "date": "2024-01-15",
    "base": "USD",
    "rates": {
        "XAU": 2650.45
    }
}
3. Convert Endpoint

Convert any amount from one currency to Gold, or from XAU to another currency. Historical conversion is also supported.

API Request (Real-time):

https://metals-api.com/api/convert?access_key=YOUR_API_KEY&from=USD&to=XAU&amount=100

API Request (Historical):

https://metals-api.com/api/convert?access_key=YOUR_API_KEY&from=USD&to=XAU&amount=100&date=2024-01-15

Request Parameters:

ParameterDescription
access_key[required] Your API Key.
from[required] Source currency or metal code.
to[required] Target currency or metal code.
amount[required] Amount to convert.
date[optional] Date for historical conversion (YYYY-MM-DD).
4. Time-Series Endpoint

Query daily historical Gold rates between two dates. Do not use the current date as end_date.

API Request:

https://metals-api.com/api/timeseries?access_key=YOUR_API_KEY&start_date=2024-01-01&end_date=2024-01-15&symbols=XAU

Request Parameters:

ParameterDescription
access_key[required] Your API Key.
start_date[required] Start date (YYYY-MM-DD).
end_date[required] End date (YYYY-MM-DD).
base[optional] Base currency. Default USD.
symbols[required] Symbol code(s).
5. Fluctuation Endpoint

Retrieve how Gold prices changed between two dates: start/end rates, absolute and percentage change. One symbol per request.

API Request:

https://metals-api.com/api/fluctuation?access_key=YOUR_API_KEY&start_date=2024-01-01&end_date=2024-01-15&symbols=XAU
6. Open/High/Low/Close (OHLC) Price Endpoint

Get open, high, low, and close price for Gold on a specific date. Open/close are based on UTC day. One symbol per request.

API Request:

https://metals-api.com/api/open-high-low-close/2024-01-15?access_key=YOUR_API_KEY&base=USD&symbols=XAU

Uses and Related Industries

Primary Industries

  • Jewelry & Appraisal: Used for valuation and pricing of precious metal components
  • Mining & Refining: Monitor spot prices for production and sales strategies
  • Financial Services: Portfolio analysis, risk management, and commodity exposure
  • Trading Platforms: Real-time metals and forex pricing integration
  • Manufacturing: Cost estimation and supply chain decisions for metal-intensive industries

Specific Applications

  • Real-time spot price tracking and monitoring
  • Historical performance and trend analysis
  • Portfolio valuation and benchmarking
  • Risk assessment and financial modeling
  • Currency conversion and multi-currency reporting

Factors Influencing XAU Price

Market Factors

  • Supply and Demand: Mining output, recycling, and industrial demand
  • Economic Indicators: GDP growth, inflation, and interest rates
  • Currency Movements: USD and major forex pairs (metals often quoted in USD)
  • Investor Sentiment: Safe-haven flows and risk appetite

Technical Factors

  • Volume and Liquidity: Trading volume and market depth
  • Price Momentum: Short and long-term trends
  • Support and Resistance: Technical levels and chart patterns
  • Volatility: Options and derivatives market activity

External Factors

  • Geopolitical Events: Stability and trade policies
  • Regulatory Changes: Environmental and mining regulations
  • Global Markets: Equity and bond market correlations
  • Central Bank Policy: Monetary policy and reserve demand

Related Symbols - Precious Metal

Other related symbols in the same category you can query:

Explore More

Explore all available metals and currencies:

Ready to Get Started?

Get access to real-time Gold data

Get API Key