{"uid":"cap_evq3WliBc5XgVBs0CKqym","slug":"spain-pvpc-electricity-price-api-7d09d288","name":"Spain PVPC Electricity Price API","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://es.redtapeapi.com/v1/es/electricity/pvpc?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":[],"properties":{"day":{"type":"string","description":"today (default) or tomorrow. Tomorrow is published around 20:15-20:30 Madrid time."},"cheapest":{"type":"integer","description":"How many cheapest hours to return (1-12, default 3)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"date":"2026-10-22","unit":"EUR/kWh","cheapest":[{"hour":14,"period":"llano","eurPerKWh":0.01314}],"averageEurPerKWh":0.20774,"cheapestWindow3h":{"startHour":14,"avgEurPerKWh":0.01349}}},"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_C62JjKkPx6tLjq8WSvl8b","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 Spain's regulated PVPC electricity tariff prices for today or tomorrow, including cheapest hours and optimal 3-hour windows.","exampleAgentPrompt":"What are the 5 cheapest electricity hours in Spain tomorrow under the PVPC tariff, and when is the best 3-hour window to run heavy appliances?","exampleUseCases":[{"title":"Schedule dishwasher at cheapest hour","prompt":"What's the cheapest hour to run my dishwasher today in Spain under the PVPC tariff? Give me the top 3 cheapest hours."},{"title":"Plan tomorrow's EV charging window","prompt":"When is the cheapest 3-hour window to charge my electric car tomorrow in Spain? I want the PVPC prices for tomorrow — they should be published by now."},{"title":"Daily energy cost dashboard","prompt":"Can you pull today's average PVPC electricity price in Spain and tell me the cheapest hour so I can update my home energy dashboard?"}],"resultDescription":"Returns a JSON object with the target date, price unit (EUR/kWh), a list of the N cheapest hours with their tariff period label and price, the average price across all hours, and the start hour of the cheapest consecutive 3-hour window with its average price.","failureModes":["Tomorrow's prices not yet available (published ~20:15–20:30 Madrid time): may return an error or empty data if requested too early","Invalid 'day' value (not 'today' or 'tomorrow'): request rejected","'cheapest' parameter out of range (not 1–12): request rejected","Upstream REE/ESIOS data feed unavailable: service may return an error","Network timeout or x402 payment failure: call not completed"],"whenToPreferThis":"Use this endpoint when you need Spain's official regulated PVPC electricity tariff prices to schedule energy usage, automate smart home decisions, or display real-time price information — particularly when you need cheapest-hour identification or optimal window analysis without storing any data or managing API credentials.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T01:12:16.836Z","isFirstParty":false,"canonicalSlug":"spain-pvpc-electricity-price-api-7d09d288"}