Method: flights.computeScope3FlightEmissions

Stateless method to retrieve GHG emissions estimates for a set of flight segments for Scope 3 reporting.

The response will contain all entries that match the input Scope3FlightSegment flight segments, in the same order provided. The estimates will be computed using the following cascading logic (using the first one that is available):

  1. TIM-based emissions given origin, destination, carrier, flightNumber, departureDate, and cabinClass.
  2. Typical flight emissions given origin, destination, year in departureDate, and cabinClass.
  3. Distance-based emissions calculated using distanceKm, year in departureDate, and cabinClass.

If there is a future flight requested in this calendar year, we do not support Tier 1 emissions and will fallback to Tier 2 or 3 emissions. If the requested future flight is in not in this calendar year, we will return an empty response. We recommend that for future flights, computeFlightEmissions API is used instead.

If there are no estimates available for a certain flight with any of the three methods, the response will return a Scope3FlightEmissions object with empty emission fields. The request will still be considered successful. Generally, missing emissions estimates occur when the flight is unknown to the server (e.g. no specific flight exists, or typical flight emissions are not available for the requested pair).

The request will fail with an INVALID_ARGUMENT error if:

  • The request contains more than 1,000 flight legs.
  • The input flight leg is missing one or more identifiers. For example, missing origin/destination without a valid distance for TIM_EMISSIONS or TYPICAL_FLIGHT_EMISSIONS type matching, or missing distance for a DISTANCE_BASED_EMISSIONS type matching (if you want to fallback to distance-based emissions or want a distance-based emissions estimate, you need to specify a distance).
  • The flight date is before 2019 (Scope 3 data is only available for 2019 and after).
  • The flight distance is 0 or lower.
  • Missing cabin class.

Because the request is processed with fallback logic, it is possible that misconfigured requests return valid emissions estimates using fallback methods. For example, if a request has the wrong flight number but specifies the origin and destination, the request will still succeed, but the returned emissions will be based solely on the typical flight emissions. Similarly, if a request is missing the origin for a typical flight emissions request, but specifies a valid distance, the request could succeed based solely on the distance-based emissions. Consequently, one should check the source of the returned emissions (source) to confirm the results are as expected.

HTTP request

POST https://travelimpactmodel.googleapis.com/v1/flights:computeScope3FlightEmissions

The URL uses gRPC Transcoding syntax.

Request body

The request body contains data with the following structure:

JSON representation
{
  "flights": [
    {
      object (Scope3FlightSegment)
    }
  ],
  "modelVersion": {
    object (ModelVersion)
  }
}
Fields
flights[]

object (Scope3FlightSegment)

Required. Flights to return emission estimates for.

modelVersion

object (ModelVersion)

Optional. The model version under which emission estimates for all flights in this request were computed.

Response body

A list of flights with Scope 3 emission estimates.

If successful, the response body contains data with the following structure:

JSON representation
{
  "flightEmissions": [
    {
      object (Scope3FlightEmissions)
    }
  ],
  "modelVersion": {
    object (ModelVersion)
  }
}
Fields
flightEmissions[]

object (Scope3FlightEmissions)

List of flight segments with emission estimates.

modelVersion

object (ModelVersion)

The model version under which emission estimates for all flights in this response were computed.

Scope3FlightSegment

Flight parameters with which the Scope 3 emissions are fetched.

JSON representation
{
  "departureDate": {
    object (Date)
  },
  "cabinClass": enum (CabinClass),
  "origin": string,
  "destination": string,
  "carrierCode": string,
  "flightNumber": integer,
  "distanceKm": string
}
Fields
departureDate

object (Date)

Required. Date of the flight in the time zone of the origin airport. Only year is required for typical flight and distance-based emissions models (month and day values are ignored and therefore, can be either omitted, set to 0, or set to a valid date for those cases). Correspondingly, if a specific date is not provided for TIM emissions, we will fallback to typical flight (or distance-based) emissions.

cabinClass

enum (CabinClass)

Required. The cabin class of the flight.

origin

string

Optional. IATA airport code for flight origin, e.g. YVR. This is used to match specific flight if provided alongside destination, carrier, and flight number. If there is no match, we will first try to match the flight to a typical flight between the provided origin and destination airports. Otherwise, we will use the distance-based emissions model if the flight distance is provided.

destination

string

Optional. IATA airport code for flight destination, e.g. ICN. This is used to match specific flight if provided alongside origin, carrier, and flight number. If there is no match, we will first try to match the flight to a typical flight between the provided origin and destination airports. Otherwise, we will use the distance-based emissions model if the flight distance is provided.

carrierCode

string

Optional. IATA carrier code, e.g. KE. This is required if specific flight matching is desired. Otherwise, this is unused for typical flight and distance-based emissions models. This could be both operating and marketing carrier code (i.e. codeshare is covered).

flightNumber

integer

Optional. Flight number, e.g. 71. This is first used to match a specific flight if a flight number is specified alongside origin, destination, and carrier. If a flight number is not specified, we will first try to match the flight to a typical flight between the provided origin and destination airports. If that fails and/or origin & destination are not provided, we will use the distance-based emissions model based on the flight distance provided.

distanceKm

string (int64 format)

Optional. Distance in kilometers, e.g. 2423. This is used to match a flight to distance-based emissions when origin and destination are not provided or there are no matching typical flights. This field supports values between 0 and 2.5e16 km.

CabinClass

The cabin class of the flight.

Enums
CABIN_CLASS_UNSPECIFIED Unspecified cabin class.
ECONOMY Economy class.
PREMIUM_ECONOMY Premium economy class.
BUSINESS Business class.
FIRST First class.

Scope3FlightEmissions

Scope 3 flight with emission estimates.

JSON representation
{
  "flight": {
    object (Scope3FlightSegment)
  },
  "wtwEmissionsGramsPerPax": string,
  "ttwEmissionsGramsPerPax": string,
  "wttEmissionsGramsPerPax": string,
  "source": enum (Scope3DataType)
}
Fields
flight

object (Scope3FlightSegment)

Required. Matches the flight identifiers in the request.

wtwEmissionsGramsPerPax

string (int64 format)

Optional. Total flight emissions (sum of well-to-tank and tank-to-wake) per passenger based on the requested info. This is the total emissions and unless you have specific reasons for using TTW or WTT emissions, you should use this number.

ttwEmissionsGramsPerPax

string (int64 format)

Optional. Tank-to-wake flight emissions per passenger based on the requested info.

wttEmissionsGramsPerPax

string (int64 format)

Optional. Well-to-tank flight emissions per passenger based on the requested info.

source

enum (Scope3DataType)

Optional. The source of the emissions data.

Scope3DataType

The type of matching used to compute Scope 3 emissions. This is used for the Scope 3 response, marking which of the methods was used to compute the emissions.

Enums
SCOPE3_DATA_TYPE_UNSPECIFIED Unspecified data type.
TIM_EMISSIONS TIM-based emissions given origin, destination, carrier, flight number, departure date, and year.
TYPICAL_FLIGHT_EMISSIONS Typical flight emissions given origin, destination, and year.
DISTANCE_BASED_EMISSIONS Distance-based emissions based on the distance traveled and year.