Currency Exchange API

Real-time & Historical Forex Data

Built for developers who need reliable, fast currency data. 170+ currencies, 6 powerful endpoints, sub-100ms response times.

170+
Currencies
6
Endpoints
<50ms
Avg Latency
99.9%
Uptime
⚡ In-memory data 🔒 API Key Auth 🌎 Global Edge Network 📈 Historical Data

API Endpoints

All endpoints return JSON with a consistent { success, data } wrapper. Authenticate via X-API-Key header or ?apikey= query parameter.

GET /v1/rates Get all exchange rates for a base currency
ParameterTypeDefaultDescription
basestringUSDBase currency code
symbolsstringallComma-separated currency codes to filter
curl -H "X-API-Key: YOUR_KEY" \
  "https://currency-api.YOUR_DOMAIN.workers.dev/v1/rates?base=USD"
GET /v1/convert Convert an amount between two currencies
ParameterTypeRequiredDescription
fromstringYesSource currency code
tostringYesTarget currency code
amountnumberYesAmount to convert
curl -H "X-API-Key: YOUR_KEY" \
  "https://currency-api.YOUR_DOMAIN.workers.dev/v1/convert?from=USD&to=EUR&amount=100"
GET /v1/currencies List all supported currencies with names
curl -H "X-API-Key: YOUR_KEY" \
  "https://currency-api.YOUR_DOMAIN.workers.dev/v1/currencies"
GET /v1/historical Get historical rates for a specific date
ParameterTypeRequiredDescription
datestringYesDate in YYYY-MM-DD format
basestringNoBase currency (default: USD)
symbolsstringNoComma-separated currency codes
curl -H "X-API-Key: YOUR_KEY" \
  "https://currency-api.YOUR_DOMAIN.workers.dev/v1/historical?date=2024-01-15&base=USD"
GET /v1/timeseries Get day-by-day rates over a date range
ParameterTypeRequiredDescription
startstringYesStart date (YYYY-MM-DD)
endstringYesEnd date (YYYY-MM-DD)
basestringNoBase currency (default: USD)
symbolsstringNoComma-separated currency codes
curl -H "X-API-Key: YOUR_KEY" \
  "https://currency-api.YOUR_DOMAIN.workers.dev/v1/timeseries?start=2024-01-01&end=2024-01-31&base=USD&symbols=EUR,GBP"
GET /v1/fluctuation Get rate fluctuations and change percentages
ParameterTypeRequiredDescription
startstringYesStart date (YYYY-MM-DD)
endstringYesEnd date (YYYY-MM-DD)
basestringNoBase currency (default: USD)
symbolsstringNoComma-separated currency codes
curl -H "X-API-Key: YOUR_KEY" \
  "https://currency-api.YOUR_DOMAIN.workers.dev/v1/fluctuation?start=2024-01-01&end=2024-01-31&base=USD&symbols=EUR,GBP,JPY"

Code Examples

Quick integration examples in popular languages.

JavaScript (fetch)

const response = await fetch('https://currency-api.YOUR_DOMAIN.workers.dev/v1/convert?from=USD&to=EUR&amount=100', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const { data } = await response.json();
console.log(`${data.amount} ${data.from} = ${data.result} ${data.to}`);

Python (requests)

import requests

resp = requests.get(
    "https://currency-api.YOUR_DOMAIN.workers.dev/v1/rates",
    params={"base": "EUR"},
    headers={"X-API-Key": "YOUR_API_KEY"}
)
rates = resp.json()["data"]["rates"]
print(f"EUR to USD: {rates['USD']}")

RapidAPI (JavaScript)

const response = await fetch('https://currency-exchange-api.p.rapidapi.com/v1/convert?from=USD&to=JPY&amount=1000', {
  headers: {
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY',
    'x-rapidapi-host': 'currency-exchange-api.p.rapidapi.com'
  }
});

Simple, Transparent Pricing

Start free, scale as you grow. All plans include every endpoint.

Free
$0/mo
  • 50 requests/day
  • All 6 endpoints
  • 170+ currencies
  • JSON responses
  • Community support
Get Started
Pro
$9.99/mo
  • 100,000 requests/day
  • All 6 endpoints
  • 170+ currencies
  • Historical data (10 years)
  • Priority support
Subscribe