flights

POST /v1/flights:computeScope3DetailedFlightEmissions

Changed on

Retrieves detailed 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. For each flight segment, 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. Detailed Flight Emissions are transparent per-passenger greenhouse gas emission estimates supplemented by comprehensive metadata detailing the calculation methodology, emissions breakdown, contrail impact, and data provenance. They are available only for Tier 1 emissions (TIM-based). Details on how emission estimates are computed are in GitHub. 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 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 Scope3FlightWithDetailedEmissions 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 with a message describing the issue if: * The request contains more than 100 flight legs. * The input flight leg is missing one or more identifiers. For example, missing origin/destination without a valid distance for TIM-based or typical flight emissions, or missing distance for distance-based emissions. * 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. Consequently, one should check the source of the returned emissions (source) to confirm the results are as expected.

Request

  • Base URL
    https://travelimpactmodel.googleapis.com
  • Auth
    none declared

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

Request body

ComputeScope3DetailedFlightEmissionsRequest required

Input definition for the ComputeScope3DetailedFlightEmissions request.

flights, Scope3FlightSegment[]

Required. Flights to return detailed emission estimates for.

modelVersion, ModelVersion

Travel Impact Model version. For more information about the model versioning see GitHub.

Response

Successful response

ComputeScope3DetailedFlightEmissionsResponse required

Output definition for the ComputeScope3DetailedFlightEmissions response.

flightsDetailedEmissions, Scope3FlightWithDetailedEmissions[]

List of flight segments with detailed emission estimates.

modelVersion, ModelVersion

Travel Impact Model version. For more information about the model versioning see GitHub.

Changes