Retrieve carbon intensity by grid zone using the Electricity Maps API

domain: api.electricitymap.org · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Sign up for an Electricity Maps API key at electricitymaps.com; free tier provides limited zone access, commercial tiers provide full coverage and historical data.
  2. Include the API key in the auth-token request header for all calls.
  3. Fetch the list of available zones via GET /v3/zones to get zone keys (e.g., 'DE', 'FR', 'US-CAL-CISO') and their display names; use the zone key in subsequent calls.
  4. Retrieve current carbon intensity for a zone via GET /v3/carbon-intensity/latest?zone=<ZONE_KEY>; the response includes carbonIntensity (gCO2eq/kWh), datetime, and the data estimation method.
  5. For hourly historical data, call GET /v3/carbon-intensity/history?zone=<ZONE_KEY> which returns the past 24 hours; for longer histories or power breakdown by source, use the appropriate history or past-range endpoints on paid tiers.

Known gotchas

Related routes

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
Fetch real-time grid carbon intensity data from the WattTime API
api.watttime.org · 5 steps · unrated
Fetch multi-day-ahead carbon intensity and electricity mix forecasts from the Electricity Maps API
portal.electricitymaps.com · 5 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