Electricity Mix

A country’s electricity for the latest full year: generation by source, clean, renewable and fossil shares, carbon intensity, demand per person, power-sector CO2, a six-year trend and the last twelve months.

GET/api/v1/energy/electricity-mix
Also included in Country 360 , which joins it with 13 other APIs in one call.

Query parameters

ParameterDescriptionTry value
country
string required
2-letter ISO country code
apikey
string required
Your API key. Can also be sent as the X-API-Key header.demo key used here

Response envelope

Success: { data, meta: { fetchedAt, cached } }. Errors: { error: { code, message } } with HTTP 400, 401, 404, 502, 503 or 504. Add format= for JSON Lines, CSV, TSV, Excel, XML or YAML (how it works).