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

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

Coal production, consumption, imports and exports in thousand metric tons, recoverable coal reserves in million short tons, and production and consumption in thousand short tons (measures ending -short-tons), for every country and the world, every year since 1980, from the U.S. Energy Information Administration (public domain). Options for series: country: WLD, AF, AL, AM, AR, AT, AU, BA, BD, BE, BG, BR, BT, BW, CA, CD, CL, CN, CO, CZ, DE, DZ, EG, ES, ET, FR, GB, GE, GR, HR, HU, ID, IE, IN, IR, IT, JP, KG, KH, KP, KR, KZ, LA, LS, MA, ME, MK, MM, MN, MW, MX, MY, MZ, NE, NG, NO, NP, NZ, PE, PH, PK, PL, PT, RO, RS, RU, SE, SI, SK, SZ, TH, TJ, TR, TZ, UA, US, UZ, VE, VN, ZA, ZM, ZW, TW, AE, AZ, BJ, BN, BO, BY, CH, CR, CU, CY, DK, DO, EC, EE, FI, FJ, GH, GT, HN, HT, IL, IS, JM, JO, KE, KW, LB, LK, LT, LU, LV, MD, MG, MR, MT, MU, NA, NL, OM, PA, PY, RW, SA, SG, SN, SY, TG, TM, TN, TT, UY, YE, BM, HK, MO, NC, PR, VI, BS, BZ, CF, CG, CI, CV, GQ, GW, GY, IQ, KM, SD, SL, SO, SR, SS, TD, TL, UG, VC, AW, CK, FO, GL, NU, PF, SH, VG, PS; measure: production, consumption, imports, exports, reserves, production-short-tons, consumption-short-tons.

Call it (no API key)

GET https://api.agentdatahub.de/api/v1/call/coal-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":"coal-by-country"}

How to fetch it

curl:

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

Python (standard library only):

import json, urllib.request

url = "https://api.agentdatahub.de/api/v1/call/coal-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/coal-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, AF, AL, AM, AR, AT, AU, BA, BD, BE, BG, BR, BT, BW, CA, CD, CL, CN, CO, CZ, DE, DZ, EG, ES, ET, FR, GB, GE, GR, HR, HU, ID, IE, IN, IR, IT, JP, KG, KH, KP, KR, KZ, LA, LS, MA, ME, MK, MM, MN, MW, MX, MY, MZ, NE, NG, NO, NP, NZ, PE, PH, PK, PL, PT, RO, RS, RU, SE, SI, SK, SZ, TH, TJ, TR, TZ, UA, US, UZ, VE, VN, ZA, ZM, ZW, TW, AE, AZ, BJ, BN, BO, BY, CH, CR, CU, CY, DK, DO, EC, EE, FI, FJ, GH, GT, HN, HT, IL, IS, JM, JO, KE, KW, LB, LK, LT, LU, LV, MD, MG, MR, MT, MU, NA, NL, OM, PA, PY, RW, SA, SG, SN, SY, TG, TM, TN, TT, UY, YE, BM, HK, MO, NC, PR, VI, BS, BZ, CF, CG, CI, CV, GQ, GW, GY, IQ, KM, SD, SL, SO, SR, SS, TD, TL, UG, VC, AW, CK, FO, GL, NU, PF, SH, VG, PS
measureproduction (default), consumption, imports, exports (thousand metric tons), reserves (million short tons), production-short-tons, consumption-short-tons (required; several comma-separated to compare, up to 10 series): production, consumption, imports, exports, reserves, production-short-tons, consumption-short-tons
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": "coal-by-country",
  "trust": "checked",
  "data_freshness": "cached",
  "data": {
    "country": "WLD",
    "measure": "production",
    "series": "World — Coal production (thousand metric tons, yearly)",
    "unit": "thousand metric tons",
    "frequency": "A",
    "latest": {
      "period": "2025",
      "value": 8790571.68
    },
    "history": [
      {
        "period": "2013",
        "value": 8155418.99
      },
      {
        "period": "2014",
        "value": 8083580.71
      },
      {
        "period": "2015",
        "value": 7899475.8
      },
      {
        "period": "2016",
        "value": 7418683.12
      },
      {
        "period": "2017",
        "value": 7628813.73
      },
      {
        "period": "2018",
        "value": 7922673.32
      },
      {
        "period": "2019",
        "value": 8059076.97
      },
      {
        "period": "2020",
        "value": 7687111.92
      },
      {
        "period": "2021",
        "value": 8065376.74
      },
      {
        "period": "2022",
        "value": 8370934.58
      },
      {
        "period": "2023",
        "value": 8702659.03
      },
      {
        "period": "2024",
        "value": 8780561.83
      },
      {
        "period": "2025",
        "value": 8790571.68
      }
    ],
    "available": {
      "from": "1980",
      "to": "2025",
      "points": 46
    },
    "note": "World total of the EIA.",
    "verification": {
      "checked_at": "2026-12-01T04:50:40.204Z",
      "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": "Coal 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/coal-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: commodity-prices-monthly · crude-oil-spot-prices · electricity-mix-by-country