Datasets
Each response contains source (publisher, licence, caveats), status, retrievedAt and data.
| Endpoint | Contents | Licence |
|---|---|---|
/api/v1/news.json | CEII Newsroom — global energy press | Headlines and links only; articles remain on the publisher’s site |
/api/v1/fx.json | Global reference exchange rates | Free use with attribution |
/api/v1/solar.json | Daily solar irradiation forecast, 18 world cities | CC BY 4.0 |
/api/v1/crude.json | Crude oil spot benchmarks (Brent, WTI) | Public domain (U.S. Government work) |
/api/v1/worldbank.json | World Development Indicators — every country | CC BY 4.0 |
/api/v1/fuel.json | Retail petroleum product prices | Per provider subscription terms |
Indicator downloads
Tidy CSV, one row per country and year, with unit, series code, source and retrieval time:
/data/indicators/electricity-access.csv— Access to electricity/data/indicators/electricity-access-rural.csv— Access to electricity, rural/data/indicators/electricity-access-urban.csv— Access to electricity, urban/data/indicators/clean-cooking.csv— Access to clean fuels and technologies for cooking/data/indicators/electricity-from-coal.csv— Electricity production from coal/data/indicators/electricity-from-gas.csv— Electricity production from natural gas/data/indicators/electricity-from-oil.csv— Electricity production from oil/data/indicators/electricity-from-nuclear.csv— Electricity production from nuclear/data/indicators/electricity-from-hydro.csv— Electricity production from hydroelectric sources/data/indicators/transmission-losses.csv— Electric power transmission and distribution losses/data/indicators/power-consumption-per-capita.csv— Electric power consumption per capita/data/indicators/renewable-electricity-ex-hydro.csv— Electricity production from renewables, excluding hydro/data/indicators/renewable-electricity-share.csv— Renewable electricity output/data/indicators/renewable-energy-share.csv— Renewable energy consumption/data/indicators/co2-per-capita.csv— CO₂ emissions per capita (excluding LULUCF)/data/indicators/co2-total.csv— CO₂ emissions, total (excluding LULUCF)/data/indicators/energy-intensity.csv— Energy intensity of primary energy/data/indicators/fuel-exports-share.csv— Fuel exports/data/indicators/oil-rents.csv— Oil rents/data/indicators/gas-rents.csv— Natural gas rents/data/indicators/gdp-per-capita.csv— GDP per capita/data/indicators/population.csv— Population, total
Example
curl https://centreforenergy.org/api/v1/fx.json Fair use
Responses are cached for a few minutes, so polling more often than every five minutes returns the same data. Attribute both CEII and the original publisher named in each response. Third-party licences (for example CC BY 4.0 for World Bank data) continue to apply.