Exchangeratesapi.io API
Overview
Exchangeratesapi.io provides real-time and historical foreign exchange rates for 170+ currencies, returned as JSON. Access requires a free API key from exchangeratesapi.io. It supports base currency conversion, endpoint filtering, and time-series queries, making it versatile for financial applications and e-commerce multi-currency pricing.
Beginner Tip
Sign up at exchangeratesapi.io to get your free API key. The free plan restricts the base currency to EUR and allows up to 1000 requests per month. Pass your key as a query parameter: ?access_key=YOUR_KEY.
Available Data
Example Response
{
"base": "USD",
"date": "2025-01-15",
"rates": {
"EUR": 0.92,
"GBP": 0.79,
"JPY": 149.5,
"CAD": 1.35
}
} Field Reference
base The base currency for the exchange rates (EUR on the free plan). date The date the rates were collected. rates Key-value pairs of currency codes to their exchange rate relative to the base currency. timestamp Unix timestamp of when the rates were last updated. success True if the API request was processed successfully. Implementation Example
const url = "https://exchangeratesapi.io/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Alternatives to Exchangeratesapi.io
Technical alternatives for different use cases.
ECB-sourced rates with simple REST interface
170+ currency support and historical data depth
European-focused apps using ECB reference rates
Free alternative with similar ECB-backed data
Free currency data without API key requirements
Guaranteed data freshness and update frequency
Simpler API with ECB rates, free tier available
Historical rates and time-series data
Basic currency conversion on a budget
Open-source ECB rate API, self-hostable
Self-hosting for data sovereignty requirements
Non-European currency pair coverage
Similar APIs
View All →1Forge
1Forge provides real-time forex (foreign exchange) market data via a REST API, covering currency pairs, conversion rates, and market status.
Amdoren
Amdoren provides a free currency conversion API supporting over 150 currencies with daily updated exchange rates.
CurrencyFreaks
CurrencyFreaks provides current and historical currency exchange rates for 150+ currencies via a REST API.
Currencylayer
⭐ Beginner's PickCurrencylayer provides reliable exchange rate and currency conversion data for over 168 world currencies using an easy-to-use REST API.
CurrencyScoop
CurrencyScoop (now CurrencyBeacon) provides real-time and historical exchange rates for 170+ currencies and cryptocurrencies via a REST API.