{"api":{"id":"api_544b953fd72a0222d7b1ace6","slug":"country-energy-statistics","name":"Country Energy Statistics API","description":"Long annual energy series by country and year: population, GDP, primary energy and electricity generation, shares of electricity from renewables, solar, wind, coal, gas and nuclear, carbon intensity and energy per person.","kind":"ready_made","visibility":"public","domain":"github.com","source_url":"https://github.com/owid/energy-data","category":"public_data","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":15,"created_at":"2026-12-06T03:57:27.627Z","updated_at":"2026-12-06T03:57:27.627Z","runnable":true},"version":"1.0","contract_hash":"9961d923f0d6a5a52fbf96cb668497330ecb86f30b6ca998ce02dcc6e49202d7","fields":[{"name":"country","type":"string","description":"Country, region or group name.","required":true,"coverage":1,"example":"Canada"},{"name":"year","type":"integer","description":"Calendar year.","required":true,"coverage":1,"example":2015},{"name":"iso_code","type":"string","description":"ISO 3166 alpha-3 country code; empty for regions and groups.","required":false,"coverage":1,"example":"CAN"},{"name":"population","type":"integer","description":"Population.","required":false,"coverage":1,"example":35962236},{"name":"gdp","type":"number","description":"Gross domestic product in international dollars.","required":false,"coverage":1,"example":1568025782105},{"name":"primary_energy_consumption","type":"number","description":"Primary energy consumption in terawatt-hours.","required":false,"coverage":1,"example":4021.453},{"name":"electricity_generation","type":"number","description":"Electricity generation in terawatt-hours.","required":false,"coverage":1,"example":661.08},{"name":"renewables_share_elec","type":"number","description":"Share of electricity from renewables, in percent.","required":false,"coverage":1,"example":63.841},{"name":"solar_share_elec","type":"number","description":"Share of electricity from solar, in percent.","required":false,"coverage":1,"example":0.437},{"name":"wind_share_elec","type":"number","description":"Share of electricity from wind, in percent.","required":false,"coverage":1,"example":4.08},{"name":"coal_share_elec","type":"number","description":"Share of electricity from coal, in percent.","required":false,"coverage":1,"example":9.826},{"name":"gas_share_elec","type":"number","description":"Share of electricity from gas, in percent.","required":false,"coverage":1,"example":10.283},{"name":"nuclear_share_elec","type":"number","description":"Share of electricity from nuclear, in percent.","required":false,"coverage":1,"example":15.293},{"name":"carbon_intensity_elec","type":"number","description":"Grams of CO2 emitted per kilowatt-hour of electricity.","required":false,"coverage":1,"example":184.37},{"name":"energy_per_capita","type":"number","description":"Primary energy use per person in kilowatt-hours.","required":false,"coverage":1,"example":111824.336}],"inputs":[{"name":"countries","type":"array","description":"Country or region names in English, such as Canada or India. Leave empty for every country.","example":["Canada","India"]},{"name":"start_year","type":"integer","description":"First year to return.","example":2015},{"name":"metrics","type":"array","description":"Measures to keep, from: population, gdp, primary_energy_consumption, electricity_generation, renewables_share_elec, solar_share_elec, wind_share_elec, coal_share_elec, gas_share_elec, nuclear_share_elec, carbon_intensity_elec, energy_per_capita. The others come back empty. Leave empty for all.","example":["renewables_share_elec","primary_energy_consumption"]}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"carbon_intensity_elec":{"description":"Grams of CO2 emitted per kilowatt-hour of electricity.","type":"number"},"coal_share_elec":{"description":"Share of electricity from coal, in percent.","type":"number"},"country":{"description":"Country, region or group name.","type":"string"},"electricity_generation":{"description":"Electricity generation in terawatt-hours.","type":"number"},"energy_per_capita":{"description":"Primary energy use per person in kilowatt-hours.","type":"number"},"gas_share_elec":{"description":"Share of electricity from gas, in percent.","type":"number"},"gdp":{"description":"Gross domestic product in international dollars.","type":"number"},"iso_code":{"description":"ISO 3166 alpha-3 country code; empty for regions and groups.","type":"string"},"nuclear_share_elec":{"description":"Share of electricity from nuclear, in percent.","type":"number"},"population":{"description":"Population.","type":"integer"},"primary_energy_consumption":{"description":"Primary energy consumption in terawatt-hours.","type":"number"},"renewables_share_elec":{"description":"Share of electricity from renewables, in percent.","type":"number"},"solar_share_elec":{"description":"Share of electricity from solar, in percent.","type":"number"},"wind_share_elec":{"description":"Share of electricity from wind, in percent.","type":"number"},"year":{"description":"Calendar year.","type":"integer"}},"required":["country","year"],"title":"Country Energy Statistics API","type":"object"},"samples":[{"country":"Canada","year":2015,"iso_code":"CAN","population":35962236,"gdp":1568025782105,"primary_energy_consumption":4021.453,"electricity_generation":661.08,"renewables_share_elec":63.841,"solar_share_elec":0.437,"wind_share_elec":4.08,"coal_share_elec":9.826,"gas_share_elec":10.283,"nuclear_share_elec":15.293,"carbon_intensity_elec":184.37,"energy_per_capita":111824.336},{"country":"Canada","year":2016,"iso_code":"CAN","population":36353345,"gdp":1583727974022,"primary_energy_consumption":3973.037,"electricity_generation":667.13,"renewables_share_elec":64.565,"solar_share_elec":0.451,"wind_share_elec":4.636,"coal_share_elec":9.746,"gas_share_elec":9.866,"nuclear_share_elec":15.098,"carbon_intensity_elec":180.88,"energy_per_capita":109289.445},{"country":"Canada","year":2017,"iso_code":"CAN","population":36808498,"gdp":1631871440185,"primary_energy_consumption":4026.635,"electricity_generation":669.35,"renewables_share_elec":65.819,"solar_share_elec":0.495,"wind_share_elec":4.708,"coal_share_elec":9.384,"gas_share_elec":9.182,"nuclear_share_elec":15.03,"carbon_intensity_elec":172.06,"energy_per_capita":109394.164}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"carbon_intensity_elec":1,"coal_share_elec":1,"country":1,"electricity_generation":1,"energy_per_capita":1,"gas_share_elec":1,"gdp":1,"iso_code":1,"nuclear_share_elec":1,"population":1,"primary_energy_consumption":1,"renewables_share_elec":1,"solar_share_elec":1,"wind_share_elec":1,"year":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:57:27.627Z","activated_at":"2026-12-06T03:57:27.627Z","active":true,"contract_hash":"9961d923f0d6a5a52fbf96cb668497330ecb86f30b6ca998ce02dcc6e49202d7","fields_count":15}]}