UK Carbon Intensity API
The Official Carbon Intensity API for Great Britain developed by National Grid
- Our call
- HTTP 200
- Latency
- 1,185 ms
- From a browser
- Allowed
- Key
- No key
- Docs link
- Answered
https://api.carbonintensity.org.uk/intensityPress Run: the request leaves from your browser, and you see what it gets back.
const res = await fetch("https://api.carbonintensity.org.uk/intensity");
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
console.log(data);curl -sS 'https://api.carbonintensity.org.uk/intensity'import requests
r = requests.get("https://api.carbonintensity.org.uk/intensity", timeout=10)
r.raise_for_status()
print(r.json())UK Carbon Intensity docsMore Environment APIs
Come back to see anything that changed: answers, keys, browser access, rate limits.
Our test call Measured by us
- Request
GET https://api.carbonintensity.org.uk/intensity- Result
- HTTP 200 in 1,185 ms (1,186 ms with the body)
- From a browser
- Browser OK Access-Control-Allow-Origin: *
- HTTPS
- Yes
- Response
- application/json, 192 bytes, a JSON object
- Fields
data- Rate-limit headers
- none sent (that doesn't mean unlimited)
Access-Control-Allow-Origin: * to us, so browser code can call it.Change log Measured by us
No changes seen since we started tracking on 2026-11-06. Each check compares the answer, the key requirement, the browser (CORS) header and the rate limit with the run before.
What the list says From the public-apis list
- Category
- Environment
- Auth
- No key
- CORS
- Not recorded Our call disagrees
- Docs link
- carbon-intensity.github.io answered 200 in 6946 ms on 2026-11-06 Measured
UK Carbon Intensity is listed in Environment. UK Carbon Intensity needs no key: you can call it without signing up. The list doesn't record whether it allows browser calls (CORS), so test that before building a browser-only app on it.
The list has 23 Environment APIs: 12 need no key and 11 need an API key, and 10 of them are marked as allowing browser calls. 4 others have the same setup, such as Danish data service Energi, Luchtmeetnet and National Grid ESO.
UK Carbon Intensity and other Environment APIs
| Fact | UK Carbon Intensity (this page) | Danish data service Energi | El mapa del agua | Elpriser i dag | GrünstromIndex |
|---|---|---|---|---|---|
| Key needed From the public-apis list | No key | No key | No key | No key | No key |
| CORS, as listed From the public-apis list | Not recorded | Not recorded | Yes | Yes | Yes |
| Our test call Measured by us | 1,185 ms | Not tested | Not tested | Not tested | Not tested |
| Browser call Measured by us | Allowed | — | — | — | — |
| Docs link Measured by us | Answered | Answered | Answered | Answered | Answered |
Questions
Does UK Carbon Intensity need an API key?
UK Carbon Intensity needs no key: you can call it without signing up.
Can I call UK Carbon Intensity from JavaScript in the browser?
Yes. When we called it it sent Access-Control-Allow-Origin: *, so a web page can call it directly.
Where are the UK Carbon Intensity docs?
At https://carbon-intensity.github.io/api-definitions/#carbon-intensity-api-v1-0-0. When we checked, the link answered 200 in 6946 ms.
What are some alternatives to UK Carbon Intensity?
Other Environment APIs in the list include Danish data service Energi, Luchtmeetnet, National Grid ESO and PM2.5 Open Data Portal.
Listing from public-apis (github.com/marcelscruz/public-apis), MIT. Measurements are ours: how we check.