Skip to main content
Glama

SearchAPI MCP Server

search_google_flights

Search for flight options using departure and arrival details, dates, and filters like price, airlines, and travel class. Access real-time flight data to plan trips efficiently.

Input Schema

NameRequiredDescriptionDefault
adultsNo成人数量
arrival_idYes目的地ID
booking_tokenNo预订令牌
carry_on_bagsNo随身行李
checked_bagsNo托运行李
childrenNo儿童数量
currencyNo货币
departure_idYes出发地ID
departure_tokenNo出发令牌
emissionsNo排放量
excluded_airlinesNo排除的航空公司
excluded_connecting_airportsNo排除的中转机场
flight_typeNo航班类型round_trip
glNo地理位置
hlNo语言
included_airlinesNo包含的航空公司
included_connecting_airportsNo包含的中转机场
infants_in_seatNo占座婴儿数量
infants_on_lapNo不占座婴儿数量
layover_duration_maxNo最长中转时间
layover_duration_minNo最短中转时间
max_flight_durationNo最长飞行时间
max_priceNo最高价格
multi_city_jsonNo多城市行程JSON
outbound_dateYes出发日期
outbound_timesNo出发时间范围
return_dateNo返程日期
return_timesNo返程时间范围
separate_ticketsNo分开的机票
show_cheapest_flightsNo显示最便宜航班
show_hidden_flightsNo显示隐藏航班
sort_byNo排序方式
stopsNo中转次数
travel_classNo舱位等级

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" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lianshuang-photo/searchapi-mcp-nodejs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server