Exchange rates and currency conversion API
Daily ECB reference rates for about 30 currencies back to 1999, plus official tax and central bank rates. Convert amounts or pull a history for any pair.
GET /v1/exchange-rates/convert1 creditAbout $0.001Try it
curl 'https://api.apifor.dev/v1/exchange-rates/convert?from=USD&to=IDR&amount=250' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": {
"source": "ecb",
"from": "USD",
"to": "IDR",
"amount": 250,
"rate": 18378.05056,
"result": 4594512.640321,
"date": "2026-11-27",
"requested_date": null,
"calculated": true
},
"meta": {
"attribution": {
"source": "Source: ECB statistics (euro foreign exchange reference rates)",
"license": "ESCB policy on free reuse of statistics (source must be quoted, statistics not modified)",
"license_url": "https://www.ecb.europa.eu/stats/ecb_statistics/governance_and_quality_framework/html/usage_policy.en.html",
"source_url": "https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html",
"attribution_page": "https://apifor.dev/sources",
"notice": "ECB rates are returned unchanged in `published` (units per 1 EUR). Rates against any other base are cross rates calculated by APIFor. The..."
}
}
}A real response from our OpenAPI file, with long lists and strings shortened.
Endpoints and price
| Endpoint | Credits | About |
|---|---|---|
GET /v1/exchange-rates | 1 credit | $0.001 |
GET /v1/exchange-rates/history | 1 credit | $0.001 |
GET /v1/exchange-rates/convert | 1 credit | $0.001 |
GET /v1/exchange-rates/{id} | 1 credit | $0.001 |
GET /v1/exchange-rates/coverage (Free) | Free | $0 |
USD at Starter pack prices ($5 for 5,000 credits). Calls that fail before work starts are refunded.
Coverage today
Works for any country. Country-specific data: Canada, Indonesia, Malaysia, United Kingdom, United States and European Union.
Leave country out to get every covered country, or pass one to narrow it.
Sources, row counts and country-only fields per country: GET /v1/exchange-rates/coverage, free with your API key. How coverage works
Limits
- ECB rates come out once per working day, around 16:00 CET. On weekends and holidays you get the last publication.
- Tax rates (source=tax) follow each authority: weekly, monthly or quarterly.
- History: up to 1,830 days per call.
- These are reference and tax rates, not rates a bank will give you.
Questions
Can I use a base other than EUR?
Yes. Other bases are cross rates from the ECB figures and come with calculated: true. published keeps the original per 1 EUR.
What happened to the old exchange rates dataset?
It lives on here. source=central-bank, or a request with no source (only date, currency, page, limit or country), returns the same central bank list as before.
Do I have to credit the ECB?
Yes. Quote "Source: ECB statistics." Every response carries the attribution.