# Central Bank Rates API - Policy Interest Rates, Official Dat (`martin10291/central-bank-rates-api`) Actor

Official central bank policy interest rates as JSON, no API key: Federal Reserve (target range + EFFR), ECB (deposit, MRO, MLF; all 21 euro countries), Bank of England, Bank of Canada, Riksbank, Danmarks Nationalbank, Norges Bank, Banco Central do Brasil, Central Bank of Iceland. Latest rate with la

- **URL**: https://apify.com/martin10291/central-bank-rates-api.md
- **Developed by:** [Martin Petrov](https://apify.com/martin10291) (community)
- **Categories:** Developer tools, Automation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Central Bank Rates API - Policy Interest Rates, Official Data

**No API key. Problem:** your fintech dashboard, loan or savings calculator, FX tool or AI agent needs the current central bank rate and when it last changed. Every bank publishes it in a different format (NY Fed JSON, ECB SDMX, Bank of England database export, Statistics Denmark tables with decimal commas, Brazil's SGS series...), and many aggregators resell data whose licence does not allow paid reuse.

**This API:** one JSON call for 9 central banks (30 countries including the 21 euro members), straight from the official publishers, with decisions already worked out.

- **Banks:** Federal Reserve (target range low/high + effective fed funds rate), ECB (deposit facility, main refinancing, marginal lending), Bank of England (Bank Rate), Bank of Canada (target overnight rate), Sveriges Riksbank, Danmarks Nationalbank (lending, current account, discount), Norges Bank, Banco Central do Brasil (Selic target), Central Bank of Iceland.
- **Every latest row:** `rate`, `effectiveSince`, `previousRate`, `change`, `lastChangeDirection` (hike/cut), `daysSinceChange`, `rate1yAgo`, `change1y`, `changes12m`, `source`, `sourceUrl`, `attribution`.
- **Modes:** `latest`, `history` (every rate change), `decisions` (all hikes and cuts across banks in the last N days), `compare` (lowest rate first), `banks` (coverage and licences).
- **Euro countries:** ask for DE, FR, IT, ES... and you get the ECB rate with `requestedAs`.

### Example (API)

```bash
curl -X POST "https://api.apify.com/v2/acts/martin10291~central-bank-rates-api/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode": "latest", "country": ["US", "EA", "GB"]}'
```

Output row (measured 2026-11-14):

```json
{"country": "US", "centralBank": "Federal Reserve", "rateName": "Federal funds target range (upper bound)",
 "rate": 4.0, "targetLow": 3.75, "targetHigh": 4.0, "effectiveRate": 3.88, "effectiveSince": "2026-09-17",
 "asOf": "2026-11-12", "previousRate": 3.75, "change": 0.25, "lastChangeDirection": "hike", "daysSinceChange": 58,
 "rate1yAgo": 4.0, "change1y": 0.0, "changes12m": 2, "source": "NY Fed reference rates", "stale": false}
```

More inputs:

- `{"mode": "compare"}` -> 9 rows, lowest first (2026-11-14: Sweden 2.0, Denmark 2.25, Canada 2.5, euro area 2.5, UK 4.0, US 4.0, Norway 4.5, Iceland 8.0, Brazil 13.75).
- `{"mode": "decisions", "days": 90}` -> every hike and cut of the last 90 days, newest first.
- `{"mode": "history", "country": ["GB"], "startDate": "2020-01-01"}` -> every Bank Rate change since 2020.
- `{"mode": "latest", "country": ["Germany"]}` -> ECB deposit rate with `requestedAs: "DE"`.

### Use from agents (MCP)

Add the Apify MCP server (`https://mcp.apify.com?tools=martin10291/central-bank-rates-api`) to Claude, Cursor or any MCP client and ask: "Which central banks cut rates in the last 3 months?".

### Schedule it

Set `onlyNew: true` and a `monitorId`, schedule the actor daily: each run returns only new rate decisions since the last run.

### Input

| Field | Meaning |
|---|---|
| `mode` | latest (default), history, decisions, compare, banks |
| `country` | US, EA, GB, CA, SE, DK, NO, BR, IS (euro member codes and names work); empty = all |
| `rate` | policy (default); ECB deposit/mro/mlf; DK lending/current-account/discount; US effective |
| `startDate`, `endDate` | history range, YYYY-MM-DD |
| `days` | decisions window, default 365 |
| `sort` | country, rate, rate_desc, recent |
| `limit` | max rows, default 1000 |
| `onlyNew`, `monitorId` | only new decisions per watch |

### Honest limits

- Only banks whose terms allow reuse in a paid service are covered. Not covered: Bank of Japan, SNB, NBP, SARB (non-commercial terms), RBA/RBNZ/CNB/HKMA (they block automated access). Asking for them returns a clear message, never a guess.
- History depth differs: US target range from 2008-12 (EFFR from 2000), Canada from 2009, UK from 1975, ECB from 1999, others from 1999-2007.
- The effective date is the first day the new rate appears in the official data. Values are exactly as published.
- No forecasts and no next-meeting guesses.

### FAQ

- **How fresh is it?** The cache refreshes every 6 hours; most banks publish the new rate the day of the decision or the next business day.
- **What if a source is down?** You get the last good copy with `stale: true`; the call does not fail.
- **Errors:** invalid input returns a message with the valid values. Failed runs are not charged.
- **Licences:** every row carries the attribution the source asks for (NY Fed notice, CC BY 4.0, ODbL, NLOD...). Keep it when you display the data. Not affiliated with or endorsed by any central bank.

# Actor input Schema

## `mode` (type: `string`):

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 = coverage, rate keys, date ranges and licences.

## `country` (type: `array`):

ISO codes of the bank's country: US, EA (euro area), GB, CA, SE, DK, NO, BR, IS. Euro member codes (DE, FR, IT, ES, ...) and names like Germany return the ECB row. UK and full names work. Empty = all banks. Required for history.

## `rate` (type: `string`):

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).

## `startDate` (type: `string`):

For history: first date, YYYY-MM-DD. Default = full history.

## `endDate` (type: `string`):

For history: last date, YYYY-MM-DD. Default today.

## `days` (type: `integer`):

For decisions: how many days back to list rate changes (1-9000, default 365).

## `sort` (type: `string`):

For latest: country (default), rate (lowest first), rate_desc, recent (latest change first).

## `limit` (type: `integer`):

Maximum rows for history (newest kept). Between 1 and 20000.

## `onlyNew` (type: `boolean`):

Return only rate changes newer than the last run with this Monitor ID (per bank and rate). Schedule it daily to get each hike or cut once.

## `monitorId` (type: `string`):

Name of the watch for only-new mode, for example my-dashboard. Each Monitor ID keeps its own last dates.

## Actor input object example

```json
{
  "mode": "latest",
  "country": [
    "US",
    "EA",
    "GB",
    "CA"
  ],
  "days": 365,
  "sort": "country",
  "limit": 1000,
  "onlyNew": false,
  "monitorId": "default"
}
```

# Actor output Schema

## `results` (type: `string`):

Latest/compare: one row per central bank with rate, effective date, previous rate, change, hike/cut, 1-year change, source and attribution. History/decisions: one row per rate change.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "latest",
    "country": [
        "US",
        "EA",
        "GB",
        "CA"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("martin10291/central-bank-rates-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "latest",
    "country": [
        "US",
        "EA",
        "GB",
        "CA",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("martin10291/central-bank-rates-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "latest",
  "country": [
    "US",
    "EA",
    "GB",
    "CA"
  ]
}' |
apify call martin10291/central-bank-rates-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,martin10291/central-bank-rates-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/JwagUnrNqcsnMAbNJ/builds/rSetXRTilmqD3U1g3/openapi.json
