Skip to main content

Available calculators

Examples

Offset shipping emissions

Calculate Emission By Distance [POST]

BASE URL
https://api-calculators.carbonext.com.br/v2/calculators/distance

This request returns the amount of tCO2eq that the delivery or transport will issue, based on a given distance and transport. The default unit of measurement is kilometers (km).

Request Parameters

ParameterDescription
typeThe type identifier from the GET Types request
distanceThe distance to be traveled, in meters

Response attributes

AttributesDescription
emissionThe total amount of tCO2eq emitted during the travel
emissionUnitThe unit of the emission, based on the Type parameter used in the request (responseUnit)

Example Request

var axios = require('axios');
var data = JSON.stringify({
"type": 0,
"distance": 100000,
"currency": "BRL"

});

var config = {
method: 'post',
url: 'https://api-calculators.carbonext.com.br/v2/calculators/distance',
headers: {
'Content-Type': 'application/json'
},
data : data
};

axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});

Example Response

{
"emission": 0.03885,
"emissionUnit": "tCO2eq/tonne"
}

Calculate Transport Emission By Zip Code [POST]

BASE URL
https://api-calculators.carbonext.com.br/v2/calculators/distance/zipcode

This endpoint calculates the amount of tCO2eq emitted when traveling between two locations, for example, ZipCodes for road transport types (only Brazilian Zip Codes are supported for now) or airport codes for flight transport type.

Request Parameters

ParameterDescription
typeThe type identifier from the 'GET Types' request
originZipcodeThe code that the transport will depart from
destinyZipcodeThe code that the transport will arrive at
unitValueThe unit amount to calculate the emissions for (i.e, 10 passengers, 10000 grams, etc.). The unit is specified by the field 'requestUnit' from the 'GET Types' request

Response attributes

AttributesDescription
emissionThe total amount of tCO2eq emitted during the travel
emissionUnitThe value is tCO2eq. The result is calculated for the unitValue provided in the request

Example Request

var axios = require('axios');
var data = JSON.stringify({
"type": 0,
"originCode": "01526-000",
"destCode": "66060425",
"unitValue": 20000
});

var config = {
method: 'post',
url: 'https://api-calculators.carbonext.com.br/v2/calculators/distance/zipcode',
headers: {
'Content-Type': 'application/json'
},
data : data
};

axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});

Example Response

{
"emission": 0.0293110549184694,
"emissionUnit": "tCO2eq"
}

Calculate Transport Emission by Geographic Coordinates [POST]

BASE URL
https://api-calculators.carbonext.com.br/v2/calculators/distance/latlong

This endpoint calculates the amount of tCO2eq emitted when traveling between two locations using geographic coordinates (latitude and longitude) of the place of origin and place of destination, for types of road transport or airport codes for the type of air transport.

Request Parameters

ParameterDescription
typeThe type identifier from the 'GET Types' request
fuelTypeThe code of the type of fuel used
originLatLatitudinal geographical coordinate of the origin
destinyLatLatitudinal geographic coordinates of the destination
originLongLongitudinal geographical coordinate of the origin
destinyLongLongitudinal geographical coordinate of the destination

Response attributes

AttributesDescription
emissionThe total amount of tCO2eq emitted during the travel
emissionUnitThe value is tCO2eq. The result is calculated for the unitValue provided in the request

Example Request

var axios = require('axios');
var data = JSON.stringify({
"type": "Car",
"fuelType": 0,
"originLat": -23.5966212,
"originLong": -46.6890071,
"destinyLat": -1.3413509,
"destinyLong": -48.5205929
});

var config = {
method: 'post',
url: 'https://api-calculators.carbonext.com.br/v2/calculators/distance/latlong',
headers: {
'Content-Type': 'application/json'
},
data : data
};

axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});

Example Response

{
"emission": 0.0627173584124599,
"emissionUnit": "tCO2eq"
}

Calculate Transport Emission By IATA Airport Code [POST]

BASE URL
https://api-calculators.carbonext.com.br/v2/calculators/distance/flight

This endpoint calculates the amount of tCO2eq emitted when traveling between two airports using the IATA origin and destination code.

Request Parameters

ParameterDescription
typeThe type identifier from the 'GET Types' request
originCodeOrigin airport IATA code
destinyCodeDestiny airport IATA code
unitValueThe unit amount to calculate the emissions for (i.e, 10 passengers, 10000 grams, etc.). The unit is specified by the field 'requestUnit' from the 'GET Types' request

Response attributes

AttributesDescription
emissionThe total amount of tCO2eq emitted during the travel
emissionUnitThe value is tCO2eq. The result is calculated for the unitValue provided in the request

Example Request

var axios = require('axios');
var data = JSON.stringify({
"type": "Car",
"fuelType": 0,
"originLat": -23.5966212,
"originLong": -46.6890071,
"destinyLat": -1.3413509,
"destinyLong": -48.5205929
});

var config = {
method: 'post',
url: 'https://api-calculators.carbonext.com.br/v2/calculators/distance/flight',
headers: {
'Content-Type': 'application/json'
},
data : data
};

axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});

Example Response

{
"emission": 0.0627173584124599,
"emissionUnit": "tCO2eq"
}

Calculate Energy Consumption [POST]

BASE URL
https://api-calculators.carbonext.com.br/v2/calculators/electricity

This endpoint calculates the amount of tCO2eq emitted with the consumption of electrical energy.

Request Parameters

ParameterDescription
consumptionThe amount of energy consumption in kilowatts/hour (kW/h)

Response attributes

AttributesDescription
emissionThe total amount of tCO2eq emitted, given the amount of energy consumption
emissionUnitThe value is tCO2eq. The result is calculated for the unitValue provided in the request

Example Request

var axios = require('axios');
var data = JSON.stringify({
"consumption": 10000
});

var config = {
method: 'post',
url: 'https://api-calculators.carbonext.com.br/v2/calculators/electricity',
headers: {
'Content-Type': 'application/json'
},
data : data
};

axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});

Example Response

{
"emission": 0.00065,
"emissionUnit": "tCO2eq"
}

Calculate Water Consumption [POST]

BASE URL
https://api-calculators.carbonext.com.br/v2/calculators/water

This endpoint calculates the amount of tCO2eq emitted with the consumption of water.

Request Parameters

ParameterDescription
consumptionThe amount of water consumption per cubic meter (m3)

Response attributes

AttributesDescription
emissionThe total amount of tCO2eq emitted
emissionUnitThe value is tCO2eq. The result is calculated for the unitValue provided in the request

Example Request

var axios = require('axios');
var data = JSON.stringify({
"consumption": 10000
});

var config = {
method: 'post',
url: 'https://api-calculators.carbonext.com.br/v2/calculators/water',
headers: {
'Content-Type': 'application/json'
},
data : data
};

axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});

Example Response

{
"emission": 5,
"emissionUnit": "tCO2eq"
}

Batch Calculation By Zip Code [POST]

BASE URL
https://api-calculators.carbonext.com.br/v2/calculators/distance/zipcode/batch

This endpoint calculates the amount of tCO2eq with a batch of zip code numbers.

Request Parameters

ParameterDescription
typeThe type identifier from the 'GET Types' request
dataA set with the sequence of the postcode of the place of departure, the postcode of the place of destination, and the emission calculation unit, separated by a colon

Response attributes

AttributesDescription
emissionThe total amount of tCO2eq emitted
emissionUnitThe value is tCO2eq. The result is calculated for the unitValue provided in the request

Example Request

var axios = require('axios');
var data = JSON.stringify({
"type": "car",
"data": [
"1424001:13045-603:1",
"1424001:01408-001:1",
"1424001:13025-085:1",
"1424001:06543-610:1"
]
});

var config = {
method: 'post',
url: 'https://api-calculators.carbonext.com.br/v2/calculators/distance/zipcode/batch',
headers: {
'Content-Type': 'application/json'
},
data : data
};

axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});

Example Response


[
{
"emission": 0.0020187118160909,
"emissionUnit": "tCO2eq"
},
{
"emission": 0.0005,
"emissionUnit": "tCO2eq"
},
{
"emission": 0.00214649511109054,
"emissionUnit": "tCO2eq"
},
{
"emission": 0.00066142499653482,
"emissionUnit": "tCO2eq"
}
]

Batch Calculation By Flights [POST]

BASE URL
https://api-calculators.carbonext.com.br/v2/calculators/distance/flight/batch

This endpoint calculates the amount of tCO2eq with a batch of airport IATA codes.

Request Parameters

ParameterDescription
typeThe type identifier from the 'GET Types' request
dataSet with a sequence of the departure place zip code, destination place zip code and an

integer greater than zero that represents the number of times the trip is made from the point of origin to the destination (use 1 for "one way" and 2 for "round trip", for example), separated by a colon.

Response attributes

AttributesDescription
emissionThe total amount of tCO2eq emitted
emissionUnitThe value is tCO2eq. The result is calculated for the unitValue provided in the request

Example Request

var axios = require('axios');
var data = JSON.stringify({
"type": "passengerAirplane",
"data": [
"GRU:VIX:2",
"BRA:VIX:1",
"BRA:DEN:1"
]
});

var config = {
method: 'post',
url: 'https://api-calculators.carbonext.com.br/v2/calculators/distance/flight/batch',
headers: {
'Content-Type': 'application/json'
},
data : data
};

axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});

Example Response

[
{
"emission": 0.272769213920404,
"emissionUnit": "tCO2eq"
},
{
"emission": 0.195776427057759,
"emissionUnit": "tCO2eq"
},
{
"emission": 1.93205999877386,
"emissionUnit": "tCO2eq"
}
]