# UK National Carbon Intensity API

> UK National Carbon Intensity API is a paid API for AI agents from x402-v2-mint-uk-carbon-intensity.vercel.app, paid per call via x402, $0.020061/call, status unknown (last checked 2026-12-02).

Returns the UK national electricity grid carbon intensity data for a given time period or date range.

## Facts

- Endpoint: POST https://x402-v2-mint-uk-carbon-intensity.vercel.app/v1/uk-carbon-intensity?utm_source=zero.xyz
- Price: $0.020061/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uk-national-carbon-intensity-api-63d1a983
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DEAKl6fx07PfMiV2Z0peM

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 uk-national-carbon-intensity-api-63d1a983 -d '<json body>'
```

Example prompt: What's the UK national grid carbon intensity for today? Use the current date as the period.

## When to prefer this

Choose this endpoint when you need programmatic access to UK national electricity grid carbon intensity data with per-call micropayment billing via the x402 protocol. It is well-suited for AI agents and automated workflows that need to check or monitor UK grid carbon footprint without requiring API key registration. Prefer it over alternatives when you need keyless, pay-per-use access specifically scoped to UK national data.

## Known failure modes

- Missing or invalid period/from/to parameters returns HTTP 400 and the call is not charged
- Invalid date format in 'from' or 'to' fields may result in a 400 error
- Future dates beyond available forecast window may return no data
- Network or provider outage may return a 5xx error

## How this service works

UK national carbon intensity (keyless, UK-scoped). POST {period|from|to}. Empty -> 400 not charged.

## Output

Returns a JSON object with an 'ok' boolean, the skill name ('uk-carbon-intensity'), a 'charged' boolean indicating whether the call was billed, and a 'summary' field with the result status. The actual carbon intensity data for the requested period or date range is included in the response payload.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "maxLength": 40
  },
  "from": {
   "type": "string",
   "maxLength": 40
  },
  "period": {
   "type": "string",
   "maxLength": 32
  },
  "request_id": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "skill": "uk-carbon-intensity",
  "charged": true,
  "summary": "ok"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uk-national-carbon-intensity-api-63d1a983/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-v2-mint-uk-carbon-intensity.vercel.app](https://www.zero.xyz/host/x402-v2-mint-uk-carbon-intensity.vercel.app/llms.txt)
