Request
https://api.zapi.ink/v1/finance:ecb/key-ratesSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 6 hours.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| rate | string | query | No | Policy rates, comma-separated: MRR_FR (main refinancing), DFR (deposit facility), MLFR (marginal lending facility). Default all three. Example: MRR_FR,DFR |
| from | string | query | No | First date, YYYY-MM-DD. The series is daily and repeats the level between changes. Example: 2024-01-01 |
| to | string | query | No | Last date, YYYY-MM-DD. Example: 2026-08-20 |
| last | number | query | No | Return only the newest N observations per rate. Default 20 when no window is given. Example: 10 |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:ecb/key-rates?rate=MRR_FR%2CDFR&from=2024-01-01&to=2026-08-20&last=10" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:ecb/key-rates?rate=MRR_FR%2CDFR&from=2024-01-01&to=2026-08-20&last=10", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/finance:ecb/key-rates", params={"rate":"MRR_FR,DFR","from":"2024-01-01","to":"2026-08-20","last":"10"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "finance:ecb", "data": { "to": null, "from": null, "count": 2, "items": [ { "name": "Main refinancing operations - fixed rate", "rate": "MRR_FR", "unit": "percent per annum", "count": 20, "title": "Main refinancing operations - fixed rate tenders (fixed rate) (date of changes) - Level", "values": [ { "date": "2026-08-21", "rate": 2.4 }, { "date": "2026-08-20", "rate": 2.4 }, { "date": "2026-08-19", "rate": 2.4 }, { "date": "2026-08-18", "rate": 2.4 }, { "date": "2026-08-17", "rate": 2.4 }, { "date": "2026-08-16", "rate": 2.4 }, { "date": "2026-08-15", "rate": 2.4 }, { "date": "2026-08-14", "rate": 2.4 } ], "latestDate": "2026-08-21", "latestRate": 2.4 }, { "name": "Deposit facility", "rate": "DFR", "unit": "percent per annum", "count": 20, "title": "Deposit facility - date of changes (raw data) - Level", "values": [ { "date": "2026-08-21", "rate": 2.25 }, { "date": "2026-08-20", "rate": 2.25 }, { "date": "2026-08-19", "rate": 2.25 }, { "date": "2026-08-18", "rate": 2.25 }, { "date": "2026-08-17", "rate": 2.25 }, { "date": "2026-08-16", "rate": 2.25 }, { "date": "2026-08-15", "rate": 2.25 }, { "date": "2026-08-14", "rate": 2.25 } ], "latestDate": "2026-08-21", "latestRate": 2.25 } ], "rates": [ "MRR_FR", "DFR" ], "total": 40, "dataset": "key-rates", "provider": "ecb" }, "timestamp": "2026-08-21T02:22:14Z" }
Frequently asked questions
How do I call the Ecb Key Rates API?
Send a GET request to https://api.zapi.ink/v1/finance:ecb/key-rates with your Zapi key in the x-api-key header. Parameters — optional: rate, from, to, last. The response is JSON in the { project, data, timestamp } envelope.
What does the Ecb Key Rates API return?
The ECB's three policy rates and every date they changed. The example response has the fields to, from, count, items, rates, total, dataset, provider. Each item in items has fields such as name, rate, unit, count, title, values, latestDate, latestRate.
Is the Ecb Key Rates API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.
Can an AI assistant call the Ecb Key Rates API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "ecb" and endpoint "key-rates".
What other Ecb API endpoints are there?
It has 3 endpoints. Besides Key Rates: Exchange Rates, Hicp.
