← Agent Data Hub · Search endpoints · /llms.txt

Energy import dependency (all products) — EU Countries, Full History (Eurostat)

Energy import dependency (all products) for any EU/EEA country or aggregate (geo code, e.g. DE, FR, EU27_2020, EA for the euro area), latest value plus history. Eurostat dataset nrg_ind_id.

Call it (no API key)

GET https://api.agentdatahub.de/api/v1/call/eurostat-energy-import-dependency?geo=DE&periods=12&compact=1

Full metadata: verbose=1 · Markdown: format=llm · Only some fields: add &fields=a,b.c · MCP: tool call_api with {"apiId":"eurostat-energy-import-dependency"}

How to fetch it

curl:

curl -s 'https://api.agentdatahub.de/api/v1/call/eurostat-energy-import-dependency?geo=DE&periods=12&compact=1'

Python (standard library only):

import json, urllib.request

url = "https://api.agentdatahub.de/api/v1/call/eurostat-energy-import-dependency?geo=DE&periods=12&compact=1"
with urllib.request.urlopen(url, timeout=30) as r:
    data = json.load(r)
print(json.dumps(data, indent=2)[:2000])

Google Sheets:

=IMPORTDATA("https://api.agentdatahub.de/api/v1/history/eurostat-energy-import-dependency?geo=DE&periods=12&_order=desc&_limit=500&format=csv")

The recorded history of this call as CSV, newest first. Excel: Data → From Web with the same address.

Parameters

geoEurostat geo code, e.g. DE, FR, IT, EU27_2020, EA = euro area as composed today (default: DE)
exacttrue: the geo code exactly as given, e.g. EA20 for the 2023-2025 composition (optional)
periodsNumber of most recent periods, 1-400 (default: 24)

Example response (live, compact)

{
  "apiId": "eurostat-energy-import-dependency",
  "trust": "checked",
  "data_freshness": "cached",
  "data": {
    "dataset": "nrg_ind_id",
    "title": "Energy import dependency (all products)",
    "unit": "% of gross available energy",
    "geo": "DE",
    "latest": {
      "period": "2024",
      "value": 66.812
    },
    "history": [
      {
        "period": "2013",
        "value": 62.411
      },
      {
        "period": "2014",
        "value": 61.779
      },
      {
        "period": "2015",
        "value": 62.132
      },
      {
        "period": "2016",
        "value": 63.752
      },
      {
        "period": "2017",
        "value": 63.959
      },
      {
        "period": "2018",
        "value": 63.478
      },
      {
        "period": "2019",
        "value": 67.055
      },
      {
        "period": "2020",
        "value": 63.676
      },
      {
        "period": "2021",
        "value": 63.395
      },
      {
        "period": "2022",
        "value": 68.652
      },
      {
        "period": "2023",
        "value": 66.831
      },
      {
        "period": "2024",
        "value": 66.812
      }
    ],
    "served_from": "archive",
    "attribution": "Source: Eurostat"
  },
  "source": "Eurostat",
  "source_url": "https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/nrg_ind_id",
  "license": "Eurostat (reuse incl. commercial allowed, source acknowledged)",
  "licence_status": "green",
  "as_of": "2024",
  "checked": "2026-12-03"
}

Recorded history available: /api/v1/history/eurostat-energy-import-dependency?geo=DE&periods=12

Source & license

SourceEurostat
LicenseEurostat (reuse incl. commercial allowed, source acknowledged)
Source URLhttps://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/nrg_ind_id
Termshttps://ec.europa.eu/eurostat/web/main/help/copyright-notice
CategoryFinance & Markets › Euro Area & EU Statistics (ECB, Eurostat) · more: eurostat-energy-intensity · eurostat-ev-charging-points · eurostat-excess-mortality