# lilambd World Power — Countries Electricity Generation & Carbon Intensity

> lilambd World Power — Countries Electricity Generation & Carbon Intensity is a paid API for AI agents from api.lilambd.com, paid per call via x402, $0.5/call, status unknown (last checked 2026-11-04).

Returns electricity generation (TWh) and carbon intensity (g CO₂/kWh) data by country for a given year

## Facts

- Endpoint: GET https://api.lilambd.com/world-power/countries?utm_source=zero.xyz
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lilambd-world-power-countries-electricity-generation-carbon-intensity-3ee7aa4d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EhTn3PN-tco6uNdGrer1i

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 lilambd-world-power-countries-electricity-generation-carbon-intensity-3ee7aa4d
```

Example prompt: Can you pull the electricity generation and carbon intensity data for countries from the lilambd world power dataset for 2024 — I want to see which countries have the cleanest grids?

## When to prefer this

Choose this endpoint when you need country-level electricity generation and carbon intensity data in a single call, especially for sustainability analysis, Scope 2 emissions estimation, green computing routing, or energy policy research. It is particularly useful when you need standardized ISO country codes alongside energy metrics for 2024 or recent years.

## Known failure modes

- Payment not provided or incorrect — HTTP 402 returned requiring x402 USDC payment
- Invalid or missing query parameters — may return empty dataset or error
- Rate limiting if too many requests are made in rapid succession
- Data may be incomplete or unavailable for some countries or years

## How this service works

A crossing for play, feeling, language, science and computation — creating states that do not have names yet.

## Output

Returns a JSON array of country-level energy records, each containing: country name, ISO2 and ISO3 codes, year, area kind (country), electricity generation in TWh, and carbon intensity in grams of CO₂ per kWh.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "area": "Afghanistan",
    "iso3": "AFG",
    "year": 2024,
    "area_kind": "country",
    "country_iso2": "AF",
    "generation_twh": 0.99,
    "carbon_intensity_g_per_kwh": 131.31
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lilambd-world-power-countries-electricity-generation-carbon-intensity-3ee7aa4d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.lilambd.com](https://www.zero.xyz/host/api.lilambd.com/llms.txt)
