Access the raw data
We don't run a public API for UK Grid. The good news: everything you see here is built from three public APIs anyone can call, and the full source code for this dashboard is on GitHub under the MIT licence. Use it, fork it, or skip it.
Upstream APIs — call them directly
-
Elexon BMRS —
bmrs.elexon.co.uk.
FUELINST (5-min generation by fuel + interconnectors) at
/datasets/FUELINST/stream, Market Index Price at/balancing/pricing/market-index. Free, no key required. -
Carbon Intensity API —
carbon-intensity.github.io.
National at
/intensity, regional at/regional, history at/intensity/<from>/<to>. Free, no key required. - NESO data portal — neso.energy/data-portal. Demand CSV and many other datasets, published under the Open Government Licence.
Source code
The complete frontend (React + Vite) and the ingest functions (Node + Firebase Cloud Functions) are open source under the MIT licence on github.com/samaxbytez/energy-grid. Run your own copy, lift the ingest logic, or read the code to see exactly how each metric is computed.
Why no UK Grid API?
Two reasons. First, the upstream APIs are already free and well-documented — there's nothing meaningful we could add by relaying them. Second, running a public API would add a rate-limiting and abuse-prevention layer that the project doesn't need today. If you have a specific case where having UK Grid's normalised Firestore data would be useful, get in touch: [email protected].
Embedding
The dashboard sets frame-ancestors 'none' in its CSP,
so it can't be embedded in an <iframe> on
another site. If you want a UK-Grid-style display elsewhere, fork
the repo or use the upstream APIs directly.