UK Carbon Intensity API
Overview
The UK Carbon Intensity API provides official real-time and forecast carbon intensity data for Great Britain's electricity grid, developed by National Grid. It tells you how much CO2 is generated per kilowatt-hour at any given time. No API key is needed, making it a great starting point for environmental or energy-aware applications.
Beginner Tip
This API requires no authentication — just send a GET request to get live carbon intensity data. Try the /intensity endpoint first to see the current index and forecast.
Available Data
Example Response
{
"name": "Japan",
"capital": "Tokyo",
"population": 125800000,
"region": "Asia",
"languages": [
"Japanese"
],
"flag": "https://flagcdn.com/jp.svg",
"currencies": [
{
"code": "JPY",
"name": "Japanese yen"
}
]
} Field Reference
from ISO 8601 timestamp for the start of the half-hour period to ISO 8601 timestamp for the end of the half-hour period intensity.forecast Forecasted carbon intensity in gCO2/kWh intensity.actual Actual measured carbon intensity in gCO2/kWh intensity.index Descriptive rating such as very low, low, moderate, high, or very high Implementation Example
const url = "https://carbon-intensity.github.io/api-definitions/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →CO2 Offset
⭐ Beginner's PickCO2 Offset API calculates and validates the carbon footprint of electricity consumption using the Sustainable Scope 2 framework.
Danish data service Energi
⚠ UnavailableDanish data service Energi provides programmatic access to open energy data from energinet to society via REST API.
GrünstromIndex
⭐ Beginner's PickGrünstromIndex (Green Power Index) provides real-time and forecast data about the proportion of renewable energy in the German electricity grid.
Luchtmeetnet
⭐ Beginner's PickLuchtmeetnet API provides real-time and predicted air quality measurements from the official Dutch national air quality monitoring network (RIVM).
National Grid ESO
⚠ UnavailableNational Grid ESO provides programmatic access to open data from great britain’s electricity system operator via REST API.