exrate API — free JSON for 9 national central banks
Public REST API at api.banks-rates.com. JSON responses, no authentication, generous per-IP rate limits, CORS open. Same data the UI uses.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /v1/banks | List all supported banks with metadata. |
GET | /v1/banks/{id} | Per-bank detail (currencies, schedule, history range). |
GET | /v1/rate | Convert amount at a bank's rate. Params: bank, date, from, to, amount. |
GET | /v1/cross | Cross-rate via a bank's national currency. Params: bank, date, from, to, amount. |
GET | /v1/rates/series | Historical series. Params: bank, currency, from, to (dates). |
GET | /v1/status | Per-bank freshness: latest rate date, currency count, updated-at timestamp. |
GET | /v1/openapi.json | Full OpenAPI 3.1 spec. |
Examples
curl
curl -s "https://api.banks-rates.com/v1/rate?bank=NBP&date=2026-04-20&from=USD&to=PLN&amount=100" Python
import requests
r = requests.get("https://api.banks-rates.com/v1/rate", params={
"bank": "NBP", "date": "2026-04-20",
"from": "USD", "to": "PLN", "amount": 100,
})
r.raise_for_status()
print(r.json()) JavaScript / TypeScript
const url = new URL("https://api.banks-rates.com/v1/rate");
url.searchParams.set("bank", "NBP");
url.searchParams.set("date", "2026-04-20");
url.searchParams.set("from", "USD");
url.searchParams.set("to", "PLN");
url.searchParams.set("amount", "100");
const res = await fetch(url);
const data = await res.json(); Go
req, _ := http.NewRequest("GET", "https://api.banks-rates.com/v1/rate", nil)
q := req.URL.Query()
q.Set("bank", "NBP"); q.Set("date", "2026-04-20")
q.Set("from", "USD"); q.Set("to", "PLN"); q.Set("amount", "100")
req.URL.RawQuery = q.Encode()
res, _ := http.DefaultClient.Do(req) Why exrate API instead of going to each central bank's feed directly?
- One unified JSON shape across every supported central bank — no per-bank parser needed.
- Built-in previous-business-day fallback for invoicing and tax filings.
- Hosted on Cloudflare's edge — sub-100ms response globally.
- No XML parsing, no CSV mangling, no scraping. JSON, every endpoint.
- Free for commercial use, no auth.
Frequently asked questions
Is the API free for commercial use?
Yes. The data is public-domain (central banks); our hosting and API are free. Attribution appreciated.
Is exrate an official source?
No — we re-publish official rates from the central banks. The bank itself remains the legal source. We exist to be a unified, parsable, hosted endpoint.
What's the uptime SLA?
Best-effort, on Cloudflare Workers. We've held >99.9% over recent months but offer no contractual SLA on the free tier.
What are the rate limits?
Per-IP rate limits applied at the edge. Typical app usage will not hit them. Heavy batch consumers should fan-out and cache aggressively.
How do I integrate with NBP/CNB workflows?
Hit /v1/rate with bank=NBP|CNB and your date/currency. The response shape is identical across banks — drop-in replacement for direct integrations against each central bank's feed.