Eurostat — official EU statistics
Eurostat is the EU's statistics bureau. The Statistics API provides access to more than 4,000 datasets in JSON-stat 2.0: macroeconomics (GDP, inflation, government budgets), the labour market, population, trade and the environment for all 27 EU countries + the EEA, including SE and DK. CC-BY-4.0, no auth. Issue #1208.
—
Data volume
Daily
Updates
7
MCP tools
{
"data": "..."
}MCP integration
API endpoints
/dataHent statistikkdata (JSON-stat 2.0). Uten dimensjonsfiltre brukes nordisk default-geo (NO,SE,DK,FI) så store datasett ikke gir for stor respons. Legg på geo/time/na_item/unit for å snevre inn. Svaret bærer `total` (celler i HELE datasettet), `returned`, `offset`, `limit`, `truncated` og `hasMore`/`nextOffset` — er `truncated: true`, hent resten med `offset`.
- dataset required
- Eurostat dataset-kode
dataset=nama_10_gdp - geo optional
- Landkode(r), komma-separert. Utelates den sammen med alle andre dimensjonsfiltre, brukes nordisk default (NO,SE,DK,FI). En verdi som ikke finnes i datasettet avvises med 400 — slå opp gyldige koder på /dataset/{id}/structure
geo=NO - time optional
- Tidsperiode eller -intervall (enkeltår eller intervall)
time=2023 - limit optional
- Maks antall observasjoner i svaret
limit=1000 - offset optional
- Start-posisjon i datasettet. Bruk `nextOffset` fra forrige svar for å hente resten når `truncated: true`
offset=0
Show curl example
# GET https://data.ketl.no/api/connectors/eurostat/data?dataset=nama_10_gdp
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/eurostat/data?dataset=nama_10_gdp"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.
/searchSøk i dataset-katalogen
- q required
- Søkestreng
q=gdp - limit optional
- Maks antall treff (1–100)
- offset optional
- Paginerings-offset (0-basert). Kanonisk sammen med `limit`.
offset=0
Show curl example
# GET https://data.ketl.no/api/connectors/eurostat/search?q=gdp
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/eurostat/search?q=gdp"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.
/datasetsList katalogen (paginert). Default viser kun spørrbare datasett (type=dataset) — round-trip-trygt mot /dataset/{id}/structure
- q optional
- Fritekst-filter på tittel/kode (tom = alle)
q=gdp - type optional
- TOC-type. Default 'dataset' (kun spørrbare). 'folder' = navigasjonsnoder (ikke slå-opp-bare). 'all' = hele den miksede katalogen
type=dataset - limit optional
- Maks rader (1–200)
limit=50 - offset optional
- Paginerings-offset
offset=0
Show curl example
# GET https://data.ketl.no/api/connectors/eurostat/datasets
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/eurostat/datasets"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.
/dataset/{id}/structureDatasett-struktur (DSD / codelists)
Show curl example
# GET https://data.ketl.no/api/connectors/eurostat/dataset/{id}/structure
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/eurostat/dataset/{id}/structure"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.
/gdpKonveniens: BNP per capita
- geo optional
- Landkode(r), komma-separert. Default NO,SE,DK,FI.
geo=NO,SE,DK,FI - country optional
- Alias for `geo`. `geo` vinner hvis begge er gitt og `geo` ikke er tom.
country=NO,SE,DK,FI - time optional
- Tidsperiode (enkeltår).
time=2023
Show curl example
# GET https://data.ketl.no/api/connectors/eurostat/gdp
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/eurostat/gdp"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.
/inflationKonveniens: HICP inflasjon
- geo optional
- Landkode(r), komma-separert. Default NO,SE,DK,FI.
geo=NO,SE,DK,FI - country optional
- Alias for `geo`. `geo` vinner hvis begge er gitt og `geo` ikke er tom.
country=NO,SE,DK,FI - since optional
- Nedre tidsgrense (år), inkl.
since=2020
Show curl example
# GET https://data.ketl.no/api/connectors/eurostat/inflation
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/eurostat/inflation"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.
/unemploymentKonveniens: arbeidsledighet
- geo optional
- Landkode(r), komma-separert. Default NO,SE,DK,FI.
geo=NO,SE,DK,FI - country optional
- Alias for `geo`. `geo` vinner hvis begge er gitt og `geo` ikke er tom.
country=NO,SE,DK,FI - since optional
- Nedre tidsgrense (år), inkl.
since=2020
Show curl example
# GET https://data.ketl.no/api/connectors/eurostat/unemployment
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/eurostat/unemployment"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.