Real-time & Historical Forex Data
Built for developers who need reliable, fast currency data. 170+ currencies, 6 powerful endpoints, sub-100ms response times.
All endpoints return JSON with a consistent { success, data } wrapper. Authenticate via X-API-Key header or ?apikey= query parameter.
| Parameter | Type | Default | Description |
|---|---|---|---|
base | string | USD | Base currency code |
symbols | string | all | Comma-separated currency codes to filter |
curl -H "X-API-Key: YOUR_KEY" \ "https://currency-api.YOUR_DOMAIN.workers.dev/v1/rates?base=USD"
| Parameter | Type | Required | Description |
|---|---|---|---|
from | string | Yes | Source currency code |
to | string | Yes | Target currency code |
amount | number | Yes | Amount to convert |
curl -H "X-API-Key: YOUR_KEY" \ "https://currency-api.YOUR_DOMAIN.workers.dev/v1/convert?from=USD&to=EUR&amount=100"
curl -H "X-API-Key: YOUR_KEY" \ "https://currency-api.YOUR_DOMAIN.workers.dev/v1/currencies"
| Parameter | Type | Required | Description |
|---|---|---|---|
date | string | Yes | Date in YYYY-MM-DD format |
base | string | No | Base currency (default: USD) |
symbols | string | No | Comma-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"
| Parameter | Type | Required | Description |
|---|---|---|---|
start | string | Yes | Start date (YYYY-MM-DD) |
end | string | Yes | End date (YYYY-MM-DD) |
base | string | No | Base currency (default: USD) |
symbols | string | No | Comma-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"
| Parameter | Type | Required | Description |
|---|---|---|---|
start | string | Yes | Start date (YYYY-MM-DD) |
end | string | Yes | End date (YYYY-MM-DD) |
base | string | No | Base currency (default: USD) |
symbols | string | No | Comma-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"
Quick integration examples in popular languages.
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}`);
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']}")
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' } });
Start free, scale as you grow. All plans include every endpoint.