API & Open Source

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, so you can go straight to the source.

Upstream APIs — call them directly

How each metric is computed

The Data sources & methodology page sets out exactly how each number on the dashboard is derived from those feeds.

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: hello@andelle.co.

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, use the upstream APIs directly.