Carbon Intensity API · Example Payload

Get Generation Mix

Example response from GET /generation — returns the current electricity generation mix percentages for Great Britain

Carbon IntensityEnvironmentEnergyElectricityClimateGreat BritainNational Grid

Get Generation Mix is an example object payload from Carbon Intensity API, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

summarydescriptionrequestresponse

Example Payload

Raw ↑
{
  "summary": "Get current national generation mix",
  "description": "Example response from GET /generation — returns the current electricity generation mix percentages for Great Britain",
  "request": {
    "method": "GET",
    "url": "https://api.carbonintensity.org.uk/generation",
    "headers": {
      "Accept": "application/json"
    }
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "data": [
        {
          "from": "2018-01-20T12:00Z",
          "to": "2018-01-20T12:30Z",
          "generationmix": [
            {"fuel": "gas", "perc": 43.6},
            {"fuel": "coal", "perc": 0.7},
            {"fuel": "biomass", "perc": 4.2},
            {"fuel": "nuclear", "perc": 17.6},
            {"fuel": "hydro", "perc": 1.1},
            {"fuel": "imports", "perc": 6.5},
            {"fuel": "other", "perc": 0.3},
            {"fuel": "wind", "perc": 6.8},
            {"fuel": "solar", "perc": 18.1}
          ]
        }
      ]
    }
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/get-generation-mix"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.