Get the lowest Google Flights fare for each departure date in a range between two airports, for one-way or round trips.
料金
$0.01USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 2 件 · 任意 19 件
プレイグラウンド
入力
Parameter defines the departure airport code or location kgmid. An airport code is an uppercase 3-letter code. You can search for it on Google Flights or IATA. For example, `CDG` is Paris Charles de Gaulle Airport and `AUS` is Austin-Bergstrom International Airport. A location kgmid is a string that starts with `/m/`. You can search for a location on Wikidata and use its "Freebase ID" as the location kgmid. For example, `/m/0vzm` is the location kgmid for Austin, TX.
Parameter defines the arrival airport code or location kgmid. An airport code is an uppercase 3-letter code. You can search for it on Google Flights or IATA. For example, `CDG` is Paris Charles de Gaulle Airport and `AUS` is Austin-Bergstrom International Airport. A location kgmid is a string that starts with `/m/`. You can search for a location on Wikidata and use its "Freebase ID" as the location kgmid. For example, `/m/0vzm` is the location kgmid for Austin, TX.
Parameter defines the country to use for the Google Flights search. It's a two-letter country code. (e.g., `us` for the United States, `uk` for United Kingdom, or `fr` for France) Head to the Google countries page for a full list of supported Google countries.
Parameter defines the language to use for the Google Flights search. It's a two-letter language code. (e.g., `en` for English, `es` for Spanish, or `fr` for French). Head to the Google languages page for a full list of supported Google languages.
Parameter defines the currency of the returned prices. Default to `USD`. Head to the Google Travel Currencies page for a full list of supported currency codes.
Parameter defines the type of the flights. Available options: `1` - Round trip (default) `2` - One way
Parameter defines the start date of the date range. The format is YYYY-MM-DD. e.g. `2026-11-12` Default to today's date. When `fixed_outbound_date` is set to `true`, this date is also used as the outbound date.
Parameter defines the end date of the date range. The format is YYYY-MM-DD. e.g. `2026-12-31` Default to end of next month.
Parameter defines the number of days for the round trip. Default to 7. It can only be used in combination with `type` parameter set to `1` (Round trip). Parameter cannot be used with `fixed_outbound_date` parameter.
Parameter defines whether the outbound date is fixed. It can be set to `true` to depart on `date_range_start` and get a price for each return date in the date range, or `false` (default) to get a price for each outbound date in the date range with a trip length of `round_trip_days`. It can only be used in combination with `type` parameter set to `1` (Round trip). Parameter cannot be used with `round_trip_days` parameter.
Parameter defines the travel class. Available options: `1` - Economy (default) `2` - Premium economy `3` - Business `4` - First
Parameter defines the number of adults. Default to 1.
Parameter defines the number of children. Default to 0.
Parameter defines the number of infants in seat. Default to 0.
Parameter defines the number of infants on lap. Default to 0.
Parameter defines the number of stops during the flight. Available options: `0` - Any number of stops (default) `1` - Nonstop only `2` - 1 stop or fewer `3` - 2 stops or fewer
Parameter defines the airline codes to be excluded. Split multiple airlines with comma. It can't be used together with `include_airlines`. Each airline code should be a 2-character IATA code consisting of either two uppercase letters or one uppercase letter and one digit. You can search for airline codes on IATA. For example, `UA` is United Airlines. Additionally, alliances can be also included here: `STAR_ALLIANCE` - Star Alliance `SKYTEAM` - SkyTeam `ONEWORLD` - Oneworld `exclude_airlines` and `include_airlines` parameters can't be used together.
Parameter defines the airline codes to be included. Split multiple airlines with comma. It can't be used together with `exclude_airlines`. Each airline code should be a 2-character IATA code consisting of either two uppercase letters or one uppercase letter and one digit. You can search for airline codes on IATA. For example, `UA` is United Airlines. Additionally, alliances can be also included here: `STAR_ALLIANCE` - Star Alliance `SKYTEAM` - SkyTeam `ONEWORLD` - Oneworld `exclude_airlines` and `include_airlines` parameters can't be used together.
Parameter defines the outbound times range. It's a string containing two (for departure only) or four (for departure and arrival) comma-separated numbers. Each number represents the beginning of an hour. For example: `4,18`: 4:00 AM - 7:00 PM departure `0,18`: 12:00 AM - 7:00 PM departure `19,23`: 7:00 PM - 12:00 AM departure `4,18,3,19`: 4:00 AM - 7:00 PM departure, 3:00 AM - 8:00 PM arrival `0,23,3,19`: unrestricted departure, 3:00 AM - 8:00 PM arrival
Parameter defines the return times range. It's a string containing two (for departure only) or four (for departure and arrival) comma-separated numbers. Each number represents the beginning of an hour. For example: `4,18`: 4:00 AM - 7:00 PM departure `0,18`: 12:00 AM - 7:00 PM departure `19,23`: 7:00 PM - 12:00 AM departure `4,18,3,19`: 4:00 AM - 7:00 PM departure, 3:00 AM - 8:00 PM arrival `0,23,3,19`: unrestricted departure, 3:00 AM - 8:00 PM arrival Parameter should only be used when `type` parameter is set to: `1` (Round trip)
Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
出力準備完了
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
API README
Google Flights Calendar
Get the lowest Google Flights fare for each departure date in a range between two airports, for one-way or round trips.
The result is returned in outputs[0].data as structured JSON.
Parameters
Name
Type
Required
Description
departure_id
string
Yes
Parameter defines the departure airport code or location kgmid. An airport code is an uppercase 3-letter code. You can search for it on Google Flights or IATA. For example, CDG is Paris Charles de Gaulle Airport and AUS is Austin-Bergst
arrival_id
string
Yes
Parameter defines the arrival airport code or location kgmid. An airport code is an uppercase 3-letter code. You can search for it on Google Flights or IATA. For example, CDG is Paris Charles de Gaulle Airport and AUS is Austin-Bergstro
gl
string
No
Parameter defines the country to use for the Google Flights search. It's a two-letter country code. (e.g., us for the United States, uk for United Kingdom, or fr for France) Head to the Google countries page for a full list of support
hl
string
No
Parameter defines the language to use for the Google Flights search. It's a two-letter language code. (e.g., en for English, es for Spanish, or fr for French). Head to the Google languages page for a full list of supported Google lang
currency
string
No
Parameter defines the currency of the returned prices. Default to USD. Head to the Google Travel Currencies page for a full list of supported currency codes.
type
string
No
Parameter defines the type of the flights. Available options: 1 - Round trip (default) 2 - One way
date_range_start
string
No
Parameter defines the start date of the date range. The format is YYYY-MM-DD. e.g. 2026-11-12 Default to today's date. When fixed_outbound_date is set to true, this date is also used as the outbound date.
date_range_end
string
No
Parameter defines the end date of the date range. The format is YYYY-MM-DD. e.g. 2026-12-31 Default to end of next month.
round_trip_days
string
No
Parameter defines the number of days for the round trip. Default to 7. It can only be used in combination with type parameter set to 1 (Round trip). Parameter cannot be used with fixed_outbound_date parameter.
fixed_outbound_date
string
No
Parameter defines whether the outbound date is fixed. It can be set to true to depart on date_range_start and get a price for each return date in the date range, or false (default) to get a price for each outbound date in the date ran
travel_class
string
No
Parameter defines the travel class. Available options: 1 - Economy (default) 2 - Premium economy 3 - Business 4 - First
adults
string
No
Parameter defines the number of adults. Default to 1.
children
string
No
Parameter defines the number of children. Default to 0.
infants_in_seat
string
No
Parameter defines the number of infants in seat. Default to 0.
infants_on_lap
string
No
Parameter defines the number of infants on lap. Default to 0.
stops
string
No
Parameter defines the number of stops during the flight. Available options: 0 - Any number of stops (default) 1 - Nonstop only 2 - 1 stop or fewer 3 - 2 stops or fewer
exclude_airlines
string
No
Parameter defines the airline codes to be excluded. Split multiple airlines with comma. It can't be used together with include_airlines. Each airline code should be a 2-character IATA code consisting of either two uppercase letters or one
include_airlines
string
No
Parameter defines the airline codes to be included. Split multiple airlines with comma. It can't be used together with exclude_airlines. Each airline code should be a 2-character IATA code consisting of either two uppercase letters or one
outbound_times
string
No
Parameter defines the outbound times range. It's a string containing two (for departure only) or four (for departure and arrival) comma-separated numbers. Each number represents the beginning of an hour. For example: 4,18: 4:00 AM - 7:00
return_times
string
No
Parameter defines the return times range. It's a string containing two (for departure only) or four (for departure and arrival) comma-separated numbers. Each number represents the beginning of an hour. For example: 4,18: 4:00 AM - 7:00 PM
json_restrictor
string
No
Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
Pricing
$0.010 per successful call. Failed calls are not charged.
Parameter defines the departure airport code or location kgmid. An airport code is an uppercase 3-letter code. You can search for it on Google Flights or IATA. For example, `CDG` is Paris Charles de Gaulle Airport and `AUS` is Austin-Bergstrom International Airport. A location kgmid is a string that starts with `/m/`. You can search for a location on Wikidata and use its "Freebase ID" as the location kgmid. For example, `/m/0vzm` is the location kgmid for Austin, TX.
arrival_idstring必須
Parameter defines the arrival airport code or location kgmid. An airport code is an uppercase 3-letter code. You can search for it on Google Flights or IATA. For example, `CDG` is Paris Charles de Gaulle Airport and `AUS` is Austin-Bergstrom International Airport. A location kgmid is a string that starts with `/m/`. You can search for a location on Wikidata and use its "Freebase ID" as the location kgmid. For example, `/m/0vzm` is the location kgmid for Austin, TX.
glstring
Parameter defines the country to use for the Google Flights search. It's a two-letter country code. (e.g., `us` for the United States, `uk` for United Kingdom, or `fr` for France) Head to the Google countries page for a full list of supported Google countries.
hlstring
Parameter defines the language to use for the Google Flights search. It's a two-letter language code. (e.g., `en` for English, `es` for Spanish, or `fr` for French). Head to the Google languages page for a full list of supported Google languages.
currencystring
Parameter defines the currency of the returned prices. Default to `USD`. Head to the Google Travel Currencies page for a full list of supported currency codes.
typestring
Parameter defines the type of the flights. Available options: `1` - Round trip (default) `2` - One way
date_range_startstring
Parameter defines the start date of the date range. The format is YYYY-MM-DD. e.g. `2026-11-12` Default to today's date. When `fixed_outbound_date` is set to `true`, this date is also used as the outbound date.
date_range_endstring
Parameter defines the end date of the date range. The format is YYYY-MM-DD. e.g. `2026-12-31` Default to end of next month.
round_trip_daysstring
Parameter defines the number of days for the round trip. Default to 7. It can only be used in combination with `type` parameter set to `1` (Round trip). Parameter cannot be used with `fixed_outbound_date` parameter.
fixed_outbound_datestring
Parameter defines whether the outbound date is fixed. It can be set to `true` to depart on `date_range_start` and get a price for each return date in the date range, or `false` (default) to get a price for each outbound date in the date range with a trip length of `round_trip_days`. It can only be used in combination with `type` parameter set to `1` (Round trip). Parameter cannot be used with `round_trip_days` parameter.
travel_classstring
Parameter defines the travel class. Available options: `1` - Economy (default) `2` - Premium economy `3` - Business `4` - First
adultsstring
Parameter defines the number of adults. Default to 1.
childrenstring
Parameter defines the number of children. Default to 0.
infants_in_seatstring
Parameter defines the number of infants in seat. Default to 0.
infants_on_lapstring
Parameter defines the number of infants on lap. Default to 0.
stopsstring
Parameter defines the number of stops during the flight. Available options: `0` - Any number of stops (default) `1` - Nonstop only `2` - 1 stop or fewer `3` - 2 stops or fewer
exclude_airlinesstring
Parameter defines the airline codes to be excluded. Split multiple airlines with comma. It can't be used together with `include_airlines`. Each airline code should be a 2-character IATA code consisting of either two uppercase letters or one uppercase letter and one digit. You can search for airline codes on IATA. For example, `UA` is United Airlines. Additionally, alliances can be also included here: `STAR_ALLIANCE` - Star Alliance `SKYTEAM` - SkyTeam `ONEWORLD` - Oneworld `exclude_airlines` and `include_airlines` parameters can't be used together.
include_airlinesstring
Parameter defines the airline codes to be included. Split multiple airlines with comma. It can't be used together with `exclude_airlines`. Each airline code should be a 2-character IATA code consisting of either two uppercase letters or one uppercase letter and one digit. You can search for airline codes on IATA. For example, `UA` is United Airlines. Additionally, alliances can be also included here: `STAR_ALLIANCE` - Star Alliance `SKYTEAM` - SkyTeam `ONEWORLD` - Oneworld `exclude_airlines` and `include_airlines` parameters can't be used together.
outbound_timesstring
Parameter defines the outbound times range. It's a string containing two (for departure only) or four (for departure and arrival) comma-separated numbers. Each number represents the beginning of an hour. For example: `4,18`: 4:00 AM - 7:00 PM departure `0,18`: 12:00 AM - 7:00 PM departure `19,23`: 7:00 PM - 12:00 AM departure `4,18,3,19`: 4:00 AM - 7:00 PM departure, 3:00 AM - 8:00 PM arrival `0,23,3,19`: unrestricted departure, 3:00 AM - 8:00 PM arrival
return_timesstring
Parameter defines the return times range. It's a string containing two (for departure only) or four (for departure and arrival) comma-separated numbers. Each number represents the beginning of an hour. For example: `4,18`: 4:00 AM - 7:00 PM departure `0,18`: 12:00 AM - 7:00 PM departure `19,23`: 7:00 PM - 12:00 AM departure `4,18,3,19`: 4:00 AM - 7:00 PM departure, 3:00 AM - 8:00 PM arrival `0,23,3,19`: unrestricted departure, 3:00 AM - 8:00 PM arrival Parameter should only be used when `type` parameter is set to: `1` (Round trip)
json_restrictorstring
Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.