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

Natural Gas Production, Consumption and Trade by Country — Yearly since 1980 (EIA International Energy Statistics)

Dry natural gas production, consumption, imports and exports for every country and the world, every year since 1980, in billion cubic meters (bcm) and in billion cubic feet (measures ending -bcf), from the U.S. Energy Information Administration (public domain). Proved gas reserves are not included. Options for series: country: WLD, AE, AF, AL, AO, AR, AT, AU, AZ, BA, BB, BD, BE, BG, BH, BN, BO, BR, BY, CA, CD, CG, CH, CI, CL, CM, CN, CO, CU, CZ, DE, DK, DZ, EC, EG, ES, FR, GA, GB, GE, GH, GQ, GR, GT, HR, HU, ID, IE, IL, IN, IQ, IR, IT, JO, JP, KG, KR, KW, KZ, LY, MA, MD, MM, MR, MX, MY, MZ, NE, NG, NL, NO, NZ, OM, PE, PG, PH, PK, PL, QA, RO, RS, RU, RW, SA, SI, SK, SN, SR, SY, TH, TJ, TL, TM, TN, TR, TT, TZ, UA, US, UZ, VE, VN, YE, ZA, TW, AM, BJ, BS, DO, EE, FI, GY, HT, JM, LB, LT, LU, LV, MK, MT, PA, PT, SE, SG, SV, TG, UY, GI, HK, MO, PR; measure: production, consumption, imports, exports, production-bcf, consumption-bcf, imports-bcf, exports-bcf.

Call it (no API key)

GET https://api.agentdatahub.de/api/v1/call/natural-gas-by-country?country=WLD&measure=production&compact=1

Full metadata: verbose=1 · Markdown: format=llm · Only some fields: add &fields=a,b.c · MCP: tool call_api with {"apiId":"natural-gas-by-country"}

How to fetch it

curl:

curl -s 'https://api.agentdatahub.de/api/v1/call/natural-gas-by-country?country=WLD&measure=production&compact=1'

Python (standard library only):

import json, urllib.request

url = "https://api.agentdatahub.de/api/v1/call/natural-gas-by-country?country=WLD&measure=production&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/natural-gas-by-country?country=WLD&measure=production&_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

countryCountry or territory (ISO-2 code or name), or WLD for the world (required; several comma-separated to compare, up to 10 series): WLD, AE, AF, AL, AO, AR, AT, AU, AZ, BA, BB, BD, BE, BG, BH, BN, BO, BR, BY, CA, CD, CG, CH, CI, CL, CM, CN, CO, CU, CZ, DE, DK, DZ, EC, EG, ES, FR, GA, GB, GE, GH, GQ, GR, GT, HR, HU, ID, IE, IL, IN, IQ, IR, IT, JO, JP, KG, KR, KW, KZ, LY, MA, MD, MM, MR, MX, MY, MZ, NE, NG, NL, NO, NZ, OM, PE, PG, PH, PK, PL, QA, RO, RS, RU, RW, SA, SI, SK, SN, SR, SY, TH, TJ, TL, TM, TN, TR, TT, TZ, UA, US, UZ, VE, VN, YE, ZA, TW, AM, BJ, BS, DO, EE, FI, GY, HT, JM, LB, LT, LU, LV, MK, MT, PA, PT, SE, SG, SV, TG, UY, GI, HK, MO, PR
measureproduction (default), consumption, imports, exports (billion cubic meters); the same with -bcf in billion cubic feet (required; several comma-separated to compare, up to 10 series): production, consumption, imports, exports, production-bcf, consumption-bcf, imports-bcf, exports-bcf
seriesOptional full series key as returned by /ask (instead of the parameters above), comma-separated for several
fromOptional start YYYY, YYYY-MM or YYYY-MM-DD
toOptional end YYYY, YYYY-MM or YYYY-MM-DD
lastNumber of most recent periods when no from/to is given, 1-500 (default: 13)
groupOptional country group instead of country (EU27, EA, OECD, G7, G20, a continent): one row per member, newest value each
periodOnly with group: latest (default) or common (one period across members)

Example response (live, compact)

{
  "apiId": "natural-gas-by-country",
  "trust": "checked",
  "data_freshness": "cached",
  "data": {
    "country": "WLD",
    "measure": "production",
    "series": "World — Dry natural gas production (billion cubic meters, yearly)",
    "unit": "billion cubic meters",
    "frequency": "A",
    "latest": {
      "period": "2025",
      "value": 4269.757
    },
    "history": [
      {
        "period": "2013",
        "value": 3450.88
      },
      {
        "period": "2014",
        "value": 3503.059
      },
      {
        "period": "2015",
        "value": 3566.198
      },
      {
        "period": "2016",
        "value": 3608.918
      },
      {
        "period": "2017",
        "value": 3745.987
      },
      {
        "period": "2018",
        "value": 3928.255
      },
      {
        "period": "2019",
        "value": 4045.389
      },
      {
        "period": "2020",
        "value": 3959.032
      },
      {
        "period": "2021",
        "value": 4114.672
      },
      {
        "period": "2022",
        "value": 4142.552
      },
      {
        "period": "2023",
        "value": 4149.204
      },
      {
        "period": "2024",
        "value": 4214.783
      },
      {
        "period": "2025",
        "value": 4269.757
      }
    ],
    "available": {
      "from": "1980",
      "to": "2025",
      "points": 46
    },
    "note": "World total of the EIA.",
    "verification": {
      "checked_at": "2026-12-01T04:50:39.528Z",
      "checks": []
    },
    "source": {
      "publisher": "U.S. Energy Information Administration (EIA)",
      "licence": "Public domain (U.S. government publication); EIA asks for an acknowledgment with the publication date",
      "licence_url": "https://www.eia.gov/about/copyrights_reuse.php",
      "source_url": "https://www.eia.gov/international/data/world",
      "source_url_level": "dataset",
      "series_title": "Dry natural gas production, World, Annual"
    },
    "attribution": "Source: U.S. Energy Information Administration, International Energy Statistics"
  },
  "source": "U.S. Energy Information Administration (EIA)",
  "source_url": "https://www.eia.gov/international/data/world",
  "license": "Public domain (U.S. government publication); EIA asks for an acknowledgment with the publication date",
  "licence_status": "yellow",
  "as_of": "2025",
  "checked": "2026-12-01"
}

Recorded history available: /api/v1/history/natural-gas-by-country?country=WLD&measure=production

Source & license

SourceU.S. Energy Information Administration (EIA)
LicensePublic domain (U.S. government publication); EIA asks for an acknowledgment with the publication date
Source URLhttps://www.eia.gov/about/copyrights_reuse.php
Termshttps://www.eia.gov/about/copyrights_reuse.php
CategoryEnergy & Climate › Energy by Country (EIA) · more: oil-production-consumption-by-country · primary-energy-by-country · us-retail-fuel-prices