# greeneris-data-gb-carbon

> greeneris-data-gb-carbon is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns real-time and forecast UK grid carbon intensity (gCO2/kWh) and electricity generation mix by DNO region

## Facts

- Endpoint: GET https://data.greeneris.io/v1/gb/carbon
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/greeneris-data-gb-carbon-7307823b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DtfJDHF8SbLzjCnwUhO1_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability greeneris-data-gb-carbon-7307823b
```

Example prompt: What's the current carbon intensity and generation mix for the London electricity grid (region 13), and can you also show me the 24-hour forecast so I know when it'll be cleanest?

## When to prefer this

Use this endpoint when you need real-time or short-term forecast UK grid carbon intensity data by DNO region, particularly for scheduling energy-intensive tasks during low-carbon periods, sustainability reporting, or building green energy dashboards. Prefer this over generic weather APIs when the specific need is electricity generation mix and CO2 intensity rather than meteorological data.

## Known failure modes

- Invalid region ID (outside 1-17) returns an error or empty result
- Invalid horizon enum value returns a validation error
- Network or upstream NESO API outage returns a 5xx error
- No forecast data available for the requested window returns empty periods array
- Payment not completed returns HTTP 402 with a machine-readable quote

## How this service works

Carbon intensity of Great Britain's electricity grid from the official NESO Carbon Intensity API (CC BY 4.0), in half-hour periods with a low/moderate/high index. No params -> current national half-hour; ?horizon=fw24h|fw48h adds the forecast; ?region=1..17 (13=London) switches to a DNO region and includes the generation mix per fuel. 30-min upstream cadence, 30-min cache.

## Output

A JSON object containing the carbon intensity value in gCO2/kWh, a qualitative index (e.g. 'low'), the regional DNO name and region ID, forecast periods with from/to timestamps, and a breakdown of the electricity generation mix by source (gas, wind, solar, nuclear, etc.). Data is sourced from the UK National Energy System Operator (NESO) under CC BY 4.0.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "region": {
       "type": "string",
       "description": "DNO regionid 1-17 (optional; 13=London)"
      },
      "horizon": {
       "enum": [
        "fw24h",
        "fw48h"
       ],
       "type": "string",
       "description": "Forecast window from now (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "unit": "gCO2/kWh",
  "count": 1,
  "scope": "regional",
  "region": {
   "dno": "UKPN London",
   "name": "London",
   "regionid": 13
  },
  "source": "Carbon Intensity API, National Energy System Operator (NESO), CC BY 4.0",
  "periods": [
   {
    "to": "2026-07-14T06:00Z",
    "from": "2026-07-14T05:30Z",
    "index": "low",
    "forecast": 81,
    "generation_mix": {
     "gas": 20.5,
     "wind": 34.2,
     "solar": 25,
     "nuclear": 8.1
    }
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/greeneris-data-gb-carbon-7307823b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
