# GB Carbon Intensity API (NESO)

> GB Carbon Intensity API (NESO) is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns the current or forecasted carbon intensity of Great Britain's electricity grid in half-hour periods, with optional regional breakdown and generation mix by fuel type.

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/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/gb-carbon-intensity-api-neso-6bca4e9c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BOYXIgIOEDfU0io4qN4ni

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 gb-carbon-intensity-api-neso-6bca4e9c
```

Example prompt: What's the current carbon intensity of the GB electricity grid, and can you show me the 24-hour forecast and generation mix for London (region 13)?

## When to prefer this

Use this endpoint when you need authoritative, real-time or near-term forecast carbon intensity data specifically for Great Britain's electricity grid, including regional (DNO) breakdowns and per-fuel generation mix. Prefer this over generic energy data APIs when GB-specific official NESO data and the low/moderate/high index classification are required.

## Known failure modes

- Invalid region ID (outside 1-17) returns an error
- Invalid horizon value (not fw24h or fw48h) returns a validation error
- Upstream NESO API unavailable results in a 502/503 error
- Stale data if upstream cadence delayed beyond 30-minute cache window

## 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

Returns the current national or regional carbon intensity value in gCO2/kWh with a low/moderate/high index for each half-hour period. If a forecast horizon is specified (fw24h or fw48h), returns upcoming half-hour forecast periods. If a region is specified, also returns the generation mix broken down by fuel type for that DNO region.

## 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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gb-carbon-intensity-api-neso-6bca4e9c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
