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
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded 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
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
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
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
Technical Specifications
Related Tags
Similar APIs
View All →Danish data service Energi
Danish 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).
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.
Carbon Interface
Carbon Interface API calculates estimated CO2 emissions for common activities such as electricity usage, flights, vehicle travel, and shipping.