Sources › Finance › Ecb › Exchange Rates

Ecb Exchange Rates API

ECB euro foreign-exchange reference rates.

EcbGET /exchange-ratesAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/finance:ecb/exchange-rates

Send 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 1 hour.

Parameters

NameTypeInRequiredDescription
currencystringqueryNoISO currency codes, comma-separated, up to 40 in one call. Default USD. Rates are units per euro. Example: USD,GBP,JPY
frequencyenum: D | M | Q | AqueryNoD daily, M monthly average, Q quarterly average or A annual average. Default D. Example: D
fromstringqueryNoFirst period, YYYY-MM-DD for daily, YYYY-MM for monthly, YYYY-Q1 for quarterly, YYYY for annual. Example: 2026-08-01
tostringqueryNoLast period, same format as `from`. Example: 2026-08-20
asOfstringqueryNoA single period. Overrides `from` and `to`. A day the ECB did not publish returns 404. Example: 2026-08-20
lastnumberqueryNoReturn only the newest N observations per currency. Default 30 when no window is given. Example: 5

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/finance:ecb/exchange-rates?currency=USD%2CGBP%2CJPY&frequency=D&from=2026-08-01&to=2026-08-20&asOf=2026-08-20&last=5" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/finance:ecb/exchange-rates?currency=USD%2CGBP%2CJPY&frequency=D&from=2026-08-01&to=2026-08-20&asOf=2026-08-20&last=5", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/finance:ecb/exchange-rates",
    params={"currency":"USD,GBP,JPY","frequency":"D","from":"2026-08-01","to":"2026-08-20","asOf":"2026-08-20","last":"5"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "finance:ecb",
  "data": {
    "to": null,
    "base": "EUR",
    "from": null,
    "count": 3,
    "items": [
      {
        "base": "EUR",
        "count": 30,
        "title": "US dollar/Euro ECB reference exchange rate",
        "values": [
          {
            "rate": 1.1681,
            "period": "2026-08-20",
            "status": "A"
          },
          {
            "rate": 1.1605,
            "period": "2026-08-19",
            "status": "A"
          },
          {
            "rate": 1.1576,
            "period": "2026-08-18",
            "status": "A"
          },
          {
            "rate": 1.1593,
            "period": "2026-08-17",
            "status": "A"
          },
          {
            "rate": 1.1567,
            "period": "2026-08-14",
            "status": "A"
          },
          {
            "rate": 1.1534,
            "period": "2026-08-13",
            "status": "A"
          },
          {
            "rate": 1.1545,
            "period": "2026-08-12",
            "status": "A"
          },
          {
            "rate": 1.154,
            "period": "2026-08-11",
            "status": "A"
          }
        ],
        "currency": "USD",
        "latestRate": 1.1681,
        "latestPeriod": "2026-08-20"
      },
      {
        "base": "EUR",
        "count": 30,
        "title": "Pound sterling/Euro ECB reference exchange rate",
        "values": [
          {
            "rate": 0.85725,
            "period": "2026-08-20",
            "status": "A"
          },
          {
            "rate": 0.85608,
            "period": "2026-08-19",
            "status": "A"
          },
          {
            "rate": 0.85585,
            "period": "2026-08-18",
            "status": "A"
          },
          {
            "rate": 0.855,
            "period": "2026-08-17",
            "status": "A"
          },
          {
            "rate": 0.8545,
            "period": "2026-08-14",
            "status": "A"
          },
          {
            "rate": 0.8549,
            "period": "2026-08-13",
            "status": "A"
          },
          {
            "rate": 0.85358,
            "period": "2026-08-12",
            "status": "A"
          },
          {
            "rate": 0.85483,
            "period": "2026-08-11",
            "status": "A"
          }
        ],
        "currency": "GBP",
        "latestRate": 0.85725,
        "latestPeriod": "2026-08-20"
      },
      {
        "base": "EUR",
        "count": 30,
        "title": "Japanese yen/Euro ECB reference exchange rate",
        "values": [
          {
            "rate": 185.45,
            "period": "2026-08-20",
            "status": "A"
          },
          {
            "rate": 184.62,
            "period": "2026-08-19",
            "status": "A"
          },
          {
            "rate": 184.87,
            "period": "2026-08-18",
            "status": "A"
          },
          {
            "rate": 184.59,
            "period": "2026-08-17",
            "status": "A"
          },
          {
            "rate": 183.93,
            "period": "2026-08-14",
            "status": "A"
          },
          {
            "rate": 183.77,
            "period": "2026-08-13",
            "status": "A"
          },
          {
            "rate": 183.67,
            "period": "2026-08-12",
            "status": "A"
          },
          {
            "rate": 183.72,
            "period": "2026-08-11",
            "status": "A"
          }
        ],
        "currency": "JPY",
        "latestRate": 185.45,
        "latestPeriod": "2026-08-20"
      }
    ],
    "total": 90,
    "dataset": "exchange-rates",
    "missing": [],
    "provider": "ecb",
    "resolved": [
      "GBP",
      "JPY",
      "USD"
    ],
    "frequency": "D",
    "currencies": [
      "USD",
      "GBP",
      "JPY"
    ]
  },
  "timestamp": "2026-08-21T02:22:14Z"
}

Frequently asked questions

How do I call the Ecb Exchange Rates API?

Send a GET request to https://api.zapi.ink/v1/finance:ecb/exchange-rates with your Zapi key in the x-api-key header. Parameters — optional: currency, frequency, from, to, asOf, last. The response is JSON in the { project, data, timestamp } envelope.

What does the Ecb Exchange Rates API return?

ECB euro foreign-exchange reference rates. The example response has the fields to, base, from, count, items, total, dataset, missing. Each item in items has fields such as base, count, title, values, currency, latestRate, latestPeriod.

Is the Ecb Exchange 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 Exchange 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 "exchange-rates".

What other Ecb API endpoints are there?

It has 3 endpoints. Besides Exchange Rates: Hicp, Key Rates.