Check the Setup
- Python 3.10 or newer
- An internet connection
- The requests Python package
Polish grid operator PSE's hourly national electricity-use recommendations for building dated system-context tools.
Report a ProblemFrom Source to Product Signal
PSE publishes the Energy Compass forecast through its official reports API. Start with the first active hourly row, keeping its UTC time and publication time. The advice describes Poland-wide electricity-system conditions and cannot establish a local power outage.
Install the packages, then run the notebook cell.
python -m pip install requests
import requests
response = requests.get(
"https://api.raporty.pse.pl/api/pdgsz",
params={"$filter": "is_active eq true", "$orderby": "dtime_utc desc", "$first": 48},
timeout=20,
)
response.raise_for_status()
for row in response.json()["value"][:2]:
print(row["dtime_utc"], row["usage_fcst"], row["publication_ts_utc"])Test a Useful Signal
Display one hourly recommendation with its publication time and national scope.
Polskie Sieci Elektroenergetyczne is a company source. Last verified 2026-09-28. Temporal coverage: current and near-future national hourly advisories.