Calculators
Commute CO2 footprint by mode API
Compute annual commute CO2e: oneWayKm x 2 x days/week x weeks/year x mode factor (kg CO2e/passenger-km): car 0.171, carpool 0.086, bus 0.103, rail 0.041, subway 0.028, bike 0, walk 0, motorbike 0.103, ferry 0.115. Returns annual km, kg/tonnes CO2e and tree equivalents. Answers 'CO2 of my daily commute','car vs train commute footprint','annual emissions cycling to work','how much does carpooling save'.
Price$0.01per request
MethodPOST
Route/v1/calc/carbon-transit-commute
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
carboncommutetransittransportemissionsco2footprintmode
API URL
Integration docshttps://x402.hexl.dev/v1/calc/carbon-transit-commuteExample request
{
"oneWayKm": 15,
"mode": "car"
}Example response
{
"oneWayKm": 15,
"mode": "car",
"daysPerWeek": 5,
"weeksPerYear": 48,
"emissionFactorKgPerKm": 0.171,
"annualKm": 7200,
"annualKgCO2e": 1231.2,
"annualTonnesCO2e": 1.231,
"equivalentTrees": 58.63
}Input schema
{
"type": "object",
"required": [
"oneWayKm"
],
"properties": {
"oneWayKm": {
"type": "number",
"examples": [
15
]
},
"mode": {
"type": "string",
"enum": [
"car",
"carpool",
"bus",
"rail",
"subway",
"bike",
"walk",
"motorbike",
"ferry"
],
"default": "car"
},
"daysPerWeek": {
"type": "number",
"default": 5
},
"weeksPerYear": {
"type": "number",
"default": 48
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}