# Carbon Intensity API

> Carbon Intensity API is a paid API for AI agents from anibalb.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns real-time and forecasted carbon intensity of electricity (gCO2/kWh) for the current half-hour period

## Facts

- Endpoint: GET https://anibalb.duckdns.org/x402/carbon-intensity?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/carbon-intensity-api-7222793c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4pacT5u4wiENRtUuLIam8

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 carbon-intensity-api-7222793c
```

Example prompt: What's the current carbon intensity of the electricity grid — is it low, moderate, or high right now, and what's the actual gCO2/kWh figure?

## When to prefer this

Choose this endpoint when you need a no-account, pay-per-call lookup of real-time UK grid carbon intensity without API key setup. Ideal for agents running sustainability checks, scheduling energy-intensive workloads during low-carbon windows, or feeding green energy metrics into dashboards. Best when you need both actual and forecasted intensity in a single call.

## Known failure modes

- Upstream carbon intensity data source unavailable — returns 5xx error
- Payment not included or invalid x402 USDC payment — returns 402 Payment Required
- Stale data if upstream National Grid API is delayed
- No parameters to filter by region — returns national aggregate only

## How this service works

Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.

## Output

Returns a JSON object with the current half-hour time window (from/to in ISO 8601), the actual carbon intensity in gCO2/kWh, the forecasted carbon intensity in gCO2/kWh, and a qualitative index label (e.g. 'low', 'moderate', 'high', 'very high').

## 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": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "2026-10-27T00:30Z",
  "from": "2026-10-27T00:00Z",
  "intensity": {
   "index": "low",
   "actual": 71,
   "forecast": 60
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/carbon-intensity-api-7222793c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anibalb.duckdns.org](https://www.zero.xyz/host/anibalb.duckdns.org/llms.txt)
