apyhub
Back
▣ RETRIEVAL KIT · VERIFICATION KIT

Central Bank Interest Rates API

What it does

The Central Bank Interest Rates API returns policy rate data for central banks in one JSON response. Send a body with mode, and use country, rate, sort, days, startDate, endDate, or limit when needed.

Use latest for the current rate for each bank, with the effective date, previous rate, and change direction. Use history for every rate change in a date range. Use decisions to list changes across banks in the last N days. Use compare to sort banks by rate, and banks to get bank rows.

The Central Bank Interest Rates API can also return ECB, Denmark, and US rate types when the page allows them. The response includes billing and count data, plus rate records with the country, bank name, rate, source, and link to the source page.

Teams use it to show a rate dashboard for many countries. They use it to track central bank moves over time. They also use it to compare policy rates in finance tools and reports.

To work with money values, pair it with the Currency Converter API. To map country codes in your app, use the Countries Dictionary API.

POST
Central Bank Rates API - Policy Interest Rates, Official Data
https://api.eu.apyhub.com/martin10291/central-bank-interest-rates

QUICKSTART

GUIDE

Quickstart

Get the latest central bank rates by sending a minimal JSON body with mode set to latest.

curl -X POST "https://api.eu.apyhub.com/martin10291/central-bank-interest-rates" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"latest"}'

What you'll get back

Returns a JSON object with billed and count integers, plus an items array of rate result objects.

Each item may include fields such as country, countryName, centralBank, rate, unit, asOf, previousRate, and other rate details depending on the mode and available data.

{
  "billed": 1,
  "count": 1,
  "items": [
    {
      "country": "US",
      "countryName": "United States",
      "centralBank": "Federal Reserve",
      "rate": 5.33,
      "unit": "%",
      "asOf": "2024-01-31"
    }
  ]
}
TRY ITLIVE · 100 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body
For decisions: how many days back to list rate changes (1-9000, default 365).
latest = current rate of each bank with effective date, previous rate, hike/cut and 1-year change; history = every rate change of one or more banks (needs Country); decisions = all rate changes across banks in the last N days, newest first; compare = one row per bank sorted lowest rate first; banks.
policy (default, each bank's headline rate). ECB also: deposit, mro, mlf. Denmark also: lending, current-account, discount. US also: effective (daily effective federal funds rate, history only).

About this endpoint

What it does

Returns policy interest rate data for central banks based on the request body filters. The response is a JSON object containing billing/count metadata and an items array of rate records.

Request Body

ParameterTypeMandatoryDescription
daysIntegerNoFor mode=decisions: how many days back to list rate changes. Minimum 1, maximum 9000, default 365.
modeENUMNoAllowed values: latest, history, decisions, compare, banks. latest = current rate of each bank with effective date, previous rate, hike/cut and 1-year change; history = every rate change of one or more banks (requires country); decisions = all rate changes across banks in the last N days, newest first; compare = one row per bank sorted lowest rate first; banks = banks list.
rateStringNoPolicy rate selector. Default is each bank's headline rate. ECB also supports deposit, mro, mlf. Denmark also supports lending, current-account, discount. US also supports effective (daily effective federal funds rate, history only).
sortENUMNoAllowed values: country, rate, rate_desc, recent. For latest: country (default), rate (lowest first), rate_desc, recent (latest change first).
limitIntegerNoMaximum rows for history results. Default 20. Minimum 1, maximum 100. The description also states between 1 and 20000.
countryString ArrayNoISO codes of the bank's country: US, EA (euro area), GB, CA, SE, DK, NO, BR, IS. Euro member codes like DE, FR, IT, ES, and names like Germany return the ECB row. UK and full names work. Empty means all banks. Required for history.
endDateStringNoFor history: last date, format YYYY-MM-DD. Default is today.
startDateStringNoFor history: first date, format YYYY-MM-DD. Default is full history.

Response

Returns a JSON object with billed and count integer fields, plus an items array of objects. Each item can include rate metadata such as asOf, rate, country, centralBank, and related fields depending on the selected mode and data available.

ParameterTypeMandatoryDescription
billedIntegerNoUnits charged for this call: result rows only; not-found, unavailable, or invalid rows are free.
countIntegerNoNumber of rows in items.
itemsObject ArrayNoArray of rate records. Each item may contain the following fields: asOf, rate, unit, stale, change, source, country, rateKey, change1y, rateName, rateType, rate1yAgo, sourceUrl, targetLow, changes12m, targetHigh, attribution, centralBank, countryName, previousRate, effectiveRate, effectiveSince, daysSinceChange, effectiveRateDate, lastChangeDirection.
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.