# European Union API: Get Eurostat statistic for a country

> Looks up an official Eurostat statistic for an EU or EEA country and the EU27 figure for the same period. Quarterly and half-yearly series return the reporting period that contains a requested month.

Unofficial. Not affiliated with or endorsed by European Union.

- Page: https://fous.com/methods/ec.europa.eu/get-statistic
- Method: `ec.europa.eu/get_statistic`, version 1
- Website: ec.europa.eu
- Returns: country value, unit, period, EU average, dataset name, data page link, dataset code
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `topic` | string | yes | `"household electricity price"` | Statistic to look up, for example inflation or household electricity price. |
| `period` | string | no | `"2025-06"` | Year or month to look up; for example 2025 or 2025-06. Defaults to latest available. Default "latest". |
| `country` | string | yes | `"Spain"` | EU or EEA country name, for example Spain. |

## Output

From a run on Oct 23, 2026. Its input:

```json
{
  "topic": "household electricity price",
  "period": "2025-06",
  "country": "Spain"
}
```

Its output:

```json
{
  "unit": "EUR per kWh, including taxes, household band 2,500–4,999 kWh",
  "topic": "household electricity price",
  "value": 0.2612,
  "period": "2025-S1",
  "country": "Spain",
  "eu_average": 0.2879,
  "dataset_code": "nrg_pc_204",
  "dataset_name": "Electricity prices for household consumers - bi-annual data",
  "data_page_link": "https://ec.europa.eu/eurostat/databrowser/view/nrg_pc_204/default/table?lang=en"
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"ec.europa.eu/get_statistic","input":{"topic":"household electricity price","period":"2025-06","country":"Spain"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- What was Germany's inflation rate in June 2025 compared with the EU27 average?
- Look up the latest Eurostat household electricity price for Poland and the EU27 figure.
- I need the unemployment rate for Italy in 2024 versus the EU average from europa.eu.
- Find the Eurostat dataset code and data link for Sweden's quarterly GDP growth in 2025-03.
- What is the household electricity price in Spain for 2023 according to Eurostat, and how does it compare to the EU27?

## Input schema

```json
{
  "type": "object",
  "required": [
    "country",
    "topic"
  ],
  "properties": {
    "topic": {
      "type": "string",
      "description": "Statistic to look up, for example inflation or household electricity price."
    },
    "period": {
      "type": "string",
      "default": "latest",
      "description": "Year or month to look up; for example 2025 or 2025-06. Defaults to latest available."
    },
    "country": {
      "type": "string",
      "description": "EU or EEA country name, for example Spain."
    }
  },
  "additionalProperties": false
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "country",
    "topic",
    "value",
    "unit",
    "period",
    "eu_average",
    "dataset_name",
    "data_page_link",
    "dataset_code"
  ],
  "properties": {
    "unit": {
      "type": "string",
      "description": "Plain-language units of measurement."
    },
    "topic": {
      "type": "string",
      "description": "Statistic name."
    },
    "value": {
      "type": "number",
      "description": "Country figure."
    },
    "period": {
      "type": "string",
      "description": "Reporting year, month, quarter or half-year."
    },
    "country": {
      "type": "string",
      "description": "Country name."
    },
    "eu_average": {
      "type": [
        "number",
        "null"
      ],
      "description": "EU figure for the same period, if Eurostat reports it."
    },
    "dataset_code": {
      "type": "string",
      "description": "Eurostat dataset code.",
      "x-fous-developer": true
    },
    "dataset_name": {
      "type": "string",
      "description": "Name of the official dataset."
    },
    "data_page_link": {
      "type": "string",
      "description": "Eurostat page for this dataset."
    }
  },
  "additionalProperties": false
}
```

## See more

- [European Union API: Get euro exchange rates](https://fous.com/methods/ecb.europa.eu/get-euro-exchange-rates.md): Gets the official ECB euro reference exchange rates for a day, or the latest published day. Weekends, holidays and dates before publication return the previous published day.
- [European Union API: Get key interest rates](https://fous.com/methods/ecb.europa.eu/get-key-interest-rates.md): Returns the ECB's current deposit facility, main refinancing operations and marginal lending facility rates with their effective date. Optionally includes earlier rate changes, newest first.
- [European Union API: Convert currency](https://fous.com/methods/ecb.europa.eu/convert-currency.md): Converts an amount between currencies using ECB euro reference rates, including euro and cross-currency conversions. Uses the latest preceding published rate when the date has none.
- [European Union API: Search EU law](https://fous.com/methods/eur-lex.europa.eu/search-eu-law.md): Searches EUR-Lex legal acts by topic, ranked by the site's relevance, filtered by document type, year of adoption and in-force status. Short names and ELI links are included when shown in the results.
- [European Union API: Search EU contract awards](https://fous.com/methods/ted.europa.eu/search-contract-awards.md): Finds published EU contract award notices on Tenders Electronic Daily by contract topic or winning company, newest publication first, optionally limited to a buyer country and a start date. Values and tender counts are included when published; counts across lots are summed.
- [European Union API: Get EU law article](https://fous.com/methods/eur-lex.europa.eu/get-law-article.md): Gets the official text and key dates of one article of an EU regulation or directive from EUR-Lex, in the latest consolidated version when there is one, in any official EU language.
- [European Union API: Search EU public procurement notices](https://fous.com/methods/ted.europa.eu/search-tenders.md): Finds recently published EU procurement notices matching what is being bought, with buyer, estimated value, submission deadline and TED notice link. Open-only results must have a future submission deadline.
- [European Union API: Validate EU VAT number](https://fous.com/methods/ec.europa.eu/validate-vat-number.md): Checks an EU VAT number in the European Commission's VIES service and returns whether it is valid, with the registered name and address when the country makes them available.
- [All European Union methods](https://fous.com/methods/europa.eu.md)
