# Bing

**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 https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer Token" -d "{\"url\": \"https://www.bing.com/search?q=pizza^&json=1\"}"
```

</details>

## 本土化

<details>

<summary><strong><code>cc</code> ，国家(非必填)</strong></summary>

该参数定义了爬取时可以指定搜索结果按照国家/地区用户的习惯展示。他是一个由两个字母组成的国家/地区代码（例如：`us`, `ru`, `uk`）。

**示例请求：**

查询 `q` : <mark style="color:blue;">pizza</mark>,`cc`:<mark style="color:blue;">jp</mark>的示例结果

```sh
curl https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer Token" -d "{\"url\": \"https://www.bing.com/search?q=pizza^&json=1^&cc=jp\"}"
```

</details>

<details>

<summary><strong><code>mkt</code> ，语言(非必填)</strong></summary>

该参数定义了爬取时搜索结果的界面显示语言。该参数采用 <"语言代码">-<"国家/地区代码"> 的形式。例如，`en-US`。该字符串不区分大小写。

**示例请求：**

查询  `q` : <mark style="color:blue;">pizza</mark>,`mkt`:<mark style="color:blue;">fr-fr</mark>的示例结果

```sh
curl https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer Token" -d "{\"url\": \"https://www.bing.com/search?q=pizza^&json=1^&mkt=fr-fr\"}"
```

</details>

## 地理位置

<details>

<summary><strong><code>location</code> ，位置(非必填)</strong></summary>

该参数定义了爬取时的起始地理位置，应与 `lat`（纬度）和 `lon`（经度）参数一起使用。

**示例请求：**

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

```sh
curl https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer Token" -d "{\"url\": \"https://www.bing.com/search?q=pizza^&json=1^&location=Tokyo\"}"
```

</details>

<details>

<summary><strong><code>lat</code>，纬度(非必填)</strong></summary>

该参数定义了爬取时起始地理位置的 GPS 纬度。与 `location`（地理位置）和 `lat`（经度）参数一起使用。

**示例请求：**

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

```sh
curl https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer Token" -d "{\"url\": \"https://www.bing.com/search?q=pizza^&json=1^&lat=40.7128\"}"
```

</details>

<details>

<summary><strong><code>lon</code> ，经度(非必填)</strong></summary>

该参数定义了爬取时起始地理位置的 GPS 经度。与 `location`（地理位置）和 `lon`（纬度）参数一起使用。

**示例请求：**

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

```sh
curl https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer Token" -d "{\"url\": \"https://www.bing.com/search?q=pizza^&json=1^&lon=-74.0060\"}"
```

</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 https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer Token" -d "{\"url\": \"https://www.bing.com/search?q=pizza^&json=1^&first=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 https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer Token" -d "{\"url\": \"https://www.bing.com/search?q=pizza^&json=1^&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 https://scraperapi.thordata.com/request -H "Content-Type: application/json" -H "Authorization: Bearer Token" -d "{\"url\": \"https://www.bing.com/search?q=pizza^&json=1^&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/pa-qu/serp-api/cha-xun-can-shu/bing.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.
