{"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,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","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},"links":{"run":"https://pullrow.dev/v1/apis/api_544b953fd72a0222d7b1ace6/run","openapi":"https://pullrow.dev/v1/apis/api_544b953fd72a0222d7b1ace6/openapi.json","contract":"https://pullrow.dev/v1/apis/api_544b953fd72a0222d7b1ace6/contract.json","page":"https://pullrow.dev/catalog/country-energy-statistics"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["One row per country and year, from the 1800s or 1900s (it depends on the country) up to the latest year Our World in Data has published, usually one to two years ago.","Many values are empty for early years and smaller countries, and the latest year is often incomplete.","Besides countries the dataset has regions and groups such as World, Europe, Africa and income groups. Name them exactly as the dataset does.","Country names are matched in English, ignoring capitals. Energy values are in terawatt-hours, shares in percent, carbon intensity in grams of CO2 per kilowatt-hour, energy per capita in kilowatt-hours; GDP is in international dollars.","A run returns at most 20,000 rows. Our World in Data refreshes the dataset a few times a year, built from the Energy Institute, Ember and other sources.","Source: Our World in Data energy dataset, licensed CC BY 4.0: credit Our World in Data and its underlying sources when you publish."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"country","label":"Country","description":"Country, region or group name.","group":"Location","shown":true,"written":false},{"name":"year","label":"Calendar year","description":"","group":"Dates","shown":true,"written":false},{"name":"iso_code","label":"ISO code","description":"ISO 3166 alpha-3 country code; empty for regions and groups.","group":"Basics","shown":true,"written":false},{"name":"population","label":"Population","description":"","group":"Basics","shown":true,"written":false},{"name":"gdp","label":"Gdp","description":"Gross domestic product in international dollars.","group":"Basics","shown":true,"written":false},{"name":"primary_energy_consumption","label":"Primary energy consumption","description":"Primary energy consumption in terawatt-hours.","group":"Basics","shown":true,"written":false},{"name":"electricity_generation","label":"Electricity generation","description":"Electricity generation in terawatt-hours.","group":"Basics","shown":true,"written":false},{"name":"renewables_share_elec","label":"Renewables share elec","description":"Share of electricity from renewables, in percent.","group":"Basics","shown":true,"written":false},{"name":"solar_share_elec","label":"Solar share elec","description":"Share of electricity from solar, in percent.","group":"Basics","shown":true,"written":false},{"name":"wind_share_elec","label":"Wind share elec","description":"Share of electricity from wind, in percent.","group":"Basics","shown":true,"written":false},{"name":"coal_share_elec","label":"Coal share elec","description":"Share of electricity from coal, in percent.","group":"Basics","shown":true,"written":false},{"name":"gas_share_elec","label":"Gas share elec","description":"Share of electricity from gas, in percent.","group":"Basics","shown":true,"written":false},{"name":"nuclear_share_elec","label":"Nuclear share elec","description":"Share of electricity from nuclear, in percent.","group":"Basics","shown":true,"written":false},{"name":"carbon_intensity_elec","label":"Carbon intensity elec","description":"Grams of CO2 emitted per kilowatt-hour of electricity.","group":"Basics","shown":true,"written":false},{"name":"energy_per_capita","label":"Energy per capita","description":"Primary energy use per person in kilowatt-hours.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"countries","label":"Countries","help":"Country or region names in English, such as Canada or India. Leave empty for every country.","example":"Canada, India","written":false},{"name":"start_year","label":"Start year","help":"First year to return.","example":"2015","written":false},{"name":"metrics","label":"Metrics","help":"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","written":false}]}},"incidents":[]}