The latest published table for a central bank or tax authority, with no API key. CORS-enabled and edge-cached (30–60 min), built for embeds and widgets. Free to use with a visible attribution link to allratestoday.com (the response includes the attribution object). Pass source+target for a single pair (direct or inverse only). JSON only. For historical dates, time series, or cross-computed pairs use the keyed /api/v1/central-bank/* endpoints.
Path parameters
-
Source code from /api/v1/central-banks (e.g. ecb, boc, cbsl, banxico, ustreasury)
Format should match the following pattern:
^[a-z0-9_-]{2,20}$.
Query parameters
-
Pair mode: source currency, 3-letter code (requires target)
Minimum length is
3, maximum length is3. -
Pair mode: target currency, 3-letter code (requires source)
Minimum length is
3, maximum length is3. -
Rate type to return when the pair is requested with source+target on a two-sided table (buy/sell banks such as TCMB, BCB, BI, CBN). Values are the bank's own type labels as shown in its full table, e.g. buy or sell. Without it the pair resolves reference, mid, import, buy, sell in that order and rate_type says which side was used. A type the bank does not publish returns 404 listing the available types.
curl \
--request GET 'https://allratestoday.com/api/open/central-bank/ecb'
{
"bank": "ecb",
"rate_date": "2026-08-10",
"rates": [
{
"base": "EUR",
"quote": "USD",
"type": "reference",
"value": 1.0853
}
],
"source": "EUR",
"target": "USD",
"rate": 1.0853,
"rate_type": "reference",
"derived": true,
"method": "published",
"attribution": {
"source": "Official rates published by ECB, served by AllRatesToday",
"url": "https://allratestoday.com/central-bank-rates-api/ecb/",
"terms": "Free to use with visible attribution linking to allratestoday.com"
}
}
{
"error": "string",
"hint": "string"
}