Spain Electricity Prices (PVPC, REE/ESIOS)
Pricing
from $2.50 / 1,000 hourly pvpc prices
Spain Electricity Prices (PVPC, REE/ESIOS)
Official Spanish PVPC hourly electricity prices (precio PVPC API) from the ESIOS public archive (Red Eléctrica). No API token. Peninsula and Ceuta-Melilla in €/MWh and €/kWh, plus published components. Built for comparadores, alertas horarias and n8n / automations.
Pricing
from $2.50 / 1,000 hourly pvpc prices
Rating
0.0
(0)
Developer
Asier Sanchez
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
Features
Share
Get the official Spanish PVPC hourly electricity price (Precio Voluntario para el Pequeño Consumidor) as clean JSON or CSV rows.
The Actor downloads ESIOS archive 70, a public JSON published by Red Eléctrica de España. No API token is required. This is the regulated PVPC used by comparators, hourly alerts and home or industry automations (including n8n) — not the wholesale day-ahead spot from apidatos.ree.es.
What this Actor does
- Reads the official public archive for each requested day (Peninsula and Ceuta-Melilla).
- Writes one dataset row per hour (normally 24 rows per day).
- Keeps the official unit €/MWh and adds a derived €/kWh value (÷ 1,000).
- Includes the published tariff components and the official archive URL for that day.
What you get
| Field | Description |
|---|---|
date, hour, hourStart | Day and hour slot (00-01 … 23-24) |
pcbEurPerMwh | Peninsula price, official unit €/MWh |
cymEurPerMwh | Ceuta and Melilla price, €/MWh |
pcbEurPerKwh, cymEurPerKwh | Same prices divided by 1,000, in €/kWh (derived, for convenience) |
coefficient2Td | Official 2.0TD coefficient (COF2TD) when present |
componentsPcb, componentsCym | Published components (market, adjustment, fees, energy term, marketing margin, hourly charge, etc.) |
unitOfficial | Always EUR/MWh |
sourceUrl | Official archive URL for that day |
sourceAttribution | Required credit line |
scrapedAt | UTC timestamp of the run |
Configuration
| Input field | Type | Default | Description |
|---|---|---|---|
dateFrom | date (YYYY-MM-DD) | (empty) | First day to include. Example: 2026-11-22. If empty, the Actor uses lookbackDays. |
dateTo | date (YYYY-MM-DD) | today (UTC) | Last day to include. The next day’s PVPC is usually published the evening before. |
lookbackDays | integer | 1 | Used only when dateFrom is empty. How many days to request ending at dateTo. Maximum 31. |
maxItems | integer | 0 | Stop after this many hourly rows. 0 = no limit. A full day is 24 rows. |
Input example
{"dateFrom": "2026-11-22","dateTo": "2026-11-22","maxItems": 24}
Output example
{"date": "2026-11-22","hour": "00-01","hourStart": 0,"pcbEurPerMwh": 143.45,"cymEurPerMwh": 143.45,"pcbEurPerKwh": 0.14345,"cymEurPerKwh": 0.14345,"coefficient2Td": 0.934,"componentsPcb": {"market": 80.12,"adjustment": 5.0,"omFee": 0.5,"osFee": 0.3,"interruptibility": 0.0,"capacityPayment": 2.1,"energyTerm": 40.0,"marketingMargin": 3.0,"edsr": 0.0,"hourlyCharge": 12.43},"componentsCym": {"market": 80.12,"adjustment": 5.0,"omFee": 0.5,"osFee": 0.3,"interruptibility": 0.0,"capacityPayment": 2.1,"energyTerm": 40.0,"marketingMargin": 3.0,"edsr": 0.0,"hourlyCharge": 12.43},"unitOfficial": "EUR/MWh","sourceUrl": "https://api.esios.ree.es/archives/70/download_json?locale=es&date=2026-11-22","sourceAttribution": "Fuente: Red Eléctrica de España (ESIOS), archivo 70 PVPC. https://www.esios.ree.es","scrapedAt": "2026-11-23T21:00:00+00:00"}
A run summary (days requested, days with data, prices pushed) is saved in the default key-value store as RUN_STATS.
Python example (apify-client)
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("innovito/precios-luz-pvpc").call(run_input={"dateFrom": "2026-11-22","dateTo": "2026-11-22","maxItems": 24,})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item["date"], item["hour"], item["pcbEurPerMwh"], item["pcbEurPerKwh"])
You can also schedule the Actor daily and send the dataset to Google Sheets, Slack, Make, Zapier or n8n.
Pricing
Pay-per-event: $2.50 per 1,000 hourly prices written to the dataset, plus $0.00005 per Actor start. You are not charged for platform compute.
Data source and terms
- Endpoint (no token):
https://api.esios.ree.es/archives/70/download_json?locale=es&date=YYYY-MM-DD. - Published by Red Eléctrica de España / ESIOS. Reuse is subject to REE’s open-data / reuse conditions. Credit Red Eléctrica de España (ESIOS). Do not present this Actor as an official REE product.
- Official figures are in €/MWh. The €/kWh fields are a simple conversion (÷ 1,000) and are labelled as such.
Precios de la luz en España (PVPC, REE/ESIOS)
Obtiene el precio horario oficial del PVPC (Precio Voluntario para el Pequeño Consumidor) en filas JSON o CSV listas para comparadores, alertas horarias, n8n o un agente.
Usa el archivo 70 de ESIOS, un JSON público de Red Eléctrica de España: no hace falta token. Es el PVPC regulado, no el precio mayorista de apidatos.ree.es.
Qué hace este Actor
- Lee el archivo oficial de cada día solicitado (Península y Ceuta-Melilla).
- Escribe una fila del dataset por hora (normalmente 24 filas por día).
- Conserva la unidad oficial €/MWh y añade el valor derivado en €/kWh (÷ 1.000).
- Incluye los componentes tarifarios publicados y la URL oficial del archivo de ese día.
Qué devuelve
| Campo | Descripción |
|---|---|
date, hour, hourStart | Día y tramo horario (00-01 … 23-24) |
pcbEurPerMwh | Precio en Península, unidad oficial €/MWh |
cymEurPerMwh | Precio en Ceuta y Melilla, €/MWh |
pcbEurPerKwh, cymEurPerKwh | Los mismos precios divididos entre 1.000, en €/kWh (campo derivado) |
coefficient2Td | Coeficiente oficial 2.0TD (COF2TD), si viene |
componentsPcb, componentsCym | Componentes publicados (mercado, ajuste, peajes, término de energía, margen de comercialización, cargo horario, etc.) |
unitOfficial | Siempre EUR/MWh |
sourceUrl | URL oficial del archivo de ese día |
sourceAttribution | Línea de atribución obligatoria |
scrapedAt | Marca de tiempo UTC de la ejecución |
Configuración
| Campo de entrada | Tipo | Valor por defecto | Descripción |
|---|---|---|---|
dateFrom | fecha (YYYY-MM-DD) | (vacío) | Primer día. Ejemplo: 2026-11-22. Si está vacío, se usa lookbackDays. |
dateTo | fecha (YYYY-MM-DD) | hoy (UTC) | Último día. El PVPC del día siguiente suele publicarse la víspera por la tarde. |
lookbackDays | entero | 1 | Solo si no hay dateFrom. Días hacia atrás desde dateTo. Máximo 31. |
maxItems | entero | 0 | Para tras este número de horas. 0 = sin límite. Un día completo son 24 filas. |
Ejemplo de entrada
{"dateFrom": "2026-11-22","dateTo": "2026-11-22","maxItems": 24}
Ejemplo de salida
{"date": "2026-11-22","hour": "00-01","hourStart": 0,"pcbEurPerMwh": 143.45,"cymEurPerMwh": 143.45,"pcbEurPerKwh": 0.14345,"cymEurPerKwh": 0.14345,"coefficient2Td": 0.934,"componentsPcb": {"market": 80.12,"adjustment": 5.0,"omFee": 0.5,"osFee": 0.3,"interruptibility": 0.0,"capacityPayment": 2.1,"energyTerm": 40.0,"marketingMargin": 3.0,"edsr": 0.0,"hourlyCharge": 12.43},"componentsCym": {"market": 80.12,"adjustment": 5.0,"omFee": 0.5,"osFee": 0.3,"interruptibility": 0.0,"capacityPayment": 2.1,"energyTerm": 40.0,"marketingMargin": 3.0,"edsr": 0.0,"hourlyCharge": 12.43},"unitOfficial": "EUR/MWh","sourceUrl": "https://api.esios.ree.es/archives/70/download_json?locale=es&date=2026-11-22","sourceAttribution": "Fuente: Red Eléctrica de España (ESIOS), archivo 70 PVPC. https://www.esios.ree.es","scrapedAt": "2026-11-23T21:00:00+00:00"}
El resumen de la ejecución se guarda en el almacén de clave-valor como RUN_STATS.
Ejemplo en Python (apify-client)
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("innovito/precios-luz-pvpc").call(run_input={"dateFrom": "2026-11-22","dateTo": "2026-11-22","maxItems": 24,})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item["date"], item["hour"], item["pcbEurPerMwh"], item["pcbEurPerKwh"])
También puedes programar el Actor cada día y enviar el dataset a Google Sheets, Slack, Make, Zapier o n8n.
Precio
Pago por uso: 2,50 $ por cada 1.000 precios horarios escritos en el dataset, más 0,00005 $ por arranque. No se cobra el cómputo de la plataforma.
Origen y condiciones
- Endpoint (sin token):
https://api.esios.ree.es/archives/70/download_json?locale=es&date=YYYY-MM-DD. - Publicado por Red Eléctrica de España / ESIOS. La reutilización está sujeta a las condiciones de datos abiertos de REE. Hay que citar a Red Eléctrica de España (ESIOS). Este Actor no es un producto oficial de REE.
- Las cifras oficiales están en €/MWh. Los campos en €/kWh son una conversión simple (÷ 1.000) y se identifican como tal.