Historical Forex Data API

Query exchange-rate history by day, date range, hour, or daily OHLC. Choose a base currency and the pairs you need, then receive structured JSON ready for applications, analysis, and charts.

Get a Free API Key Read the API Reference

Daily history

Request one date in YYYY-MM-DD format or use yesterday. Free plans include the latest 30 days; paid plans unlock older stored history.

Date ranges

Retrieve daily rates across a timeframe. Free plans support recent ranges up to 5 days and one quote currency; paid plans support up to 365 days and multiple currencies.

Hourly observations

Receive 24 observations per day for one quote currency. Free plans include the latest 2 days; paid plans can query stored hourly data from June 19, 2025.

Daily OHLC

Get open, high, low, and close values for one pair and GMT trading day. Free plans include the latest 5 days; paid plans unlock older stored OHLC.

Put exchange-rate history to work

Use consistent historical rates across customer-facing products, financial operations, and market analysis without maintaining your own currency archive.

Charts and dashboards

Plot currency movements and give customers useful historical context.

Financial reporting

Convert transactions and balances using rates from the relevant date.

Backtesting

Evaluate strategies against daily, hourly, or OHLC currency observations.

Reconciliation

Reproduce past conversions with a clear date, base, and quote currency.

One request, ready-to-use rates

Choose a historical date, base currency, and the currencies you need. ForexRateAPI returns structured JSON that is easy to use in applications, spreadsheets, and data pipelines.

The free plan includes the latest 30 days of daily history, so you can test the integration before choosing a paid plan.

See parameters and response fields
GET /v1/2026-03-17
    ?base=USD
    &currencies=EUR,GBP,JPY

{
  "base": "USD",
  "rates": {
    "EUR": 0.9291,
    "GBP": 0.7932,
    "JPY": 148.67
  }
}

Swap 2026-03-17 for any supported date, or use yesterday for the most recent close. A single pair is just ?base=USD&currencies=EUR.

Choose the history you need

Start with recent data on the free plan. Upgrade when you need older history, longer ranges, or multiple currencies in one timeframe.

DataFree planPaid plans
Daily historyLatest 30 daysOlder stored dates
Date rangesRecent ranges up to 5 days and one quote currencyUp to 365 days and multiple currencies
Hourly observationsLatest 2 daysStored history from June 19, 2025 in windows up to 7 days
Daily OHLCLatest 5 days and one currency pairOlder stored dates

Every request requires an API key and counts toward your plan’s monthly quota. See plans and quotas or the complete API reference.

Try the historical Forex API

Create an API key, choose a date and currency pair, and make your first request.

Get a Free API Key Use ForexRateAPI with Python