Calculators
Freight shipping CO2 calculator API
Estimate freight CO2e via the tonne-km model: (weightKg/1000) x distanceKm x mode factor, using DEFRA freight factors (sea 0.016, rail 0.028, road 0.105, air 0.602 kg CO2e/tonne-km). Returns tonne-km, total kg/tonnes CO2e and tree equivalents. Answers 'CO2 to ship 1000kg by sea','air vs sea freight emissions','carbon of this shipment','tonne-km footprint of trucking'.
Price$0.01per request
MethodPOST
Route/v1/calc/carbon-shipping-emissions
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
carbonshippingfreightlogisticsemissionsco2tonne-kmsupply-chain
API URL
Integration docshttps://x402.hexl.dev/v1/calc/carbon-shipping-emissionsExample request
{
"weightKg": 1000,
"distanceKm": 5000,
"mode": "sea"
}Example response
{
"weightKg": 1000,
"distanceKm": 5000,
"mode": "sea",
"emissionFactorKgPerTonneKm": 0.016,
"tonneKm": 5000,
"totalKgCO2e": 80,
"totalTonnesCO2e": 0.08,
"equivalentTrees": 3.81
}Input schema
{
"type": "object",
"required": [
"weightKg",
"distanceKm"
],
"properties": {
"weightKg": {
"type": "number",
"examples": [
1000
]
},
"distanceKm": {
"type": "number",
"examples": [
5000
]
},
"mode": {
"type": "string",
"enum": [
"sea",
"rail",
"road",
"air"
],
"default": "sea"
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}