Carbon Footprint API - CO2 Calculator, Official Factors
Pricing
from $0.70 / 1,000 results
Carbon Footprint API - CO2 Calculator, Official Factors
No API key. CO2e emissions calculator on the official UK government (DESNZ) conversion factors 2023-2026: flights by IATA code (haul, cabin class, radiative forcing, +8% routing uplift), cars by size/segment and fuel incl. EV and hybrid, fuels by litre/kWh/tonne/gallon, UK electricity with grid loss
Pricing
from $0.70 / 1,000 results
Rating
0.0
(0)
Developer
Martin Petrov
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
9 days ago
Last modified
Categories
Features
Share
No API key. Problem: your travel app, logistics tool, checkout CO2 label, ESG report or AI agent needs a CO2 number it can defend. Most carbon APIs return one number from undisclosed factors, so an auditor cannot trace it. Building it yourself means reading the 2,600-row government factor spreadsheet every June, mapping flight hauls and cabin classes, and keeping last year's set for the old report.
This API: one JSON call turns activities into kg CO2e with the official UK government (DESNZ) conversion factors 2023, 2024, 2025 and 2026, the set most companies use for GHG Protocol and SECR reports. Every answer shows the factor ID, the factor path, its year, the Scope 1/2/3 split and the CO2 / CH4 / N2O split.
- Flights: IATA codes (
LHR->JFK): great-circle distance + 8% DESNZ routing uplift, haul (domestic, short, long, international), cabin class, passengers, round trip, radiative forcing on/off. - Cars: by size or market segment, petrol, diesel, hybrid, plug-in hybrid, electric, LPG, CNG. Business travel (Scope 3) or
owned: truecompany car (Scope 1 fuel + Scope 2 charging + grid losses). - Fuels: diesel, petrol, natural gas, LPG, propane, heating oil, coal, jet fuel, wood pellets... in litres, kWh (gross or net), tonnes, kg, m3, US gallons.
- Electricity: UK grid (location-based Scope 2) + transmission losses (Scope 3).
- Hotels: room nights in 40 countries. Rail, bus, coach, tram, metro, taxi, motorbike, ferry.
- Freight: tonne-km by truck (rigid/artic, laden %, refrigerated), van, rail, container ship, bulk carrier, tanker, air (IATA codes).
- Any of the 2,600 official factors by
factorId(find them withmode: search), plus optional well-to-tank (upstream) emissions. - Up to 100 activities per call, < 50 ms per call, optional total row.
Example (API)
curl -X POST "https://api.apify.com/v2/acts/martin10291~carbon-footprint-api/run-sync-get-dataset-items?token=YOUR_TOKEN" \-H "Content-Type: application/json" \-d '{"activities": [{"type": "flight", "from": "LHR", "to": "JFK", "cabin": "economy", "roundTrip": true},{"type": "freight", "mode": "hgv", "distance": 500, "weightTonnes": 12}], "includeTotal": true}'
Output row (measured 2026-11-14, factor set 2026):
{"type": "flight", "description": "LHR (London Heathrow Airport) -> JFK (John F. Kennedy International Airport), economy class, round trip, 1 passenger(s)","activityAmount": 11966.05, "activityUnit": "passenger.km", "kgCO2e": 1400.5062, "tCO2e": 1.400506,"kgCO2": 1388.5402, "kgCH4asCO2e": 0.1197, "kgN2OasCO2e": 11.8464,"byScope": {"scope1": 0.0, "scope2": 0.0, "scope3": 1400.5062}, "factorYear": 2026,"components": [{"factorId": "21_316_3170_11", "scope": "Scope 3", "path": "Business travel- air > Flights > Long-haul, to/from UK > Economy class > With RF","factorUnit": "passenger.km", "kgCO2ePerUnit": 0.11704, "quantity": 11966.05, "kgCO2e": 1400.5062}],"greatCircleKm": 5539.8, "distanceKm": 5983.0, "haul": "Long-haul, to/from UK", "cabin": "Economy class", "radiativeForcing": true,"notes": ["Great-circle distance 5540 km + 8% DESNZ uplift = 5983 km.", "Includes radiative forcing (non-CO2 climate effects of aviation), as DESNZ recommends."],"source": "UK DESNZ Greenhouse gas reporting: conversion factors 2026", "licence": "Open Government Licence v3.0"}
More inputs:
{"activities": [{"type": "car", "distance": 120, "unit": "miles", "segment": "suv", "fuel": "phev", "owned": true}]}{"activities": [{"type": "fuel", "fuel": "natural gas", "amount": 12000, "unit": "kwh", "includeWellToTank": true}]}{"activities": [{"type": "hotel", "country": "JP", "nights": 4}, {"type": "rail", "distance": 300}]}{"activities": [{"type": "freight", "mode": "air", "from": "PVG", "to": "FRA", "weightKg": 500}]}{"mode": "search", "query": "refrigerant R410A"}-> official factors withfactorId, then{"type": "factor", "factorId": "...", "amount": 2}{"mode": "categories"}-> all 30 factor categories with Scope and units."year": 2024-> last year's set for a 2024 report.
Use from agents (MCP)
Add the Apify MCP server (https://mcp.apify.com?tools=martin10291/carbon-footprint-api) to Claude, Cursor or any MCP client and ask: "What is the CO2 footprint of a business-class return flight Sofia-London plus 3 hotel nights in the UK?".
Schedule it
Set onlyNew: true and a monitorId, keep year on latest and schedule the actor monthly: a row comes back only when its official value changes (DESNZ publishes a new set each June), so your stored footprints stay current.
Input
| Field | Meaning |
|---|---|
mode | calculate (default), search, categories |
activities | list of activities, each with type (flight, car, fuel, electricity, hotel, rail, bus, coach, tram, underground, taxi, motorbike, ferry, freight, factor) and its fields |
query, scope, limit | for search |
year | latest (2026), 2025, 2024, 2023 |
includeTotal | add one total row |
onlyNew, monitorId | monitor mode |
Limits (honest)
- Factors are the UK government set. Flights, freight, fuels, cars and hotels are used worldwide in reports; the electricity factor is the UK grid only (other countries return a clear error instead of a wrong number).
- Car, bus and taxi factors reflect the UK fleet. Results are estimates for reporting, not measurements.
Source and licence
Contains public sector information licensed under the Open Government Licence v3.0. Source: UK Department for Energy Security and Net Zero, "Greenhouse gas reporting: conversion factors" 2023-2026 (gov.uk). Airport coordinates: OurAirports (public domain). Not affiliated with the UK government.