Calculators
Diet CO2 footprint calculator API
Compute annual dietary CO2e from servings/day per food item using Poore & Nemecek (2018) per-serving factors (beef 6.6, lamb 5.8, cheese 2.3, pork 1.7, poultry 1.3, fish 1.2, eggs 0.4, rice 0.7, legumes 0.2, vegetables 0.15 kg CO2e). Returns a per-item breakdown, daily and annual kg/tonnes CO2e, a low/moderate/high/very-high rating and tree equivalents. Answers 'carbon footprint of my diet','CO2 of eating beef daily','vegetarian vs meat-eater emissions','annual food footprint'.
Price$0.01per request
MethodPOST
Route/v1/calc/carbon-diet-footprint
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
carbondietfoodemissionsco2footprintnutritionsustainability
API URL
Integration docshttps://x402.hexl.dev/v1/calc/carbon-diet-footprintExample request
{
"servingsPerDay": {
"beef": 0.5,
"poultry": 1,
"vegetables": 3
}
}Example response
{
"breakdown": [
{
"item": "beef",
"servingsPerDay": 0.5,
"dailyKgCO2e": 3.3
},
{
"item": "poultry",
"servingsPerDay": 1,
"dailyKgCO2e": 1.3
},
{
"item": "vegetables",
"servingsPerDay": 3,
"dailyKgCO2e": 0.45
}
],
"dailyKgCO2e": 5.05,
"annualKgCO2e": 1843.25,
"annualTonnesCO2e": 1.843,
"rating": "high",
"equivalentTrees": 87.77
}Input schema
{
"type": "object",
"required": [
"servingsPerDay"
],
"properties": {
"servingsPerDay": {
"type": "object",
"additionalProperties": {
"type": "number"
},
"description": "item -> servings/day; items: beef,lamb,cheese,pork,poultry,fish,eggs,dairy,rice,legumes,vegetables,fruit,nuts",
"examples": [
{
"beef": 0.5,
"poultry": 1,
"vegetables": 3
}
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}