Forex data API
Forex API
Get foreign exchange rates for 171 currencies as they move: the latest rate updated every 60 seconds (Medium plan and up) and intraday series at quarter-hour or hour intervals (Pro plan and up) and minute intervals (Medium plan and up). One rate per currency pair and point in time, as JSON or CSV.
Example request and response
The /v3/range endpoint, with the example response from the documentation. Add accuracy=minute, quarter_hour or hour for intraday data, or format=csv for one row per point and currency.
curl "https://api.currencyapi.com/v3/range?datetime_start=2022-01-01T00:00:00Z&datetime_end=2022-01-02T23:59:59Z¤cies=AED,EUR" \
-H "apikey: YOUR-API-KEY"
{
"data": [
{
"datetime": "2022-01-01T23:59:59Z",
"currencies": {
"AED": { "code": "AED", "value": 3.67306 },
"EUR": { "code": "EUR", "value": 0.918456 }
}
},
{
"datetime": "2022-01-02T23:59:59Z",
"currencies": {
"AED": { "code": "AED", "value": 3.67308 },
"EUR": { "code": "EUR", "value": 0.919012 }
}
}
]
}
Intraday accuracy and limits
- accuracy=minute
- Up to 6 hours per request, up to 7 days back. Medium plan and up.
- accuracy=quarter_hour
- Up to 24 hours per request, up to 7 days back. Pro plan and up.
- accuracy=hour
- Up to 7 days per request, up to 3 months back.
- accuracy=day
- Up to 366 days per request, back to 1999.
- accuracy=week | month
- The rate at the end of each week (up to 1,830 days) or month (any span back to 1999).
Use cases
Trading and treasury dashboards
Chart today's FX moves at minute resolution and compare them with the last weeks or years.
Payments and FX margins
Quote cross-border payments from rates that are at most 60 seconds old, and log the rate you used.
Backtesting and research
Download daily, weekly or month-end FX series as CSV for spreadsheets, notebooks and models.
Intraday data from the Pro plan
The range endpoint is part of the Pro plan ($29.99 a month) and above, 60-second updates of the Medium plan ($69.99 a month) and above. The free plan includes 300 requests a month of daily-updated latest and historical rates to try the API.
Other currency APIs from Everapi
currencyapi.com is made by Everapi GmbH. Two sister products may fit your project better:
Frequently asked questions
Is this real-time forex data?
Do you return bid and ask prices or OHLC candles?
Which currency pairs are covered?
Is there a free forex API plan?
Can I get the data as CSV?
Related
More currency data
Free tools: currency converter · historical converter · bulk converter · converter widget