CO2 Offset API
Overview
CO2 Offset API calculates and validates the carbon footprint of electricity consumption using the Sustainable Scope 2 framework. It is free to use with no API key required, making it accessible for developers exploring carbon accounting in energy apps. Simply provide a zip code and energy usage to receive CO2 emission estimates.
Beginner Tip
No authentication is needed — just call the endpoint with a German postal code and energy amount in kWh to get a CO2 calculation instantly. This API is best suited for electricity-related carbon footprint calculations in Germany.
Available Data
Example Response
{
"make": "Toyota",
"model": "Camry",
"year": 2025,
"engine": "2.5L 4-cylinder",
"fuel_economy": {
"city_mpg": 28,
"highway_mpg": 39
},
"msrp": 28400
} Field Reference
co2eq CO2-equivalent grams emitted for the specified energy consumption zip The postal code used for the regional grid mix calculation kwh The energy amount in kilowatt-hours that was used for the calculation gsi GrünstromIndex value indicating the percentage of green energy in the local grid at calculation time Implementation Example
const url = "https://co2offset.io/";
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 →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.
PM2.5 Open Data Portal
⭐ Beginner's PickPM2.5 Open Data Portal provides free access to low-cost PM2.5 (fine particulate matter) sensor data from the LASS community network across Asia, particularly Taiwan.