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
Flight emissions calculation successful