{"uid":"cap_xcqhH_xK9e0UMoVqOzOma","slug":"eu-day-ahead-electricity-price-lookup-87aa1196","name":"EU Day-Ahead Electricity Price Lookup","description":"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.","url":"https://spain-agent-toolkit.spain-agent-toolkit.workers.dev/v1/eu/electricity/day-ahead?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7zUcGeI0rQVjDQpx9cwxj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns day-ahead wholesale electricity prices, cheapest hours, and cheapest consecutive window for a specified European bidding zone","exampleAgentPrompt":"What are the 4 cheapest single hours and the cheapest 4-hour consecutive window for electricity in the DE-LU bidding zone tomorrow?","exampleUseCases":[{"title":"EV charging schedule optimization","prompt":"When are the 3 cheapest hours to charge my EV tonight in France? I want the single cheapest hours, not a window."},{"title":"Smart heat pump scheduling","prompt":"Find the cheapest 6-hour consecutive window for electricity in Austria tomorrow so I can schedule my heat pump to run then."},{"title":"Energy cost dashboard for Germany","prompt":"What's the average day-ahead electricity price for Germany-Luxembourg today, and which 3 hours are cheapest?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:35:50.649Z","isFirstParty":false,"canonicalSlug":"eu-day-ahead-electricity-price-lookup-87aa1196"}