Carbon Interface API
Overview
Carbon Interface API calculates estimated CO2 emissions for common activities such as electricity usage, flights, vehicle travel, and shipping. Authentication is done via an API key passed as a Bearer token in the Authorization header. It is an excellent API for building sustainability dashboards, carbon footprint calculators, or eco-friendly apps.
Beginner Tip
Sign up for a free account at carboninterface.com to get your API key. Always send your requests as POST with a JSON body specifying the activity type and its parameters — this API does not use query strings for emission calculations.
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
data.id Unique identifier for the emission estimate record. data.type The type of estimate resource returned. data.attributes.carbon_g Estimated CO2 emissions in grams. data.attributes.carbon_kg Estimated CO2 emissions in kilograms. data.attributes.carbon_mt Estimated CO2 emissions in metric tons. data.attributes.estimated_at ISO 8601 timestamp of when the estimate was calculated. Implementation Example
const url = "https://docs.carboninterface.com/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
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
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →BreezoMeter Pollen
BreezoMeter Pollen API (now part of Google Maps Platform) provides daily pollen forecast data including pollen type, index values, and risk levels for a specific geographic location.
Climatiq
Climatiq is an API for calculating carbon emissions and environmental footprint across a wide range of activities including travel, energy use, and shipping.
Cloverly
Cloverly provides programmatic access to api calculates the impact of common carbon-intensive activities in real time via REST API.
IQAir
⭐ Beginner's PickIQAir API provides real-time air quality index (AQI) data and weather conditions for cities and stations worldwide, powered by the IQAir sensor network.
OpenAQ
⭐ Beginner's PickOpenAQ is an open-source platform providing access to air quality data aggregated from thousands of government and research-grade monitoring stations worldwide.