Free Exchange Rate API & Currency Widget
Free exchange rate API with live mid-market rates for 150+ currencies, plus a one-line embeddable converter widget. Free tier — 300 requests/month, no credit card.
Free Exchange Rate API & Currency Widget
Live mid-market rates for 150+ currencies from the AllRatesToday API, plus a one-line embeddable converter widget. Free tier — 300 requests/month, no credit card. Grab a free API key to start.
The endpoint
Pass your API key via an Authorization: Bearer header or a ?key= query param:
curl "https://allratestoday.com/api/rate?source=USD&target=EUR&key=art_live_your_key" Response:
{ "rate": 0.864566, "source": "refinitiv" } - Free API key — 300 requests/month, no credit card
- 150+ currencies — any ISO 4217 pair via
sourceandtarget - Live mid-market rates — same data source as the paid tiers
- CORS enabled (
Access-Control-Allow-Origin: *) — call it straight from the browser
Quick examples
JavaScript
// Works in the browser too — the endpoint sends CORS headers.
const res = await fetch(
'https://allratestoday.com/api/rate?source=USD&target=EUR&key=art_live_your_key'
);
const { rate } = await res.json();
console.log(`1 USD = ${rate} EUR`); Python
import requests
r = requests.get(
"https://allratestoday.com/api/rate",
params={"source": "USD", "target": "EUR", "key": "art_live_your_key"},
)
print(f"1 USD = {r.json()['rate']} EUR")
Want a ready-made UI instead? The
embeddable currency converter widget uses this same
endpoint — just add your data-api-key.
Fair use
Each key has a monthly request quota (300 on the free plan). Cache responses where you can — mid-market rates don't change every second, so a short cache keeps you comfortably under your limit.
Paid plans
Your free key includes usage stats in your dashboard plus the full API: authenticated rates, historical data, and the complete reference. When you need higher limits, paid tiers scale up — see pricing.
Attribution (appreciated)
Not required, but crediting the data source is always appreciated — anywhere visible is fine (footer, about page, or README):
- HTML:
<a href="https://allratestoday.com">Rates by AllRatesToday</a> - Markdown:
Rates by [AllRatesToday](https://allratestoday.com) - Plain text (apps, slides):
Exchange rates by AllRatesToday — allratestoday.com