By Ziv Shay | Updated April 2026
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.
The average American could save $5,000/year by optimizing their tax strategy. Try our tax calculator →
Paying an extra $100/month on your mortgage saves $30,000+ in interest over the life of the loan. Calculate your savings →
Starting to invest at 25 vs 35 can mean $500,000+ more at retirement thanks to compound interest. See the difference →
Refinancing student loans at a 2% lower rate saves $10,000–$20,000 over the loan term. Check your rate →
AI How To Invest provides 175+ free financial calculators and tools to help you make smarter money decisions. From mortgage and retirement planning to debt payoff strategies and investment analysis, our tools are designed to be fast, accurate, and easy to use. All calculator data stays in your browser — we never sell your personal information.
Trusted by tens of thousands of users for financial planning, tax optimization, and investment research. Learn more about us →
© 2024–1970 AIHowToInvest.com — 175+ Free Financial Tools | About | Contact | Privacy | Terms | Disclaimer