ED.CAPACITY
Installed generation capacity (MW) by technology and region.
Signature
ED.CAPACITY(tech, [region], [date])Description
Installed capacity (MW) by technology. National total when region is omitted; pass a CCAA name (e.g. "Andalucía", "Cataluña") for the regional figure. Source: REE installed capacity series (ESIOS indicators 1475-1491).
Capacity is a stock — it represents what is connected and operational at the end of the period. Returns the latest available month unless date is provided. For a time series use ED.CAPACITY.RANGE.
16 technologies covered — see the values table below. **battery** is special: it is operational grid-scale storage from REE's REData *almacenamiento* "Batería" series, **national-only** (no CCAA breakdown), **monthly/provisional**, with history from **2021-09** (~3 MW in 2021 → ~153 MW end-2025). It is a live, retroactively-revised series and does **not** match REE's annual *Informe del Sistema Eléctrico* (ISE-2025 reports 96 MW at end-2025 vs ~153 MW here — an upstream REE timing/scope difference, not an ingest issue). It excludes behind-the-meter self-consumption; hybrid (solar+battery) storage is a separate REE product. It is NOT the same as battery power flow or the grid-access pipeline.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| tech* | string | — | Technology code. See valid values below. |
| region | string | — | CCAA name (e.g. "Andalucía"). Omit for the national total. Note: battery is national-only. |
| date | YYYY-MM | — | Month. Omit for the latest. |
* Required.
Valid values for tech
| Code | Description |
|---|---|
| solar_pv | Solar photovoltaic |
| wind | Onshore wind |
| nuclear | Nuclear |
| hydro | Hydro (reservoir + run-of-river) |
| pumped_hydro | Pumped storage (reversible hydro) |
| ccgt | Combined-cycle gas (CCGT) |
| coal | Coal |
| diesel | Diesel engines (non-mainland island systems) |
| gas_turbine | Open-cycle gas turbine |
| steam_turbine | Conventional steam turbine |
| solar_thermal | Concentrated solar thermal |
| cogeneration | Cogeneration |
| other_renewable | Other renewables (biomass, biogas, geothermal…) |
| waste_renewable | Renewable waste (organic fraction) |
| waste_non_renewable | Non-renewable waste |
| battery | Grid-scale battery storage (operational). Source: REData almacenamiento "Batería" series — national-only (no CCAA split), monthly & provisional, history from 2021-09. This is a live, retroactively-revised series and will not match REE's annual Informe del Sistema Eléctrico (ISE-2025 reports 96 MW at end-2025 vs ~153 MW here — an upstream REE timing/scope difference, not an ingest discrepancy). Excludes behind-the-meter self-consumption; hybrid (solar+battery) storage is a separate REE product. NOT the same as battery power flow (ED.GET battery_charge/battery_delivery) or the grid-access pipeline (ED.GRID baterias). |
Returns
Number — installed capacity in MW.
Examples
=ED.CAPACITY("solar_pv")— National solar PV total (latest)=ED.CAPACITY("wind", "Andalucía")— Wind installed in Andalucía=ED.CAPACITY("nuclear",, "2025-01")— Nuclear at end of Jan 2025=ED.CAPACITY("pumped_hydro")— Pumped storage (bombeo) — Spain has ~6 GW=ED.CAPACITY("battery")— Operational grid-scale BESS (national, REData)Notes
batteryis operational grid-scale storage from REData almacenamiento (the "Batería" series): national-only (no CCAA split), monthly & provisional, history from 2021-09. Distinct from battery power flow (battery_charge/battery_delivery), grid-access pipeline (ED.GRIDbaterías), and behind-the-meter self-consumption.- The
batteryseries is live and revised retroactively, so it does not match REE's annual *Informe del Sistema Eléctrico* (ISE-2025: 96 MW at end-2025 vs ~153 MW in this series). The gap is upstream REE timing/scope, not an ingest discrepancy — the series tracks the figures external trackers cite (~28 MW Apr-2025 → ~153 MW Dec-2025 → ~193 MW Feb-2026 → ~221 MW from Mar-2026). Hybrid (solar+battery) storage is a separate REE product and is not included.