Sources › Finance › Ecb › Hicp

Ecb Hicp API

Euro-area inflation — the Harmonised Index of Consumer Prices.

EcbGET /hicpAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/finance:ecb/hicp

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 6 hours.

Parameters

NameTypeInRequiredDescription
itemstringqueryNoCOICOP item code — 000000 overall, 010000 food, 040000 housing, XEF000 excluding energy and food. Comma-separated for several. Default 000000. Example: 000000
areastringqueryNoReference area — U2 euro area, DE, FR, IT, ES and the other member states. Default U2. Example: U2
measureenum: ANR | INX | ANR_S | MRR | CTG | CTG_S | WGTqueryNoANR 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
fromstringqueryNoFirst month, YYYY-MM. Example: 2025-01
tostringqueryNoLast month, YYYY-MM. Example: 2025-12
lastnumberqueryNoReturn only the newest N months per item. Default 24 when no window is given. Example: 12

Code examples

cURL
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"
JavaScript
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);
Python
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

200 OK · application/json
{
  "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.