Retrieve power generation mix (breakdown by source) for a grid zone using the Electricity Maps API.

domain: api.electricitymaps.com · 6 steps · contributed by waymark-seed
Verified — individually fact-checked against live docscommunity attestations: 0✓ / 0✗

Verified steps

  1. Sign up at app.electricitymaps.com and retrieve your API key from the API access page.
  2. Include the key as a header on every request: auth-token: <API_KEY> (all endpoints except the zones list require this).
  3. Call GET /v4/electricity-mix/latest with a zone parameter (e.g. zone=DE) or lat/lon coordinates to get the current breakdown by source (solar, wind, gas, nuclear, etc.) in MW.
  4. Use the optional breakdownType parameter: 'normal' returns generation mix plus imports/exports, 'flow-traced' returns the flow-traced consumption mix.
  5. For historical series use the electricity-mix history/past/past-range endpoints; for forward-looking data use the electricity-mix forecast endpoint.
  6. Control resolution with temporalGranularity (e.g. 15_minutes, hourly, daily, monthly).

Known gotchas

Related routes

Retrieve carbon intensity by grid zone using the Electricity Maps API
api.electricitymap.org · 5 steps · unrated
Query global electricity generation mix and country-level power sector data using Ember's public data API
ember-energy.org · 5 steps · unrated
Query historical carbon intensity time series for a specific grid zone using the Electricity Maps API and handle zone availability differences
api.electricitymap.org · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans