BLACK FRIDAY

All plans up to 50% off, only Nov 23 – Dec 6. Don’t miss out!

Get It Now

Forex API · Forex

Gold / US Dollar (XAUUSD) Forex API - Real-Time Quotes & Historical Data

Access real-time forex quotes, OHLCV historical data and WebSocket streams for Gold / US Dollar (XAUUSD) on Forex. Free API key included.

  • Real-time quote for XAUUSD on Forex
  • OHLCV historical K-line data from 1-min to monthly
  • WebSocket streaming for real-time price updates
  • Free API key to start - simple REST & WebSocket access
import requests
import pandas as pd

# kType = bar interval (1 = 1-minute ... 10 = monthly, see docs)
url = "https://api.itick.org/forex/kline"
params = {"region": "GB", "code": "XAUUSD", "kType": 8, "limit": 500}
headers = {"accept": "application/json", "token": "YOUR_API_TOKEN"}

bars = requests.get(url, params=params, headers=headers, timeout=10).json()["data"]
df = pd.DataFrame(bars).rename(columns={
    "t": "time", "o": "open", "h": "high", "l": "low", "c": "close", "v": "volume"
})
df["time"] = pd.to_datetime(df["time"], unit="ms")
df.to_csv("XAUUSD_ohlcv.csv", index=False)
print(df.tail())
Gold / US DollarGold / US Dollar
Gold / US Dollar
3636.95-15.38 (-0.42%)
Code: XAUUSDCurrency: USDUpdated: 2026-11-30 18:04:27 UTC
Open3656.44
High3704.49
Low3608.63
Prev Close3652.33
Volume2,046,091
Turnover7,479,921,913
1W Change-0.01%
1M Change-7.91%

AboutGold / US Dollar

XAU/USD represents the spot price of gold against the US dollar. Gold is one of the most traded precious metals, widely regarded as a safe-haven asset and a hedge against inflation.

API Access

Use the REST and WebSocket endpoints below with your API token.

REST Endpointhttps://api.itick.org/forex/quote?region=GB&code=XAUUSD
WebSocket Endpointwss://api.itick.org/forex

Get XAU/USD (Gold) forex data with Python

Query real-time gold spot prices and historical data for XAU/USD via REST API.

  1. Sign up and get your free API token
  2. Use the /forex/quote endpoint for real-time rates
  3. Use /forex/kline for historical bars
import requests
import pandas as pd

# kType = bar interval (1 = 1-minute ... 10 = monthly, see docs)
url = "https://api.itick.org/forex/kline"
params = {"region": "GB", "code": "XAUUSD", "kType": 8, "limit": 500}
headers = {"accept": "application/json", "token": "YOUR_API_TOKEN"}

bars = requests.get(url, params=params, headers=headers, timeout=10).json()["data"]
df = pd.DataFrame(bars).rename(columns={
    "t": "time", "o": "open", "h": "high", "l": "low", "c": "close", "v": "volume"
})
df["time"] = pd.to_datetime(df["time"], unit="ms")
df.to_csv("XAUUSD_ohlcv.csv", index=False)
print(df.tail())

FAQ: Gold / US Dollar (XAUUSD) Forex Data API

How do I get real-time Gold / US Dollar (XAUUSD) price data?

Sign up for a free iTick account, get your API token, and call the /forex/quote endpoint with region=GB&code=XAUUSD. You can also subscribe via WebSocket for live streaming updates.

What data is available for Gold / US Dollar (XAUUSD)?

iTick provides real-time quotes (price, bid/ask, volume), OHLCV K-line bars from 1-minute to monthly, and tick-by-tick trade data for Gold / US Dollar on Forex.

Is there a free plan for Gold / US Dollar (XAUUSD) data?

Yes. iTick offers a free plan that includes real-time quotes, historical K-line and tick data for personal use and evaluation. Paid plans add higher rate limits and commercial usage rights.

How do I access Gold / US Dollar (XAUUSD) historical data?

Use the /forex/kline endpoint with region=GB&code=XAUUSD and choose your interval via the kType parameter (1=1min, 8=daily, etc.).

What is the latest price of Gold / US Dollar (XAUUSD)?

As of 2026-11-30 18:04:27 UTC, the latest price of Gold / US Dollar (XAUUSD) is 3636.95 USD.

Start building with XAUUSD data today

Get a free API key and access real-time quotes, historical data and WebSocket streams in minutes.