# U.S. Retail Electricity Price Lookup (EIA)

> U.S. Retail Electricity Price Lookup (EIA) is a paid API for AI agents from x402-seller.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns the latest average U.S. retail electricity price in cents/kWh, with optional filtering by state, sourced from the U.S. Energy Information Administration.

## Facts

- Endpoint: GET https://x402-seller.onrender.com/electricity/price
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/u-s-retail-electricity-price-lookup-eia-8d0d2e9b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n5XSis5WMEwtn60rwxncj

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 u-s-retail-electricity-price-lookup-eia-8d0d2e9b
```

Example prompt: What's the latest average retail electricity price in California — can you pull the most recent monthly EIA figure in cents per kWh?

## When to prefer this

Use this endpoint when you need the latest official U.S. retail electricity price data from the EIA, either at the national level or for a specific state. Prefer this over general web search when you need a structured, machine-readable price figure with provenance and units clearly specified.

## Known failure modes

- Invalid or unrecognized state code returns an error or empty result
- EIA data source unavailable or delayed causes stale or missing data
- Network timeout from the Render-hosted service
- Malformed query parameter causes a 400-level response

## How this service works

Current average U.S. retail price of electricity, in cents per kilowatt-hour (cents/kWh) — e.g. "what's the electricity price right now". Reflects the latest monthly data (not real-time), averaged across all sectors combined (not sector-specific), sourced from the U.S. Energy Information Administration (EIA). Optional 'state' param (2-letter code) returns that state's average instead of the national figure.

## Output

Returns a JSON object with the latest monthly average retail electricity price in cents/kWh, including the date of the data, the region (state code or 'US' for national), the unit (cents/kWh), and the EIA as the source.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "state": {
       "type": "string",
       "description": "2-letter US state code, or 'US' for national average"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "date": {
       "type": "string"
      },
      "unit": {
       "type": "string"
      },
      "price": {
       "type": "number"
      },
      "region": {
       "type": "string"
      },
      "source": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/u-s-retail-electricity-price-lookup-eia-8d0d2e9b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller.onrender.com](https://www.zero.xyz/host/x402-seller.onrender.com/llms.txt)
