Central Bank Rates

Official rate time series

Daily series over a date range (defaults to the last year; capped at 5000 rows — narrow the range if truncated is true). Use symbol for every published pair involving one currency, or source+target for a single resolved pair per date (cross-computed via the home currency when needed, flagged derived). Archives reach back to 2000 and earlier for major sources. Paid plans only.

get/api/v1/central-bank/{bank}/history

Request

  • Base URL: https://allratestoday.com
  • URL: https://allratestoday.com/api/v1/central-bank/{bank}/history
  • Auth: one of:
    • HTTP bearer
    • API key in cookie art_session

Path parameters

bankstring required
Example:ecb

Source code from /api/v1/central-banks (e.g. ecb, boc, cbsl, banxico, ustreasury)

Query parameters

symbolstring
Example:USD

3-letter currency code matching either side of the pair. Required unless source+target are given.

sourcestring
Example:USD

Pair mode: source currency, 3-letter code (requires target)

targetstring
Example:LKR

Pair mode: target currency, 3-letter code (requires source)

fromstring date
Example:2025-01-01

Range start (YYYY-MM-DD; default: one year before to)

tostring date
Example:2025-12-31

Range end (YYYY-MM-DD; default: today)

format'json' | 'csv' | 'xml' | 'xlsx'

Response format (default json). csv is UTF-8 with a BOM; xlsx is a real Excel workbook with typed dates and numbers; xml mirrors the JSON fields.

Response

Ascending daily series

bankstring
namestring
symbolstring
sourcestring

Present in pair mode

targetstring

Present in pair mode

fromstring date
tostring date
countinteger
truncatedboolean

True when the 5000-row cap was hit

disclaimerstring

Example response

{
  "bank": "ecb",
  "name": "European Central Bank",
  "symbol": "USD",
  "source": "USD",
  "target": "LKR",
  "count": 254
}

Changes

No recorded changes to this operation across all 1 revision of this API.