Method: flights.computeTypicalFlightEmissions
Stay organized with collections
Save and categorize content based on your preferences.
Retrieves typical flight emissions estimates between two airports, also known as a market. If there are no estimates available for a certain market, the response will return the market object with empty emission fields. The request will still be considered successful.
Details on how the typical emissions estimates are computed are on GitHub.
The request can contain up to 1000 markets. If the request has more than 1000 markets, it will fail with an INVALID_ARGUMENT error.
HTTP request
POST https://travelimpactmodel.googleapis.com/v1/flights:computeTypicalFlightEmissions
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
JSON representation |
{
"markets": [
{
object (Market )
}
]
} |
Fields |
markets[] |
object (Market )
Required. Request the typical flight emissions estimates for this market pair. A maximum of 1000 markets can be requested.
|
Response body
The response includes the emissions but also the model version.
If successful, the response body contains data with the following structure:
Fields |
typicalFlightEmissions[] |
object (TypicalFlightEmissions )
Market's Typical Flight Emissions requested.
|
modelVersion |
object (ModelVersion )
The model version under which typical flight emission estimates for all flights in this response were computed.
|
Market
JSON representation |
{
"origin": string,
"destination": string
} |
Fields |
origin |
string
Required. IATA airport code for flight origin, e.g. "LHR".
|
destination |
string
Required. IATA airport code for flight destination, e.g. "JFK".
|
TypicalFlightEmissions
Typical flight emission estimates for a certain market
Fields |
market |
object (Market )
Required. Matches the flight identifiers in the request. Note: all IATA codes are capitalized.
|
emissionsGramsPerPax |
object (EmissionsGramsPerPax )
Optional. Typical flight emissions per passenger for requested market. Will not be present if a typical emissions could not be computed. For the list of reasons why typical flight emissions could not be computed, see GitHub.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-04 UTC."],[],[],null,["# Method: flights.computeTypicalFlightEmissions\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ComputeTypicalFlightEmissionsResponse.SCHEMA_REPRESENTATION)\n- [Market](#Market)\n - [JSON representation](#Market.SCHEMA_REPRESENTATION)\n- [TypicalFlightEmissions](#TypicalFlightEmissions)\n - [JSON representation](#TypicalFlightEmissions.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nRetrieves typical flight emissions estimates between two airports, also known as a market. If there are no estimates available for a certain market, the response will return the market object with empty emission fields. The request will still be considered successful.\n\nDetails on how the typical emissions estimates are computed are on [GitHub](https://github.com/google/travel-impact-model/blob/main/projects/typical_flight_emissions.md).\n\nThe request can contain up to 1000 markets. If the request has more than 1000 markets, it will fail with an INVALID_ARGUMENT error.\n\n### HTTP request\n\n`POST https://travelimpactmodel.googleapis.com/v1/flights:computeTypicalFlightEmissions`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"markets\": [ { object (/travel/impact-model/docs/reference/rest/v1/flights/computeTypicalFlightEmissions#Market) } ] } ``` |\n\n| Fields ||\n|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `markets[]` | `object (`[Market](/travel/impact-model/docs/reference/rest/v1/flights/computeTypicalFlightEmissions#Market)`)` Required. Request the typical flight emissions estimates for this market pair. A maximum of 1000 markets can be requested. |\n\n### Response body\n\nThe response includes the emissions but also the model version.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"typicalFlightEmissions\": [ { object (/travel/impact-model/docs/reference/rest/v1/flights/computeTypicalFlightEmissions#TypicalFlightEmissions) } ], \"modelVersion\": { object (/travel/impact-model/docs/reference/rest/v1/ModelVersion) } } ``` |\n\n| Fields ||\n|----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `typicalFlightEmissions[]` | `object (`[TypicalFlightEmissions](/travel/impact-model/docs/reference/rest/v1/flights/computeTypicalFlightEmissions#TypicalFlightEmissions)`)` Market's Typical Flight Emissions requested. |\n| `modelVersion` | `object (`[ModelVersion](/travel/impact-model/docs/reference/rest/v1/ModelVersion)`)` The model version under which typical flight emission estimates for all flights in this response were computed. |\n\nMarket\n------\n\nA pair of airports.\n\n| JSON representation |\n|-----------------------------------------------------|\n| ``` { \"origin\": string, \"destination\": string } ``` |\n\n| Fields ||\n|---------------|--------------------------------------------------------------------------|\n| `origin` | `string` Required. IATA airport code for flight origin, e.g. \"LHR\". |\n| `destination` | `string` Required. IATA airport code for flight destination, e.g. \"JFK\". |\n\nTypicalFlightEmissions\n----------------------\n\nTypical flight emission estimates for a certain market\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"market\": { object (/travel/impact-model/docs/reference/rest/v1/flights/computeTypicalFlightEmissions#Market) }, \"emissionsGramsPerPax\": { object (/travel/impact-model/docs/reference/rest/v1/EmissionsGramsPerPax) } } ``` |\n\n| Fields ||\n|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `market` | `object (`[Market](/travel/impact-model/docs/reference/rest/v1/flights/computeTypicalFlightEmissions#Market)`)` Required. Matches the flight identifiers in the request. Note: all IATA codes are capitalized. |\n| `emissionsGramsPerPax` | `object (`[EmissionsGramsPerPax](/travel/impact-model/docs/reference/rest/v1/EmissionsGramsPerPax)`)` Optional. Typical flight emissions per passenger for requested market. Will not be present if a typical emissions could not be computed. For the list of reasons why typical flight emissions could not be computed, see [GitHub](https://github.com/google/travel-impact-model/blob/main/projects/typical_flight_emissions.md#step-7-validate-dataset). |"]]