{"uid":"cap__omSFmGpDEKIwx5fJBkoJ","slug":"spain-daily-electricity-demand-ree-ca2e48ad","name":"Spain Daily Electricity Demand (REE)","description":"Daily electricity demand in Spain (MWh) for the last N days with average, peak and low days and change versus the previous half of the period. Red Electrica de Espana data.","url":"https://api.vextorium.com/demanda-electrica-espana-pago?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"dias":{"type":"integer","description":"Days (2-365, default 30)"}}},"responseSchema":{"type":"json","example":{"desde":"2026-09-18","hasta":"2026-10-01","serie":[{"dia":"2026-09-18","mwh":723105.8},{"dia":"2026-09-19","mwh":638967.2},{"dia":"2026-09-20","mwh":602822.9},{"dia":"2026-09-21","mwh":717050.7},{"dia":"2026-09-22","mwh":727375.9},{"dia":"2026-09-23","mwh":738151.2},{"dia":"2026-09-24","mwh":741106.3},{"dia":"2026-09-25","mwh":744997},{"dia":"2026-09-26","mwh":655146.7},{"dia":"2026-09-27","mwh":610866.7},{"dia":"2026-09-28","mwh":722638.2},{"dia":"2026-09-29","mwh":727576.9},{"dia":"2026-09-30","mwh":739326.1},{"dia":"2026-10-01","mwh":722082.7}],"fuente":"Red Eléctrica de España (REE), sistema nacional","maximo":{"dia":"2026-09-25","mwh":744997},"minimo":{"dia":"2026-09-20","mwh":602822.9},"media_mwh":700801,"cambio_segunda_mitad_pct":0.7}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IhdftfzML5NUj9UPbedyI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns daily electricity demand in Spain (MWh) for the last N days, including average, peak, low days, and trend versus the previous half of the period, sourced from Red Eléctrica de España.","exampleAgentPrompt":"Can you pull Spain's daily electricity demand data for the last 14 days and tell me which day had the highest and lowest consumption, the average, and whether demand went up or down in the second half of the period?","exampleUseCases":[{"title":"Energy analyst weekly dashboard","prompt":"Get me Spain's electricity demand figures for the last 7 days — I need each day's MWh, the peak and lowest day, and the average, all sourced from Red Eléctrica de España."},{"title":"Monthly trend comparison report","prompt":"Pull Spain's daily power consumption data for the past 60 days so I can see whether demand in the second half of the period was higher or lower than the first half, and by how much."},{"title":"Seasonal demand anomaly detection","prompt":"Fetch 90 days of daily electricity demand data for Spain from REE — I want to spot any unusually high or low days and see the overall average to flag anomalies."}],"resultDescription":"A JSON object containing: the date range (desde/hasta), a daily series of dates and MWh values, the peak day and its MWh, the minimum day and its MWh, the average MWh across the period, the percentage change comparing the second half of the period to the first half, and the data source (Red Eléctrica de España).","failureModes":["Invalid 'dias' value outside 2-365 range returns an error","REE upstream data unavailable or delayed may return incomplete series","Missing or malformed request body returns a validation error","Days parameter as non-integer causes schema validation failure"],"whenToPreferThis":"Choose this endpoint when you need official Spanish national electricity demand statistics sourced directly from Red Eléctrica de España (REE), with built-in aggregations (average, peak, trough) and a trend signal (second-half vs first-half change). Prefer it over raw energy databases when you want pre-summarized daily MWh data for Spain specifically, without needing to aggregate raw meter readings yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:47:37.001Z","isFirstParty":false,"canonicalSlug":"spain-daily-electricity-demand-ree-ca2e48ad"}