# Eurostat Dataset API

> Eurostat Dataset API is a paid API for AI agents from opendata402.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-15).

Fetches labelled observations from any Eurostat dataset by code, with optional dimension filters and time period limits, returning up to 500 data points from official EU statistics.

## Facts

- Endpoint: GET https://opendata402.com/v1/eurostat?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eurostat-dataset-api-ebee18b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K2w1-kkjIt4UphoDnLKdo

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability eurostat-dataset-api-ebee18b5
```

Example prompt: Can you pull the latest 6 months of monthly unemployment data from Eurostat for the Netherlands? Use dataset code une_rt_m and filter by geo=NL and unit=PC_ACT.

## When to prefer this

Use this endpoint when you need official, authoritative European statistical data from Eurostat — covering unemployment, GDP, population, house prices, energy, trade, tourism, or transport — especially when dimension filtering by country, unit, or time period is needed. Prefer this over web scraping or unofficial data sources when CC BY 4.0 licensed, unmodified Eurostat figures are required for compliance or accuracy.

## Known failure modes

- Invalid or unknown dataset code returns an error (dataset must match pattern ^[a-zA-Z0-9_]{3,40}$)
- Overly broad queries without dimension filters may hit the 500-observation cap and return truncated results
- Invalid dimension filter keys or values (e.g. unrecognized geo code) may return empty results or an error
- lastTimePeriod outside allowed range (1–99) will fail schema validation
- Eurostat upstream outages may cause intermittent failures

## How this service works

Any Eurostat dataset (thousands: unemployment, GDP, population, house prices, energy, trade, tourism, transport...) by dataset code, with optional dimension filters as query parameters (e.g. geo=NL, unit=PC_ACT) and lastTimePeriod. Returns labelled observations (max 500). Use it for official European statistics. Eurostat data, CC BY 4.0; values unchanged.

## Output

A JSON object containing labelled statistical observations from the requested Eurostat dataset, including dimension labels (e.g. country names, units), time period identifiers, and numeric values — up to 500 observations per call. Data is sourced directly from Eurostat and returned unchanged under CC BY 4.0.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "dataset"
     ],
     "properties": {
      "dataset": {
       "type": "string",
       "pattern": "^[a-zA-Z0-9_]{3,40}$",
       "description": "Eurostat dataset code, e.g. une_rt_m, nama_10_gdp, prc_hpi_q."
      },
      "lastTimePeriod": {
       "type": "string",
       "pattern": "^([1-9]|[1-9][0-9])$",
       "description": "Number of latest periods (default 12)."
      }
     },
     "additionalProperties": {
      "type": "string",
      "description": "Dimension filters, e.g. geo=NL (repeatable)."
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eurostat-dataset-api-ebee18b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from opendata402.com](https://www.zero.xyz/host/opendata402.com/llms.txt)
