Spain Electricity Prices (PVPC, REE/ESIOS) avatar

Spain Electricity Prices (PVPC, REE/ESIOS)

Pricing

from $2.50 / 1,000 hourly pvpc prices

Go to Apify Store
Spain Electricity Prices (PVPC, REE/ESIOS)

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

Asier Sanchez

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Categories

Features

Limited permissions

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

FieldDescription
date, hour, hourStartDay and hour slot (00-01 … 23-24)
pcbEurPerMwhPeninsula price, official unit €/MWh
cymEurPerMwhCeuta and Melilla price, €/MWh
pcbEurPerKwh, cymEurPerKwhSame prices divided by 1,000, in €/kWh (derived, for convenience)
coefficient2TdOfficial 2.0TD coefficient (COF2TD) when present
componentsPcb, componentsCymPublished components (market, adjustment, fees, energy term, marketing margin, hourly charge, etc.)
unitOfficialAlways EUR/MWh
sourceUrlOfficial archive URL for that day
sourceAttributionRequired credit line
scrapedAtUTC timestamp of the run

Configuration

Input fieldTypeDefaultDescription
dateFromdate (YYYY-MM-DD)(empty)First day to include. Example: 2026-11-22. If empty, the Actor uses lookbackDays.
dateTodate (YYYY-MM-DD)today (UTC)Last day to include. The next day’s PVPC is usually published the evening before.
lookbackDaysinteger1Used only when dateFrom is empty. How many days to request ending at dateTo. Maximum 31.
maxItemsinteger0Stop 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 ApifyClient
client = 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

CampoDescripción
date, hour, hourStartDía y tramo horario (00-01 … 23-24)
pcbEurPerMwhPrecio en Península, unidad oficial €/MWh
cymEurPerMwhPrecio en Ceuta y Melilla, €/MWh
pcbEurPerKwh, cymEurPerKwhLos mismos precios divididos entre 1.000, en €/kWh (campo derivado)
coefficient2TdCoeficiente oficial 2.0TD (COF2TD), si viene
componentsPcb, componentsCymComponentes publicados (mercado, ajuste, peajes, término de energía, margen de comercialización, cargo horario, etc.)
unitOfficialSiempre EUR/MWh
sourceUrlURL oficial del archivo de ese día
sourceAttributionLínea de atribución obligatoria
scrapedAtMarca de tiempo UTC de la ejecución

Configuración

Campo de entradaTipoValor por defectoDescripción
dateFromfecha (YYYY-MM-DD)(vacío)Primer día. Ejemplo: 2026-11-22. Si está vacío, se usa lookbackDays.
dateTofecha (YYYY-MM-DD)hoy (UTC)Último día. El PVPC del día siguiente suele publicarse la víspera por la tarde.
lookbackDaysentero1Solo si no hay dateFrom. Días hacia atrás desde dateTo. Máximo 31.
maxItemsentero0Para 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 ApifyClient
client = 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.