# Bing 地圖 API

**SERP API Bing查詢參數**

使用Thordata的SERP API配置Bing搜索查詢，包括本土化、地理位置和分頁等參數選項。

<details>

<summary><strong><code>q</code> ，搜索查詢(必填)</strong></summary>

定義用於數據抓取的搜索查詢（默認值：`q=pizza`）。支持任何語言的任意關鍵詞。

**示例請求：**

使用`q`：<mark style="color:blue;">pizza</mark>參數的示例

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=bing_maps" \
 -d "q=pizza" \
 -d "json=1"
```

</details>

## 本土化

<details>

<summary><code>setlang</code> 語言<strong>(非必填)</strong></summary>

此參數定義搜尋時所使用的語言。它遵循 gb 個字元的ISO\_3166-1格式。 （例如，美國、德國、英國等）

**示例請求：**

查询 `q` : <mark style="color:blue;">pizza</mark>,setlang:<mark style="color:blue;">eu</mark>

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=bing_maps" \
 -d "q=pizza" \
 -d "json=1" \
 -d "setlang=eu"
```

</details>

## 地理位置

<details>

<summary><code>cp</code> <strong>，</strong>GPS座標<strong>(非必填)</strong></summary>

此參數定義您希望套用q （查詢）的位置的 GPS 座標。它必須按照以下序列構造：

latitude++這將形成如下所示的字串：例如。 \~longitude

40.7455096\~-74.0083012

**示例請求：**

查询  `q` : <mark style="color:blue;">pizza</mark>,`cp`:40.7455096\~-74.0083012的示例

<pre class="language-sh"><code class="lang-sh"><strong>curl -X POST https://scraperapi.thordata.com/request \
</strong> -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=bing_maps" \
 -d "q=pizza" \
 -d "json=1" \
 -d "cp=40.7455096~-74.0083012"
</code></pre>

</details>

## 分頁

<details>

<summary><strong><code>first</code> ，結果偏移量(非必填)</strong></summary>

參數用於控制自然搜索結果的偏移量，默認值為1（例如：first=10時，系統會將第10條自然搜索結果提升至首位）。

**示例請求：**

查询 `q` : <mark style="color:blue;">pizza</mark>,`first`:<mark style="color:blue;">10</mark>的示例

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=bing_maps" \
 -d "q=pizza" \
 -d "json=1" \
 -d "first=10" \
 -d "count=10"
```

</details>

<details>

<summary><strong><code>count</code> ，每頁結果數(非必填)</strong></summary>

每頁參數用於控制每頁顯示的搜索結果數量（最小值：1，最大值：50），實際生效值會受到first偏移量參數的影響。

**示例請求：**

查询 `q` : <mark style="color:blue;">pizza</mark>,`count`:<mark style="color:blue;">10</mark>的示例

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=bing_maps" \
 -d "q=pizza" \
 -d "json=1" \
 -d "first=10" \
 -d "count=10"
```

</details>

## 高級篩選

<details>

<summary><strong><code>adlt</code> ，安全(非必填)</strong></summary>

此參數用於控制搜尋結果的成人內容過濾設定，可指定下列值：

* `strict`：嚴格過濾成人內容
* `off`：完全停用過濾功能

**示例請求：**

查询  `q` : <mark style="color:blue;">pizza</mark>,`adlt`:<mark style="color:blue;">strict</mark>的示例

```sh
curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=bing_maps" \
 -d "q=pizza" \
 -d "json=1" \
 -d "adlt=strict"
```

</details>

如需進一步幫助，請透過 **<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/bing/bing-di-tu-api.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.
