# Goole Flights

**SERP API谷歌查詢參數**

透過Thordata的SERP API配置谷歌航班查詢，支援進階參數、乘客數量輸出選項等定制功能。

<details>

<summary><strong><code>departure_id</code></strong>,出發機場代碼<strong>(必填)</strong></summary>

參數定義出發機場代碼或位置 `kgmid`。

機場代碼是三個大寫的字母代碼。您可以在 Google Flights或IATA上搜尋。

例如，`CDG`是巴黎戴高樂機場，`AUS`是奧斯汀-伯格斯特國際機場。

位置 `kgmid` 是一個以 開頭的字串。您可以在Wikidata/m/上搜尋位置，並使用其“Freebase ID”作為位置 `kgmid`。例如，是德克薩斯州奧斯汀的位置 `kgmid`。您可以指定多個出發機場，並用逗號分隔。

範例請求：\
使用參數的範例值： **`departure_id`**: CDG

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_flights" \
 -d "departure_id=CDG" \
 -d "arrival_id=AUS" \
 -d "json=1" \
 -d "outbound_date=2025-08-31"
```

</details>

<details>

<summary><strong><code>arrival_id</code></strong>,到達機場代碼 <strong>(必填)</strong></summary>

參數定義出發機場代碼或位置 `kgmid`。

機場代碼是三個大寫的字母代碼。您可以在 Google Flights或IATA上搜尋。

例如，`CDG`是巴黎戴高樂機場，`AUS`是奧斯汀-伯格斯特國際機場。

位置 `kgmid` 是一個以 開頭的字串。您可以在Wikidata/m/上搜尋位置，並使用其“Freebase ID”作為位置 `kgmid`。例如，是德克薩斯州奧斯汀的位置 `kgmid`。您可以指定多個出發機場，並用逗號分隔。

範例請求：\
使用參數的範例值： **`arrival_id`**: AUS

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_flights" \
 -d "departure_id=CDG" \
 -d "arrival_id=AUS" \
 -d "json=1" \
 -d "outbound_date=2025-08-31"
```

</details>

## 高級參數

<details>

<summary><strong><code>outbound_date</code> ,</strong>出站日期<strong>(非必填)</strong></summary>

參數定義出站日期。格式為 `YYYY-MM-DD`。例如`2025-09-03`

範例請求：\
使用參數的範例值： **`departure_id`**: CDG,**`arrival_id`**: AUS,`outbound_date`:2025-08-31

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_flights" \
 -d "departure_id=CDG" \
 -d "arrival_id=AUS" \
 -d "json=1" \
 -d "outbound_date=2025-08-31"
```

</details>

<details>

<summary><strong><code>return_date</code> ,</strong>返回日期<strong>(非必填)</strong></summary>

參數定義回傳日期。格式為 `YYYY-MM-DD`。例如`2025-09-06`

範例請求：\
使用參數的範例值： **`departure_id`**: CDG,**`arrival_id`**: AUS,`return_date`:2025-09-06

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_flights" \
 -d "departure_id=CDG" \
 -d "arrival_id=AUS" \
 -d "json=1" \
 -d "outbound_date=2025-08-31" \
 -d "return_date=2025-09-06"
```

</details>

<details>

<summary><strong><code>travel_class</code> ,</strong>旅行艙位<strong>(非必填)</strong></summary>

參數定義旅行艙位。

可用選項：

`1`- 經濟艙（預設）

`2`- 高級經濟艙

`3`- 商務艙

`4`- 頭等艙

範例請求：\
使用參數的範例值：**`departure_id`**: CDG,**`arrival_id`**: AUS,`travel_class`:1

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_flights" \
 -d "departure_id=CDG" \
 -d "arrival_id=AUS" \
 -d "json=1" \
 -d "travel_class=1"
```

</details>

## 乘客人數

<details>

<summary><strong><code>adults</code> ,</strong>人數<strong>(非必填)</strong></summary>

此參數定義成人數量。預設為 1。

範例請求：\
使用參數的範例值： **`departure_id`**: CDG,**`arrival_id`**: AUS,**`adults`**:1

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_flights" \
 -d "departure_id=CDG" \
 -d "arrival_id=AUS" \
 -d "json=1" \
 -d "adults=1"
```

</details>

<details>

<summary><strong><code>children</code> ,</strong>孩子數量<strong>(非必填)</strong></summary>

參數定義孩子的數量。預設為 0。

範例請求：\
使用參數的範例值： **`departure_id`**: CDG,**`arrival_id`**: AUS,**`children`**:0

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_flights" \
 -d "departure_id=CDG" \
 -d "arrival_id=AUS" \
 -d "json=1" \
 -d "children=0"
```

</details>

<details>

<summary><strong><code>infants_in_seat</code>,</strong>座位上的嬰兒人數<strong>(非必填)</strong></summary>

此參數定義座位上可容納的嬰兒數量。預設為 0。

範例請求：\
使用參數的範例值： **`departure_id`**: CDG,**`arrival_id`**: AUS,**`infants_in_seat`**:1

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_flights" \
 -d "departure_id=CDG" \
 -d "arrival_id=AUS" \
 -d "json=1" \
 -d "infants_in_seat=1"
```

</details>

<details>

<summary><strong><code>infants_on_lap</code> ,</strong>懷抱嬰兒的數量<strong>(非必填)</strong></summary>

此參數定義懷抱嬰兒的數量。預設為 0。

範例請求：\
使用參數的範例值：  **`departure_id`**: CDG,**`arrival_id`**: AUS,**`infants_on_lap`**:0

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_flights" \
 -d "departure_id=CDG" \
 -d "arrival_id=AUS" \
 -d "json=1" \
 -d "infants_on_lap=0"
```

</details>

如需进一步协助，请联系支持邮箱：[support@thordata.com](https://mailto:support@thordata.com/)。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.thordata.com/doc/zh-hk/pa-qu/serp-api/cha-xun-can-shu/gu-ge/goole-flights.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
