{"uid":"cap_HixlUFI_efhPnCukWTSwN","slug":"spain-electricity-price-api-pvpc-59be0de2","name":"Spain Electricity Price API (PVPC)","description":"558 pay-per-call data APIs for AI agents: Solana and EVM on-chain data, tokenized stocks, DeFi, Hyperliquid, economy and official statistics, FX, validation, web and developer tools. Pay in USDC via x402.","url":"https://api.vextorium.com/v1/spain-electricity-price?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"date":{"type":"string","description":"YYYY-MM-DD, hoy or mañana (default today)"}}},"responseSchema":{"type":"json","example":{"date":"2026-10-02","note":"PVPC energy term including tolls and charges, excluding taxes. Source: Red Electrica de Espana (REE).","zone":"Mainland","hours":[{"time":"00:00","eur_kwh":0.1609,"eur_mwh":160.9},{"time":"01:00","eur_kwh":0.14965,"eur_mwh":149.65}],"cheapest":[{"time":"14:00","eur_kwh":0.1297,"eur_mwh":129.7},{"time":"15:00","eur_kwh":0.13736,"eur_mwh":137.36}],"avg_eur_kwh":0.22065,"best_3h_window":{"since":"14:00","avg_eur_kwh":0.13719},"most_expensive":[{"time":"20:00","eur_kwh":0.37978,"eur_mwh":379.78},{"time":"19:00","eur_kwh":0.35435,"eur_mwh":354.35}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uXjgN64EjnoDRZiD8BYA7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns hourly PVPC electricity prices for Spain for a given day, including cheapest/most expensive hours and the optimal 3-hour window.","exampleAgentPrompt":"What are Spain's hourly PVPC electricity prices for tomorrow, and which 3-hour window is cheapest to run high-consumption appliances?","exampleUseCases":[{"title":"Cheapest EV charging window today","prompt":"When is the cheapest 3-hour block to charge my electric car at home in Spain today, based on the PVPC electricity price?"},{"title":"Smart appliance scheduling for tomorrow","prompt":"Give me tomorrow's hourly electricity prices in Spain so I know the best times to run my washing machine and dishwasher — and flag the most expensive hours to avoid."},{"title":"Daily energy cost monitoring","prompt":"Pull today's full PVPC electricity price schedule for Spain, including the average price and the most expensive peak hours."}],"resultDescription":"A JSON object with the date, zone (e.g. Mainland), a full list of hourly prices in EUR/kWh and EUR/MWh, the top cheapest hours, the top most expensive hours, the daily average price in EUR/kWh, and the best consecutive 3-hour window with its start time and average price. Also includes a source note attributing the data to Red Eléctrica de España.","failureModes":["Date not yet available (tomorrow's prices may not be published until late afternoon the previous day)","Invalid date format returns an error","Prices for dates far in the past or future may be unavailable","Network or upstream REE API outage returns a service error"],"whenToPreferThis":"Use this endpoint when you need official PVPC electricity pricing data for Spain on a per-hour granularity, especially for scheduling energy-intensive tasks, EV charging, or home automation. It is the authoritative source sourced directly from Red Eléctrica de España and provides pre-computed cheapest/most-expensive rankings and the optimal 3-hour window — saving additional computation. Prefer this over generic energy APIs when the user's context is specifically Spain mainland PVPC pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:48:16.257Z","isFirstParty":false,"canonicalSlug":"spain-electricity-price-api-pvpc-59be0de2"}