# Spain Gross electricity production, total (monthly)

Spain Gross electricity production, total (monthly) was 25,926 GWh in August 2026, down 6.5% from July 2026 and up 7.9% from a year earlier.
Over the past ten years it has ranged from 17,470 GWh (Apr 2020) to 27,717 GWh (Jul 2026), averaging 22,186 GWh.

- Source agency: Eurostat (Statistical Office of the European Union)
- Makrognosis code: `ES.ENERGY.M.NSA.GRP-ELECTRICITY`
- Frequency: monthly
- Units: GWh
- Coverage: 2008-01-01 to 2026-08-01 (224 observations)
- Page: https://makrognosis.robomacro.com/data/spain/gross-electricity-production-total-monthly

## Recent data

| Period | Value |
|---|---:|
| August 2026 | 25,926 GWh |
| July 2026 | 27,717 GWh |
| June 2026 | 24,864 GWh |
| May 2026 | 22,579 GWh |
| April 2026 | 21,097 GWh |
| March 2026 | 23,650 GWh |
| February 2026 | 22,218 GWh |
| January 2026 | 25,914 GWh |
| December 2025 | 23,688 GWh |
| November 2025 | 23,028 GWh |
| October 2025 | 22,486 GWh |
| September 2025 | 22,316 GWh |
| August 2025 | 24,020 GWh |
| July 2025 | 25,678 GWh |
| June 2025 | 23,558 GWh |
| May 2025 | 21,421 GWh |
| April 2025 | 20,803 GWh |
| March 2025 | 24,166 GWh |
| February 2025 | 21,950 GWh |
| January 2025 | 24,780 GWh |
| December 2024 | 22,816 GWh |
| November 2024 | 20,694 GWh |
| October 2024 | 21,741 GWh |
| September 2024 | 21,611 GWh |

## API

```
curl -H "X-API-Key: $MAKROGNOSIS_KEY" \
  "https://makrognosis.robomacro.com/v1/series/ES.ENERGY.M.NSA.GRP-ELECTRICITY"

# Python
import requests
r = requests.get("https://makrognosis.robomacro.com/v1/series/ES.ENERGY.M.NSA.GRP-ELECTRICITY",
                 headers={"X-API-Key": KEY})
obs = r.json()["observations"]
```
