ExchangeRate-API API
Overview
ExchangeRate-API delivers accurate foreign exchange rates for 160+ currencies, sourced from major financial data providers and updated hourly. The free tier (no credit card required) allows up to 1,500 requests per month and returns rates relative to any base currency. It also offers historical data and currency conversion endpoints on paid plans.
Beginner Tip
Sign up for a free API key at exchangerate-api.com — no credit card needed for the free tier (1,500 requests/month). The standard endpoint is `https://v6.exchangerate-api.com/v6/YOUR_KEY/latest/USD`. Replace `USD` with any ISO 4217 currency code to set the base currency.
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
result Status of the request — `success` if everything worked, or an error code if not. base_code The base currency code you requested rates relative to (e.g., `USD`). conversion_rates Map of currency codes to their exchange rate relative to the base currency. time_last_update_unix Unix timestamp of when the exchange rates were last updated. time_next_update_unix Unix timestamp of the next scheduled rates update. Implementation Example
const url = "https://www.exchangerate-api.com/";
// 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
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.