# EU HICP Price Basket (`zinin/eu-hicp-price-basket`) Actor

Monthly Eurostat HICP index and annual inflation rate by country and ECOICOP category.

- **URL**: https://apify.com/zinin/eu-hicp-price-basket.md
- **Developed by:** [Tim Zinin](https://apify.com/zinin) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 5 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## EU HICP Price Basket

Get official monthly Harmonised Index of Consumer Prices (HICP) observations as ready-to-use rows: the index (2025=100) and annual percentage rate for each requested country, ECOICOP v2 consumption category, and month. No API key, account, proxy, or HTML scraping is required.

The Actor uses only Eurostat's official dissemination API and the active `prc_hicp_minr` dataset. It is designed for retail pricing teams comparing category inflation with their own prices and for economists building inflation panels.

### Use cases

- Benchmark retail category price movements against official inflation.
- Build country/category inflation dashboards and recurring data pipelines.
- Compare headline HICP (`TOTAL`) with food, housing, transport, or detailed ECOICOP categories.
- Supply current, attributed macroeconomic observations to BI tools and AI agents.

### Input

| Field | Description | Limits |
|---|---|---|
| `countries` | Eurostat geography codes such as `DE`, `FR`, `IT` | 1–20 |
| `categories` | ECOICOP v2 codes such as `TOTAL`, `CP01`, `CP0111` | 1–50 |
| `startMonth` | First month (`YYYY-MM`) | required |
| `endMonth` | Last month, inclusive (`YYYY-MM`) | maximum 120 months |

The overall request is capped at 1,000 country × category × month combinations.

Prefilled input (works without a key):

```json
{"countries":["DE"],"categories":["TOTAL"],"startMonth":"2026-01","endMonth":"2026-01"}
```

Retail basket example:

```json
{"countries":["DE","FR"],"categories":["CP01","CP04","CP07"],"startMonth":"2026-01","endMonth":"2026-06"}
```

### Output

One paid row represents one available country/category/month observation:

```json
{
  "found": true,
  "countryCode": "DE",
  "countryName": "Germany",
  "coicopCode": "TOTAL",
  "coicopName": "All-items HICP",
  "month": "2026-01",
  "index": 100.7,
  "indexUnit": "2025=100",
  "annualRatePct": 2.1,
  "annualRateUnit": "%",
  "status": null,
  "datasetCode": "prc_hicp_minr",
  "source": "Eurostat",
  "sourceUrl": "https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/prc_hicp_minr?...",
  "retrievedAt": "2026-11-10T19:00:00.000Z"
}
```

If the selection is empty or Eurostat cannot answer, the Actor writes a `found:false` explanatory row with `error`, `source`, `sourceUrl`, and `retrievedAt`. These rows are free.

### Pricing

**$0.0025 per HICP observation (`result-found`) on the Free plan, with automatic discounts on paid Apify plans: Bronze −5%, Silver −10%, Gold −15%, Platinum −18%, Diamond −20%. A small Actor start event ($0.002) applies per run**

This Actor uses pay-per-event billing. A `result-found` event is charged only for an observation delivered atomically to the dataset. The Actor checks the remaining spending limit before every paid push. Missing/error rows (`found:false`) do not use the paid event.

### Limitations

- Data availability, flags, revisions, country coverage, and category coverage are controlled by Eurostat; not every combination has an observation.
- The active 2026 dataset uses ECOICOP v2 (`coicop18`) and a 2025=100 index. Codes from the discontinued pre-2026 dataset may not map directly.
- This Actor returns published observations; it does not forecast inflation, seasonally adjust data, or infer missing values.
- Requests are sequential and deliberately polite, so large allowed inputs take longer than the prefill.

### Source, terms, and attribution

Data source: **Eurostat**, dataset `prc_hicp_minr`, via the [Eurostat dissemination API](https://ec.europa.eu/eurostat/web/user-guides/data-browser/api-data-access/api-introduction). Each row includes the exact query URL and retrieval timestamp.

Eurostat data may be reused under the [Eurostat reuse policy](https://ec.europa.eu/eurostat/about-us/policies/copyright) subject to its conditions, including source acknowledgement and indicating modifications where applicable. Users remain responsible for checking the current policy and any dataset-specific notices. This Actor preserves Eurostat attribution and does not imply endorsement by Eurostat or the European Commission.

### Related Actors

- [eu-electricity-prices](https://apify.com/zinin/eu-electricity-prices)
- [singstat-cost-and-demand-pressure-monitor](https://apify.com/zinin/singstat-cost-and-demand-pressure-monitor)
- [sec-industry-financial-frames](https://apify.com/zinin/sec-industry-financial-frames)

# Actor input Schema

## `countries` (type: `array`):

Eurostat geo codes (maximum 20).

## `categories` (type: `array`):

ECOICOP v2 codes such as TOTAL, CP01 or CP0111 (maximum 50).

## `startMonth` (type: `string`):

First month, YYYY-MM.

## `endMonth` (type: `string`):

Last month, YYYY-MM (inclusive).

## Actor input object example

```json
{
  "countries": [
    "DE"
  ],
  "categories": [
    "TOTAL"
  ],
  "startMonth": "2026-01",
  "endMonth": "2026-01"
}
```

# Actor output Schema

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

Default dataset items API URL.

# 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 = {
    "countries": [
        "DE"
    ],
    "categories": [
        "TOTAL"
    ],
    "startMonth": "2026-01",
    "endMonth": "2026-01"
};

// Run the Actor and wait for it to finish
const run = await client.actor("zinin/eu-hicp-price-basket").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 = {
    "countries": ["DE"],
    "categories": ["TOTAL"],
    "startMonth": "2026-01",
    "endMonth": "2026-01",
}

# Run the Actor and wait for it to finish
run = client.actor("zinin/eu-hicp-price-basket").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 '{
  "countries": [
    "DE"
  ],
  "categories": [
    "TOTAL"
  ],
  "startMonth": "2026-01",
  "endMonth": "2026-01"
}' |
apify call zinin/eu-hicp-price-basket --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zinin/eu-hicp-price-basket"
        }
    }
}
```

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/WwBpAdBJzb5kbQ9KI/builds/gYNVQWea8zIeUZEtR/openapi.json
