# EU Day-Ahead Electricity Price Lookup

> EU Day-Ahead Electricity Price Lookup is a paid API for AI agents from spain-agent-toolkit.spain-agent-toolkit.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-20).

Returns day-ahead wholesale electricity prices, cheapest hours, and cheapest consecutive window for a specified European bidding zone

## Facts

- Endpoint: GET https://spain-agent-toolkit.spain-agent-toolkit.workers.dev/v1/eu/electricity/day-ahead?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eu-day-ahead-electricity-price-lookup-87aa1196
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xcqhH_xK9e0UMoVqOzOma

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 eu-day-ahead-electricity-price-lookup-87aa1196
```

Example prompt: What are the 4 cheapest single hours and the cheapest 4-hour consecutive window for electricity in the DE-LU bidding zone tomorrow?

## When to prefer this

Use this endpoint when you need real-time or next-day European wholesale electricity prices for scheduling, automation, or cost analysis — especially when you want pre-computed cheapest-hour and cheapest-window rankings rather than raw hourly price arrays. It requires no API key or account, charges a micro-fee per call via x402/USDC, and covers 15 European bidding zones. Prefer it over generic energy data APIs when you need pay-per-use simplicity and EU bidding zone coverage with built-in cheapest-window computation.

## Known failure modes

- Missing or invalid 'zone' query parameter returns a validation error
- Zone code not in supported enum list returns a bad request error
- 'tomorrow' requested after day-ahead data is unavailable for that date returns an error or empty result
- 'window' or 'cheapest' value outside 1-24 range returns a validation error
- Upstream day-ahead market data temporarily unavailable causes a 5xx error

## How this service works

Pay-per-call Spain and EU utilities for AI agents over x402 (USDC). No accounts, no API keys. Public open data, live official checks (EU VIES) and offline computation; nothing is stored.

## Output

A JSON object containing the date, bidding zone name and code, price unit (EUR/MWh), a list of the N cheapest single hours (each with hour index, ISO 8601 start time, EUR/MWh and EUR/kWh), the cheapest consecutive window (start time, start hour, window length, average EUR/MWh), and the day's overall average price in EUR/MWh.

## 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": [
      "zone"
     ],
     "properties": {
      "day": {
       "type": "string",
       "description": "today (default) or tomorrow (Europe/Berlin date)"
      },
      "zone": {
       "enum": [
        "AT",
        "BE",
        "CH",
        "CZ",
        "DE-LU",
        "DK1",
        "DK2",
        "FR",
        "HU",
        "IT-North",
        "NL",
        "NO2",
        "PL",
        "SE4",
        "SI"
       ],
       "type": "string",
       "description": "Bidding zone: AT, BE, CH, CZ, DE-LU, DK1, DK2, FR, HU, IT-North, NL, NO2, PL, SE4, SI"
      },
      "window": {
       "type": "integer",
       "description": "Length in hours of the cheapest consecutive window (1-24, default 3)"
      },
      "cheapest": {
       "type": "integer",
       "description": "How many cheapest single hours to return (1-24, default 3)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": "2026-10-26",
  "unit": "EUR/MWh",
  "zone": "DE-LU",
  "cheapest": [
   {
    "hour": 13,
    "start": "2026-10-26T13:00+01:00",
    "eurPerKWh": 0.0412,
    "eurPerMWh": 41.2
   }
  ],
  "zoneName": "Germany-Luxembourg",
  "cheapestWindow": {
   "hours": 3,
   "start": "2026-10-26T12:00+01:00",
   "startHour": 12,
   "avgEurPerMWh": 45.1
  },
  "averageEurPerMWh": 98.4
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eu-day-ahead-electricity-price-lookup-87aa1196/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from spain-agent-toolkit.spain-agent-toolkit.workers.dev](https://www.zero.xyz/host/spain-agent-toolkit.spain-agent-toolkit.workers.dev/llms.txt)
