Calculate emission
A standalone endpoint to calculate emissions.
Your request must be made up of one or more emitting segments. We recommend you explore the segment requests section of the documentation to become familiar with the segment types.
Full URI: https://api.thrustcarbon.com/2/emission
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/emission" \ -H "Content-Type: application/json" \ -d '{ "segments": [ { "type": "air", "passengers": 1, "travel_class": "economy", "carrier": "BA", "aircraft_type": "788", "flight_number": "BA 112", "emitted_at": "2021-01-09", "origin": { "iata": "LHR" }, "destination": { "iata": "JFK" } } ] }'{ "tonnes_of_emissions": 1.23, "distance": 1234, "equivalencies": [ { "type": "string", "values": [ "string" ] } ], "invalid_segments": [ { "field_name_1": [ "string" ], "field_name_2": [ "string" ] } ]}