Google Search Flights

每次成功搜索 32.5 积分
ae_google_search_flights

按航线、出行日期和乘客情况查询 Google Flights 航班报价,查看航班行程和票价。

旅行搜索
每次成功搜索 32.5 积分

价格说明

搜索成功扣 32.5 积分,搜索失败不收费。

工具参数

未传入的可选参数将使用平台默认值。

参数类型必填说明默认值
glenum (af | al | dz | as | ad | ao | ai | aq | ag | ar | am | aw | au | at | az | bs | bh | bd | bb | by | be | bz | bj | bm | bt | bo | ba | bw | bv | br | io | bn | bg | bf | bi | kh | cm | ca | cv | ky | cf | td | cl | cn | cx | cc | co | km | cg | cd | ck | cr | ci | hr | cu | cy | cz | dk | dj | dm | do | ec | eg | sv | gq | er | ee | et | fk | fo | fj | fi | fr | gf | pf | tf | ga | gm | ge | de | gh | gi | gr | gl | gd | gp | gu | gt | gg | gn | gw | gy | ht | hm | va | hn | hk | hu | is | in | id | ir | iq | ie | im | il | it | je | jm | jp | jo | kz | ke | ki | kp | kr | kw | kg | la | lv | lb | ls | lr | ly | li | lt | lu | mo | mk | mg | mw | my | mv | ml | mt | mh | mq | mr | mu | yt | mx | fm | md | mc | mn | me | ms | ma | mz | mm | na | nr | np | nl | an | nc | nz | ni | ne | ng | nu | nf | mp | no | om | pk | pw | ps | pa | pg | py | pe | ph | pn | pl | pt | pr | qa | re | ro | ru | rw | sh | kn | lc | pm | vc | ws | sm | st | sa | sn | rs | sc | sl | sg | sk | si | sb | so | za | gs | es | lk | sd | sr | sj | sz | se | ch | sy | tw | tj | tz | th | tl | tg | tk | to | tt | tn | tr | tm | tc | tv | ug | ua | ae | uk | gb | us | um | uy | uz | vu | ve | vn | vg | vi | wf | eh | ye | zm | zw)否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.—
hlenum (af | ak | sq | ws | am | ar | hy | az | eu | be | bem | bn | bh | bs | br | bg | bt | km | ca | chr | ny | co | hr | cs | da | nl | en | eo | et | ee | fo | tl | fi | fr | fy | gaa | gl | ka | de | el | kl | gn | gu | ht | ha | haw | iw | he | hi | hu | is | ig | id | ia | ga | it | ja | jw | kn | kk | rw | rn | kg | ko | kri | ku | ckb | ky | lo | la | lv | ln | lt | loz | lg | ach | mk | mg | ms | ml | mt | mv | mi | mr | mfe | mo | mn | my | ne | pcm | nso | no | nn | oc | or | om | ps | fa | pl | pt | pa | qu | ro | rm | nyn | ru | gd | sr | sh | st | tn | crs | sn | sd | si | sk | sl | so | es | su | sw | sv | tg | ta | tt | te | th | ti | to | lua | tum | tr | tk | tw | ug | uk | ur | uz | vu | vi | cy | wo | xh | yi | yo | zu | af-na | af-za | am-et | ar-001 | ar-ae | ar-bh | ar-dj | ar-dz | ar-eg | ar-eh | ar-er | ar-il | ar-iq | ar-jo | ar-km | ar-kw | ar-lb | ar-ly | ar-ma | ar-mr | ar-om | ar-ps | ar-qa | ar-sa | ar-sd | ar-so | ar-ss | ar-sy | ar-td | ar-tn | ar-ye | as-in | az-az | be-by | bg-bg | bn-bd | bn-in | bo-cn | bo-in | br-fr | bs-ba | ca-ad | ca-es | ca-fr | ca-it | ccp-bd | ccp-in | ceb-ph | chr-us | ckb-iq | ckb-ir | co-fr | cs-cz | cy-gb | da-dk | da-gl | de-at | de-be | de-ch | de-de | de-it | de-li | de-lu | ee-gh | ee-tg | el-cy | el-gr | en-001 | en-150 | en-ad | en-ae | en-ag | en-ai | en-al | en-ar | en-as | en-at | en-au | en-ba | en-bb | en-bd | en-be | en-bg | en-bi | en-bm | en-br | en-bs | en-bw | en-bz | en-ca | en-cc | en-ch | en-ck | en-cl | en-cm | en-cn | en-co | en-cx | en-cy | en-cz | en-de | en-dg | en-dk | en-dm | en-ee | en-er | en-es | en-fi | en-fj | en-fk | en-fm | en-fr | en-gb | en-gd | en-gg | en-gh | en-gi | en-gm | en-gr | en-gu | en-gy | en-hk | en-hr | en-hu | en-id | en-ie | en-il | en-im | en-in | en-io | en-is | en-it | en-je | en-jm | en-jp | en-ke | en-ki | en-kn | en-kr | en-ky | en-lc | en-lr | en-ls | en-lt | en-lu | en-lv | en-me | en-mg | en-mh | en-mm | en-mo | en-mp | en-ms | en-mt | en-mu | en-mv | en-mw | en-mx | en-my | en-na | en-nf | en-ng | en-nl | en-no | en-nr | en-nu | en-nz | en-pg | en-ph | en-pk | en-pl | en-pn | en-pr | en-pt | en-pw | en-ro | en-rs | en-ru | en-rw | en-sa | en-sb | en-sc | en-sd | en-se | en-sg | en-sh | en-si | en-sk | en-sl | en-ss | en-sx | en-sz | en-tc | en-th | en-tk | en-to | en-tr | en-tt | en-tv | en-tw | en-tz | en-ua | en-ug | en-um | en-us | en-vc | en-vg | en-vi | en-vu | en-ws | en-za | en-zm | en-zw | eo-001 | es-419 | es-ag | es-ai | es-ar | es-aw | es-bb | es-bl | es-bm | es-bo | es-bq | es-br | es-bs | es-bz | es-ca | es-cl | es-co | es-cr | es-cu | es-cw | es-dm | es-do | es-ea | es-ec | es-es | es-fk | es-gd | es-gf | es-gl | es-gp | es-gq | es-gt | es-gy | es-hn | es-ht | es-ic | es-kn | es-ky | es-lc | es-mf | es-mq | es-ms | es-mx | es-ni | es-pa | es-pe | es-ph | es-pm | es-pr | es-py | es-sr | es-sv | es-sx | es-tc | es-tt | es-us | es-uy | es-vc | es-ve | es-vg | es-vi | et-ee | eu-es | fa-af | fa-ir | fi-fi | fil-ph | fo-dk | fo-fo | fr-be | fr-bf | fr-bi | fr-bj | fr-bl | fr-ca | fr-cd | fr-cf | fr-cg | fr-ch | fr-ci | fr-cm | fr-dj | fr-dz | fr-fr | fr-ga | fr-gf | fr-gn | fr-gp | fr-gq | fr-ht | fr-km | fr-lu | fr-ma | fr-mc | fr-mf | fr-mg | fr-ml | fr-mq | fr-mr | fr-mu | fr-nc | fr-ne | fr-pf | fr-pm | fr-re | fr-rw | fr-sc | fr-sn | fr-sy | fr-td | fr-tg | fr-tn | fr-vu | fr-wf | fr-yt | fy-nl | ga-ie | gaa-gh | gd-gb | gl-es | gn-py | gsw-ch | gsw-fr | gsw-li | gu-in | ha-gh | ha-ne | ha-ng | haw-us | he-il | hi-in | hr-ba | hr-hr | hu-hu | hy-am | id-id | ig-ng | is-is | it-ch | it-it | it-sm | it-va | ja-jp | jv-id | ka-ge | kk-kz | km-kh | kn-in | ko-kp | ko-kr | ku-tr | ky-kg | lb-lu | lg-ug | ln-ao | ln-cd | ln-cf | ln-cg | lo-la | lv-lv | mfe-mu | mg-mg | mi-nz | mk-mk | ml-in | mn-mn | mr-in | ms-bn | ms-my | ms-sg | mt-mt | my-mm | nb-no | nb-sj | ne-in | ne-np | nl-aw | nl-be | nl-bq | nl-cw | nl-nl | nl-sr | nl-sx | nn-no | nso-za | ny-mw | nyn-ug | oc-fr | om-et | om-ke | or-in | pa-in | pl-pl | ps-af | ps-pk | pt-ao | pt-br | pt-ch | pt-cv | pt-fr | pt-gq | pt-gw | pt-lu | pt-mo | pt-mz | pt-pt | pt-st | pt-tl | qu-bo | qu-ec | qu-pe | rm-ch | rn-bi | ro-md | ro-ro | ru-by | ru-kg | ru-kz | ru-md | ru-ru | ru-ua | rw-rw | sa-in | scn-it | sd-pk | se-fi | si-lk | sk-sk | sl-si | sn-zw | so-dj | so-et | so-ke | so-so | sq-al | sq-mk | sq-xk | sr-ba | sr-me | sr-rs | sr-xk | st-ls | st-za | sv-ax | sv-fi | sv-se | sw-cd | sw-ke | sw-tz | sw-ug | ta-in | ta-lk | ta-my | ta-sg | te-in | tg-tj | th-th | ti-er | ti-et | tk-tm | tn-bw | tn-za | to-to | tr-cy | tr-tr | tt-ru | ug-cn | uk-ua | ur-in | ur-pk | uz-uz | vi-vn | wo-sn | xh-za | yi-001 | yo-bj | yo-ng | yue-cn | yue-hk | zh-cn | zh-hk | zh-mo | zh-sg | zh-tw | zu-za)否暂无参数说明。—
bagsnumber否Parameter defines the number of carry-on bags. Default to `0`. Parameter should not exceed the total number of passengers with carry-on bag allowance (adults, children and infants_in_seat).—
typeenum (1 | 2 | 3)否暂无参数说明。—
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—
adultsnumber否Parameter defines the number of adults. Default to 1.—
sort_byenum (1 | 2 | 3 | 4 | 5 | 6)否Parameter defines the sorting order of the results. Available options: `1` - Top flights (default) `2` - Price `3` - Departure time `4` - Arrival time `5` - Duration `6` - Emissions—
childrennumber否Parameter defines the number of children. Default to 0.—
currencyenum (ALL | DZD | ARS | AMD | AWG | AUD | AZN | BSD | BHD | BYN | BMD | BAM | BRL | GBP | BGN | XPF | CAD | CLP | CNY | COP | CRC | CUP | CZK | DKK | DOP | EGP | EUR | GEL | HKD | HUF | ISK | INR | IDR | IRR | ILS | JMD | JPY | JOD | KZT | KWD | LBP | MKD | MYR | MXN | MDL | MAD | TWD | NZD | NOK | OMR | PKR | PAB | PEN | PHP | PLN | QAR | RON | RUB | SAR | RSD | SGD | ZAR | KRW | SEK | CHF | THB | TRY | USD | UAH | AED | VND)否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.—
emissionsstring否Parameter defines the emission level of the flight. Available options: `1` - Less emissions only—
max_pricenumber否Parameter defines the maximum ticket price. Default to unlimited.—
arrival_idstring否暂无参数说明。—
deep_searchboolean否Set to `true` to enable deep search, which may yield better results but with a longer response time. Deep search results are identical to those found on Google Flights pages in the browser. By default, this option is set to `false` for performance reasons.—
return_datestring否Parameter defines the return date. The format is YYYY-MM-DD. e.g. `2026-12-02` Parameter is required when type is `1` (Round trip), unless selected_flights_json is used. Parameter can't be used when type is `2` (One way) or `3` (Multi-city).—
show_hiddenboolean否Set to `true` to include the hidden flight results. This is equivalent to clicking 'View more flights' on Google Flights. Default to `false`.—
departure_idstring否暂无参数说明。—
max_durationnumber否Parameter defines the maximum flight duration, in minutes. For example, specify `1500` for 25 hours. If your search returns no results, try increasing your max_duration by up to `200` minutes to account for route-specific scheduling variances.—
return_timesstring否暂无参数说明。—
travel_classstring否Parameter defines the travel class. Available options: `1` - Economy (default) `2` - Premium economy `3` - Business `4` - First—
booking_tokenstring否Parameter is used to get booking options for the selected flights. Find this token in the flight results. It cannot be used together with departure_token. When using this token, parameters related to date and parameters inside "Advanced filters" section won't affect the result.—
exclude_basicboolean否Set to `true` to exclude basic results. Resulting fares will have free seat selection and carry on bags. Default to `false`. As of now, this filter only works for domestic flights in the US. Parameter can only be used when gl is`us` and travel_class is`1`—
exclude_connsstring否暂无参数说明。—
outbound_datestring否Parameter defines the outbound date. The format is YYYY-MM-DD. e.g. `2026-11-26` Parameter is required when type is `1` (Round trip) or `2` (One way), unless selected_flights_json is used. Parameter can't be used when type is `3` (Multi-city). Use `date` inside multi_city_json instead.—
infants_on_lapnumber否Parameter defines the number of infants on lap. Default to 0.—
outbound_timesstring否暂无参数说明。—
departure_tokenstring否Parameter is used to select the flight and get returning flights (for Round trip) or flights for the next leg of itinerary (for Multi-city). Find this token in the departure flight results. It cannot be used together with booking_token.—
infants_in_seatnumber否Parameter defines the number of infants in seat. Default to 0.—
multi_city_jsonstring否暂无参数说明。—
exclude_airlinesstring否暂无参数说明。—
include_airlinesstring否暂无参数说明。—
layover_durationstring否Parameter defines the layover duration, in minutes. It's a string containing two comma-separated numbers. For example, specify `90,330` for 1 hr 30 min - 5 hr 30 min.—
selected_flights_jsonstring否暂无参数说明。—

调用示例

参数模板

根据参数配置生成,使用前请替换示例值。

POST/agent-api/v1/tool/executeX-Api-Key
请求代码request.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_google_search_flights' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {}
}'

暂无返回示例。