search_google_flights
Search and retrieve flight options from Google Flights using specific criteria such as departure, destination, dates, class, and filters like price, airlines, and baggage.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
adults | No | 成人数量 | |
arrival_id | Yes | 目的地ID | |
booking_token | No | 预订令牌 | |
carry_on_bags | No | 随身行李 | |
checked_bags | No | 托运行李 | |
children | No | 儿童数量 | |
currency | No | 货币 | |
departure_id | Yes | 出发地ID | |
departure_token | No | 出发令牌 | |
emissions | No | 排放量 | |
excluded_airlines | No | 排除的航空公司 | |
excluded_connecting_airports | No | 排除的中转机场 | |
flight_type | No | 航班类型 | round_trip |
gl | No | 地理位置 | |
hl | No | 语言 | |
included_airlines | No | 包含的航空公司 | |
included_connecting_airports | No | 包含的中转机场 | |
infants_in_seat | No | 占座婴儿数量 | |
infants_on_lap | No | 不占座婴儿数量 | |
layover_duration_max | No | 最长中转时间 | |
layover_duration_min | No | 最短中转时间 | |
max_flight_duration | No | 最长飞行时间 | |
max_price | No | 最高价格 | |
multi_city_json | No | 多城市行程JSON | |
outbound_date | Yes | 出发日期 | |
outbound_times | No | 出发时间范围 | |
return_date | No | 返程日期 | |
return_times | No | 返程时间范围 | |
separate_tickets | No | 分开的机票 | |
show_cheapest_flights | No | 显示最便宜航班 | |
show_hidden_flights | No | 显示隐藏航班 | |
sort_by | No | 排序方式 | |
stops | No | 中转次数 | |
travel_class | No | 舱位等级 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"adults": {
"description": "成人数量",
"type": "string"
},
"arrival_id": {
"description": "目的地ID",
"type": "string"
},
"booking_token": {
"description": "预订令牌",
"type": "string"
},
"carry_on_bags": {
"description": "随身行李",
"type": "string"
},
"checked_bags": {
"description": "托运行李",
"type": "string"
},
"children": {
"description": "儿童数量",
"type": "string"
},
"currency": {
"description": "货币",
"type": "string"
},
"departure_id": {
"description": "出发地ID",
"type": "string"
},
"departure_token": {
"description": "出发令牌",
"type": "string"
},
"emissions": {
"description": "排放量",
"type": "string"
},
"excluded_airlines": {
"description": "排除的航空公司",
"type": "string"
},
"excluded_connecting_airports": {
"description": "排除的中转机场",
"type": "string"
},
"flight_type": {
"default": "round_trip",
"description": "航班类型",
"type": "string"
},
"gl": {
"description": "地理位置",
"type": "string"
},
"hl": {
"description": "语言",
"type": "string"
},
"included_airlines": {
"description": "包含的航空公司",
"type": "string"
},
"included_connecting_airports": {
"description": "包含的中转机场",
"type": "string"
},
"infants_in_seat": {
"description": "占座婴儿数量",
"type": "string"
},
"infants_on_lap": {
"description": "不占座婴儿数量",
"type": "string"
},
"layover_duration_max": {
"description": "最长中转时间",
"type": "string"
},
"layover_duration_min": {
"description": "最短中转时间",
"type": "string"
},
"max_flight_duration": {
"description": "最长飞行时间",
"type": "string"
},
"max_price": {
"description": "最高价格",
"type": "string"
},
"multi_city_json": {
"description": "多城市行程JSON",
"type": "string"
},
"outbound_date": {
"description": "出发日期",
"type": "string"
},
"outbound_times": {
"description": "出发时间范围",
"type": "string"
},
"return_date": {
"description": "返程日期",
"type": "string"
},
"return_times": {
"description": "返程时间范围",
"type": "string"
},
"separate_tickets": {
"description": "分开的机票",
"type": "string"
},
"show_cheapest_flights": {
"description": "显示最便宜航班",
"type": "string"
},
"show_hidden_flights": {
"description": "显示隐藏航班",
"type": "string"
},
"sort_by": {
"description": "排序方式",
"type": "string"
},
"stops": {
"description": "中转次数",
"type": "string"
},
"travel_class": {
"description": "舱位等级",
"type": "string"
}
},
"required": [
"departure_id",
"arrival_id",
"outbound_date"
],
"type": "object"
}