ExchangeRate-API API

⭐ Beginner's Pick Currency Exchange / API Key Intermediate HTTPS CORS
Varies by plan (check documentation)

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

exchange rate between currencies
conversion result
supported currency list
historical rates
Use case: Integrate free currency conversion data into web and mobile applications

Example Response

JSON 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

403 Forbidden / invalid-key error Using an incorrect, expired, or unactivated API key.
Confirm the key in your dashboard at exchangerate-api.com. New keys may take a few minutes to activate after registration.
quota-reached in response Exceeded the free plan's 1,500 monthly request limit.
Upgrade to a paid plan or wait until the next billing cycle. Cache responses locally to reduce API calls.
Currency code not found Using a non-standard or lowercase currency code (e.g., `usd` instead of `USD`).
Always use uppercase ISO 4217 codes (e.g., `USD`, `EUR`, `JPY`). Check `/v6/YOUR_KEY/codes` for the full supported list.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 15/20
🔒 Security 15/15
🛠 Developer XP 17/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS YES
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →