# Eurostat statistics and EU trade (Comext)

Eurostat, the EU statistical office: any dataset filtered by dimension \(GDP, inflation, unemployment, population, energy, trade and thousands more\) and EU international trade in goods by reporter, partner and product from Comext.

- No API key needed to call
- Source: [Eurostat dissemination API](https://ec.europa.eu/eurostat/web/user-guides/data-browser/api-data-access/api-getting-started)
- Licence and terms: [Eurostat reuse policy \(Commission Decision 2011/833/EU\), free reuse with source acknowledged](https://ec.europa.eu/eurostat/web/main/help/copyright-notice)
- Coverage: European Union, EFTA and candidate countries
- Answers are shared and cached for 21600 seconds.

## Questions you can ask

- What was the GDP of Germany in recent years according to Eurostat? (operation `eurostat_dataset`)
- How much did Germany import in passenger cars from China per year? (operation `eurostat_comext_trade`)

## Operations

### Eurostat dataset filtered by dimensions

Answers: what does a Eurostat dataset say for chosen dimension values, for example nama\_10\_gdp \(GDP\) for Germany in current million euro, prc\_hicp\_manr \(inflation\), une\_rt\_m \(unemployment\) or demo\_pjan \(population\)? Dimensions you leave out return all their values, so filter enough to keep the answer small. Returns the newest observations first plus the dimension codes you can filter by.

- `dataset`: required, string, Eurostat dataset code in lower case, for example nama\_10\_gdp, prc\_hicp\_manr, une\_rt\_m, demo\_pjan, nrg\_bal\_c, ei\_bsin\_m\_r2.
- `filters`: required, string, Dimension filters as dim=CODE pairs separated by semicolons, one code per dimension, for example geo=DE;unit=CP\_MEUR;na\_item=B1GQ. Dimension names are lower case; codes are case sensitive. Run once with a broad filter such as geo=DE to see the varying dimensions and their codes.
- `last`: optional, integer, default 5, How many of the latest time periods to include.

Example: What was the GDP of Germany in recent years according to Eurostat?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"eurostat","operation":"eurostat_dataset","params":{"dataset":"nama_10_gdp","filters":"geo=DE;unit=CP_MEUR;na_item=B1GQ","last":3}}}
```

Over HTTP:

```
curl '/v1/connectors/eurostat/eurostat_dataset?dataset=nama_10_gdp&filters=geo%3DDE%3Bunit%3DCP_MEUR%3Bna_item%3DB1GQ&last=3'
```

### EU trade in goods (Eurostat Comext)

Answers: how much did an EU country \(or the EU\) import or export of a product \(HS code\) to or from a partner country, in euro or quantity, per month or year?

- `reporter`: required, string, Reporting EU country, two-letter code such as DE, FR, IT, or EU27\_2020 for the whole EU.
- `partner`: required, string, Partner country two-letter code such as CN, US, GB, or an aggregate such as EXT\_EU27\_2020 \(all non-EU\) or WORLD.
- `product`: required, string, Harmonized System or CN product code with 2 to 8 digits, for example 8703 \(passenger cars\) or 27 \(mineral fuels\).
- `flow`: optional, string, 1 \| 2, default 1, 1 = imports into the reporter, 2 = exports from the reporter.
- `indicators`: optional, string, VALUE\_IN\_EUROS \| QUANTITY\_IN\_100KG, default VALUE\_IN\_EUROS, Measure: value in euro or quantity in 100 kg.
- `freq`: optional, string, M \| A, default A, M = monthly, A = annual.
- `since`: optional, string, First period to include: a year \(2022\) or year-month \(2024-01\).

Example: How much did Germany import in passenger cars from China per year?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"eurostat","operation":"eurostat_comext_trade","params":{"reporter":"DE","partner":"CN","product":"8703","flow":"1","freq":"A","since":"2021"}}}
```

Over HTTP:

```
curl '/v1/connectors/eurostat/eurostat_comext_trade?reporter=DE&partner=CN&product=8703&flow=1&freq=A&since=2021'
```

## Source notice

Source: Eurostat, the statistical office of the European Union. Eurostat data may be reused free of charge for commercial and non-commercial purposes with the source acknowledged, under Commission Decision 2011/833/EU. Terms were not quoted here: see the terms page. Values are trimmed and reordered here; the publisher does not endorse this presentation.

## Missing something?

Tell us what data, endpoint or feature you wish we had. It is free and needs no signup: call the MCP tool request_capability, or POST a short description to https://agentnative.dennery.ai/v1/capabilities/request.
