Try one of the carbon calculators




Air Quality Health Index


Return the official air quality health index (1 to 10) bases on key parameters.The national AQHI is based on three-hour average concentrations of ground-level ozone (O3), nitrogen dioxide (NO2), and fine particulate matter (PM2.5). O3 and NO2 are measured in parts per billion (ppb) while PM2.5 is measured in micrograms per cubic metre (ug/m3).



API Documentation

Air Quality Health Index


Return the official air quality health index (1 to 10) bases on key parameters.The national AQHI is based on three-hour average concentrations of ground-level ozone (O3), nitrogen dioxide (NO2), and fine particulate matter (PM2.5). O3 and NO2 are measured in parts per billion (ppb) while PM2.5 is measured in micrograms per cubic metre (ug/m3).


Example API Request:

curl --request POST
  --url https://app.trycarbonapi.com/api/airQualityHealthIndex
  --header 'Authorization: Bearer API_KEY'
  --data '{
      "o3": 5,
      "no2": 5,
      "pm": 5"
      }'

HTTP Request Parameters

Parameter Description
o3 The ground-level ozone (O3) in parts per billion (ppb).
no2 The nitrogen dioxide (NO2), in parts per billion (ppb).
pm The fine particulate matter (PM2.5), PM2.5 is * measured in micrograms per cubic metre (ug/m3).

Example API Response:

{ "airQualityHealthIndex" : 1, "success" : true }

API Response Objects

Property Description
airQualityHealthIndex Carbon footprint.
success Returns true or false depending on whether or not your query succeeds.


Tree Equivalent


Calculate how many trees it took to create paper.


Example API Request:

curl --request POST
  --url https://app.trycarbonapi.com/api/treeEquivalent
  --header 'Authorization: Bearer API_KEY'
  --data '{
      "weight": 100,
      "unit": kg
      }'

HTTP Request Parameters

Parameter Description
weight The weight of the paper.
unit The unit (kg or lb) used for the weight.

Example API Response:

{ "numberOfTrees" : 2.4, "success" : true }

API Response Objects

Property Description
numberOfTrees Carbon footprint.
success Returns true or false depending on whether or not your query succeeds.


Traditional Energy


Calculate CO2e from the use of traditional energy provider.


Example API Request:

curl --request POST
  --url https://app.trycarbonapi.com/api/traditionalHydro
  --header 'Authorization: Bearer API_KEY'
  --data '{
      "consumption": 250,
      "location": UK
      }'

HTTP Request Parameters

Parameter Description
consumption The KWH usage.
location The country or continent providing the energy (USA, Canada, UK, Europe, Africa, LatinAmerica, MiddleEast, OtherCountry).

Example API Response:

{ "carbonEquivalent" : 136.04, "success" : true }

API Response Objects

Property Description
carbonEquivalent Carbon footprint.
success Returns true or false depending on whether or not your query succeeds.


Clean Energy


Return the CO2e in Kg from the consumption of clean energy.


Example API Request:

curl --request POST
  --url https://app.trycarbonapi.com/api/cleanHydro
  --header 'Authorization: Bearer API_KEY'
  --data '{
      "energy": Solar,
      "consumption": 250
      }'

HTTP Request Parameters

Parameter Description
energy The source of the clean energy (Solar, Wind, HydroElectric, Biomass, Geothermal, Tidal, OtherCleanEnergy).
consumption The amount of energy consumed in KWH.

Example API Response:

{ "carbonEquivalent" : 8.0, "success" : true }

API Response Objects

Property Description
carbonEquivalent Carbon footprint.
success Returns true or false depending on whether or not your query succeeds.


Fuel To CO2e


Transform liters of Diesel, Petrol or LPG into CO2 Equivalent in Kg.


Example API Request:

curl --request POST
  --url https://app.trycarbonapi.com/api/fuelToCO2e
  --header 'Authorization: Bearer API_KEY'
  --data '{
      "type": Petrol,
      "litres": 5
      }'

HTTP Request Parameters

Parameter Description
type The type can be Petrol, Diesel, LPG.
litres The number of litres to calculate from.

Example API Response:

{ "carbonEquivalent" : 11.1, "success" : true }

API Response Objects

Property Description
carbonEquivalent Carbon footprint.
success Returns true or false depending on whether or not your query succeeds.


Car Travel


Returns the CO2e in Kg from a travel by car.


Example API Request:

curl --request POST
  --url https://app.trycarbonapi.com/api/carTravel
  --header 'Authorization: Bearer API_KEY'
  --data '{
      "distance": 50,
      "vehicle": SmallDieselCar
      }'

HTTP Request Parameters

Parameter Description
distance The distance in KM.
vehicle The type of car (SmallDieselCar, MediumDieselCar, LargeDieselCar, MediumHybridCar, LargeHybridCar, MediumLPGCar, LargeLPGCar, MediumCNGCar, LargeCNGCar, SmallPetrolVan, LargePetrolVan, SmallDielselVan, MediumDielselVan, LargeDielselVan, LPGVan, CNGVan, SmallPetrolCar, MediumPetrolCar, LargePetrolCar).

Example API Response:

{ "carbonEquivalent" : 8.6, "success" : true }

API Response Objects

Property Description
carbonEquivalent Carbon footprint.
success Returns true or false depending on whether or not your query succeeds.


Flight


Calculate CO2e in Kg from a travel by air.


Example API Request:

curl --request POST
  --url https://app.trycarbonapi.com/api/flight
  --header 'Authorization: Bearer API_KEY'
  --data '{
      "distance": 1000,
      "type": DomesticFlight
      }'

HTTP Request Parameters

Parameter Description
distance The flight distance in KM.
type The type of flight (DomesticFlight, ShortEconomyClassFlight, ShortBusinessClassFlight, LongEconomyClassFlight, LongPremiumClassFlight, LongBusinessClassFlight, LongFirstClassFlight).

Example API Response:

{ "carbonEquivalent" : 201.24, "success" : true }

API Response Objects

Property Description
carbonEquivalent Carbon footprint.
success Returns true or false depending on whether or not your query succeeds.


MotorBike


Returns the CO2e in Kg from a motorbike travel.


Example API Request:

curl --request POST
  --url https://app.trycarbonapi.com/api/motorBike
  --header 'Authorization: Bearer API_KEY'
  --data '{
      "distance": 200,
      "type": SmallMotorBike
      }'

HTTP Request Parameters

Parameter Description
distance The distance in KM.
type The type of motorbike (SmallMotorBike, MediumMotorBike, LargeMotorBike).

Example API Response:

{ "carbonEquivalent" : 20.9, "success" : true }

API Response Objects

Property Description
carbonEquivalent Carbon footprint.
success Returns true or false depending on whether or not your query succeeds.


Public Transit


Return CO2e in Kg from the use of public transporation.


Example API Request:

curl --request POST
  --url https://app.trycarbonapi.com/api/publicTransit
  --header 'Authorization: Bearer API_KEY'
  --data '{
      "distance": 500,
      "type": Taxi
      }'

HTTP Request Parameters

Parameter Description
distance The distance in KM.
type The type of transportation (Taxi, ClassicBus, EcoBus, Coach, NationalTrain, LightRail, Subway, FerryOnFoot, FerryInCar).

Example API Response:

{ "carbonEquivalent" : 88.50, "success" : true }

API Response Objects

Property Description
carbonEquivalent Carbon footprint.
success Returns true or false depending on whether or not your query succeeds.