API の概要
Travel Impact Model API は、Travel Impact Model に従って計算された排出量の推定値を公開します。これらの排出量の推定値は、Google フライトにも表示されます。
API が一般公開されており、料金がかかりません。
認証には API キーが必要です。
推定排出量モデルの概要
旅行に関するインパクト モデルは、フライトの最新の排出量推定モデルです。
この方法は GitHub で公開されています。
フライトでの排出量の推定データ
この API は、今後 11 か月以内に出発する世界中の商用フライトをサポートします。
チャーター便、プライベート フライト、貨物便はサポートされていません。過去のフライトはサポートされていません。ご不明な点や機能リクエストがございましたら、Google までお問い合わせください(サポートページを参照)。
この API によって公開されるデータは、CC BY-SA 4.0 ライセンスに基づいて提供されています。
API 呼び出しの例
curl https://travelimpactmodel.googleapis.com/v1/flights:computeFlightEmissions?key=$API_KEY \ -H "Content-Type: application/json" -d \ '{ "flights": [ { "origin": "ZRH", "destination": "CDG", "operatingCarrierCode": "AF", "flightNumber": 1115, "departureDate": {"year": 2024, "month": 12, "day": 2} }, { "origin": "CDG", "destination": "BOS", "operatingCarrierCode": "AF", "flightNumber": 334, "departureDate": {"year": 2024, "month": 12, "day": 1} }, { "origin": "ZRH", "destination": "BOS", "operatingCarrierCode": "LX", "flightNumber": 52, "departureDate": {"year": 2024, "month": 11, "day": 1} } ] }'
{ "flightEmissions": [ { "flight": { "origin": "ZRH", "destination": "CDG", "operatingCarrierCode": "AF", "flightNumber": 1115, "departureDate": { "year": 2024, "month": 12, "day": 2 } }, "emissionsGramsPerPax": { "first": 97116, "business": 97116, "premiumEconomy": 64744, "economy": 64744, } }, { "flight": { "origin": "CDG", "destination": "BOS", "operatingCarrierCode": "AF", "flightNumber": 334, "departureDate": { "year": 2024, "month": 12, "day": 1 } }, "emissionsGramsPerPax": { "first": 2290480, "business": 1832384, "premiumEconomy": 687143, "economy": 458096 } }, { "flight": { "origin": "ZRH", "destination": "BOS", "operatingCarrierCode": "LX", "flightNumber": 52, "departureDate": { "year": 2024, "month": 11, "day": 1 } }, "emissionsGramsPerPax": { "first": 2220460, "business": 1776368, "premiumEconomy": 666137, "economy": 444092 } } ], "modelVersion": { "major": 1, "minor": 9, "patch": 0, "dated": "20240312" } }
レスポンスの例: