# GB Carbon Intensity by Postcode

> GB Carbon Intensity by Postcode is a paid API for AI agents from pennydatahq.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns the current half-hour carbon intensity forecast and generation mix for the GB electricity grid region corresponding to a UK postcode.

## Facts

- Endpoint: GET https://pennydatahq.com/api/carbon/%7Bpostcode%7D?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gb-carbon-intensity-by-postcode-e588994c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nZH61ZqnKxwAHNCFADpDJ

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-by-postcode-e588994c
```

Example prompt: What's the current carbon intensity of the electricity grid near postcode RG10 — is it low, medium, or high, and what's the generation mix right now?

## When to prefer this

Use this endpoint when you need real-time or near-real-time carbon intensity data scoped to a specific UK postcode or grid region, and you want a pay-per-call model with no API key setup. Prefer this over direct Carbon Intensity API calls when operating in an x402 micropayment environment or when you need the postcode-to-region mapping handled automatically.

## Known failure modes

- Invalid or malformed postcode returns an error response
- Postcode outside Great Britain (e.g. Northern Ireland) may not be supported
- Temporary unavailability of upstream Carbon Intensity API
- Payment failure via x402 if USDC balance is insufficient

## How this service works

Penny Data: pay-per-call data for AI agents. UK company, LEI, postcode, carbon intensity, FX reference rate and food hygiene data as JSON, paid per call in USDC on Base with x402. No API key or account.

## Output

A JSON object containing the forecast window (from/to timestamps), the UK grid region and DNO region for the postcode, the intensity index (low/moderate/high/very high), the intensity value in gCO2/kWh, and a generation mix breakdown showing percentage contributions from gas, coal, wind, solar, nuclear, hydro, biomass, imports, and other sources.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "2026-10-27T14:30Z",
  "from": "2026-10-27T14:00Z",
  "region": "South England",
  "postcode": "RG10",
  "dno_region": "SSE South",
  "generation_mix": {
   "gas": 20,
   "coal": 0,
   "wind": 42.5,
   "hydro": 0,
   "other": 0,
   "solar": 20,
   "biomass": 5.2,
   "imports": 3.1,
   "nuclear": 9.2
  },
  "intensity_index": "low",
  "intensity_gco2_per_kwh": 85
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gb-carbon-intensity-by-postcode-e588994c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennydatahq.com](https://www.zero.xyz/host/pennydatahq.com/llms.txt)
