Request
https://api.zapi.ink/v1/finance:ecb/hicpSend 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 |
|---|---|---|---|---|
| item | string | query | No | COICOP item code — 000000 overall, 010000 food, 040000 housing, XEF000 excluding energy and food. Comma-separated for several. Default 000000. Example: 000000 |
| area | string | query | No | Reference area — U2 euro area, DE, FR, IT, ES and the other member states. Default U2. Example: U2 |
| measure | enum: ANR | INX | ANR_S | MRR | CTG | CTG_S | WGT | query | No | ANR annual rate of change, INX index level, ANR_S seasonally adjusted annual rate, MRR monthly rate, CTG contribution, CTG_S adjusted contribution, WGT weight. Default ANR. Example: ANR |
| from | string | query | No | First month, YYYY-MM. Example: 2025-01 |
| to | string | query | No | Last month, YYYY-MM. Example: 2025-12 |
| last | number | query | No | Return only the newest N months per item. Default 24 when no window is given. Example: 12 |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:ecb/hicp?item=000000&area=U2&measure=ANR&from=2025-01&to=2025-12&last=12" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:ecb/hicp?item=000000&area=U2&measure=ANR&from=2025-01&to=2025-12&last=12", { 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/hicp", params={"item":"000000","area":"U2","measure":"ANR","from":"2025-01","to":"2025-12","last":"12"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "finance:ecb", "data": { "to": null, "area": "U2", "from": null, "count": 1, "items": [ { "area": "U2", "item": "000000", "unit": "PCCH", "count": 24, "title": "HICP - Overall index", "values": [ { "value": 1.9, "period": "2025-12" }, { "value": 2.1, "period": "2025-11" }, { "value": 2.1, "period": "2025-10" }, { "value": 2.2, "period": "2025-09" }, { "value": 2, "period": "2025-08" }, { "value": 2, "period": "2025-07" }, { "value": 2, "period": "2025-06" }, { "value": 1.9, "period": "2025-05" } ], "measure": "ANR", "latestValue": 1.9, "measureName": "Annual rate of change", "latestPeriod": "2025-12" } ], "total": 24, "dataset": "hicp", "measure": "ANR", "missing": [], "provider": "ecb", "resolved": [ "000000" ], "itemCodes": [ "000000" ], "latestPeriod": "2025-12" }, "timestamp": "2026-08-21T02:22:14Z" }
Frequently asked questions
How do I call the Ecb Hicp API?
Send a GET request to https://api.zapi.ink/v1/finance:ecb/hicp with your Zapi key in the x-api-key header. Parameters — optional: item, area, measure, from, to, last. The response is JSON in the { project, data, timestamp } envelope.
What does the Ecb Hicp API return?
Euro-area inflation — the Harmonised Index of Consumer Prices. The example response has the fields to, area, from, count, items, total, dataset, measure. Each item in items has fields such as area, item, unit, count, title, values, measure, latestValue.
Is the Ecb Hicp 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 Hicp 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 "hicp".
What other Ecb API endpoints are there?
It has 3 endpoints. Besides Hicp: Exchange Rates, Key Rates.
