cURL
curl --request POST \ --url https://external.emissions.bnzgreen.io/api/calculate \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --header 'x-body-signature: <x-body-signature>' \ --header 'x-platform-id: <x-platform-id>' \ --data ' { "flights": [ { "origin": "<string>", "destination": "<string>", "operatingCarrierCode": "<string>", "flightNumber": 123, "departureDate": { "year": 123, "month": 123, "day": 123 } } ] } '
[ { "flight": { "origin": "<string>", "destination": "<string>", "operatingCarrierCode": "<string>", "flightNumber": 123, "departureDate": { "year": 123, "month": 123, "day": 123 } }, "emissionsGramsPerPax": { "first": 123, "business": 123, "premiumEconomy": 123, "economy": 123 } } ]
Fetch CO2 emissions for a flight journey
API key for authentication
Signature of the request body signed with API secret (private key)
Unique identifier for the platform making the request
List of flights to calculate emissions for
Show child attributes
IATA code of origin airport
IATA code of destination airport
IATA code of operating carrier
Flight number
Year of departure
Month of departure (1-12)
Day of departure (1-31)
Flight emissions calculation successful
Emissions in grams per passenger for first class
Emissions in grams per passenger for business class
Emissions in grams per passenger for premium economy class
Emissions in grams per passenger for economy class