> For the complete documentation index, see [llms.txt](https://doc.thordata.com/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.thordata.com/doc/zh/pa-qu/serp-api/serp-api-bing-cha-xun-can-shu.md).

# SERP API Bing 查询参数

了解 Thordata 的 SERP API - Bing 搜索的查询参数。

**搜索词**\
示例：

```sh
curl -k "https://www.bing.com/search?q=pizza" --proxy scraping.thordata.com:30001 --proxy-user td-customer-serp_USERNAME:PASSWORD
```

<table><thead><tr><th width="74">参数</th><th width="120">名称</th><th>作用</th><th>参数值</th></tr></thead><tbody><tr><td>q</td><td>搜索词</td><td>搜索关键词</td><td>q=pizza</td></tr></tbody></table>

**本土化**\
用于指定搜索结果的语言和习惯、广告。示例：

```sh
curl -k "https://www.bing.com/search?q=pizza&cc=af&mkt=zh-hk" --proxy scraping.thordata.com:30001 --proxy-user td-customer-serp_USERNAME:PASSWORD
```

<table><thead><tr><th width="74">参数</th><th width="120">名称</th><th>作用</th><th>参数值</th></tr></thead><tbody><tr><td>cc</td><td>国家</td><td>结果地区（影响搜索结果），只设定国家，国家/地区代码（ISO 3166-1 alpha-2）</td><td>cc=US（美国），cc=CN（中国）..</td></tr><tr><td>mkt</td><td>语言</td><td>目标市场（影响搜索结果和广告），同时设定语言和国家；</td><td>mkt=en-US（美国），mkt=zh-CN（中国）...</td></tr></tbody></table>

**地理位置**\
用于用户想要搜索的编码位置，会更改搜索地理位置。您可以在此处下载包含所有可用值的文件。示例：

```sh
curl -k "https://www.bing.com/search?q=pizza&location=Antarctica&lat=73&lon=42" --proxy scraping.thordata.com:30001 --proxy-user td-customer-serp_USERNAME:PASSWORD
```

<table><thead><tr><th width="85">参数</th><th width="120">名称</th><th>作用</th><th>参数值</th></tr></thead><tbody><tr><td>location</td><td>地理位置</td><td>指定搜索结果的地理位置，应与 lat (纬度) 和 lon (经度) 参数一起使用。</td><td>location=Ecuador&#x26;lat=73&#x26;lon=42</td></tr></tbody></table>

**分页**\
用于定义结果偏移量（结果从选定值开始的偏移量）和搜索结果数。搜索结果数默认值为 10，最大值为 100。实际交付的数量可能少于请求的数量。示例：

```sh
curl -k "https://www.bing.com/search?q=pizza&first=10&count=100" --proxy scraping.thordata.com:30001 --proxy-user td-customer-serp_USERNAME:PASSWORD
```

<table><thead><tr><th width="74">参数</th><th width="120">名称</th><th>作用</th><th>参数值</th></tr></thead><tbody><tr><td>first</td><td>分页</td><td>指定搜索页数（ 偏移量 ）</td><td>first=10（第 2 页）</td></tr><tr><td>count</td><td>每页结果数</td><td>指定搜索结果每页结果数量</td><td>count=50（最大值100）</td></tr></tbody></table>

**安全性**\
用于决定搜索结果是否屏蔽成人内容。示例：

```sh
curl -k "https://www.bing.com/search?q=pizza&adlt=strict" --proxy scraping.thordata.com:30001 --proxy-user td-customer-serp_USERNAME:PASSWORD
```

<table><thead><tr><th width="74">参数</th><th width="120">名称</th><th>作用</th><th>参数值</th></tr></thead><tbody><tr><td>adlt</td><td>安全</td><td>开启/关闭成人内容过滤</td><td>adlt=strict（开启）<br>adlt=off（关闭）</td></tr></tbody></table>

**解析**\
Thordata 自定义的参数，允许返回解析后的 JSON 而不是原始 HTML。示例：

```sh
curl -k "https://www.bing.com/search?q=pizza&json=1" --proxy scraping.thordata.com:30001 --proxy-user td-customer-serp_USERNAME:PASSWORD
```

<table><thead><tr><th width="74">参数</th><th width="120">名称</th><th>作用</th><th>参数值</th></tr></thead><tbody><tr><td>json</td><td>解析</td><td>指定搜索关键词</td><td>无json值（返回HTML值）<br>json=1（返回JSON值）<br>json=2（返回JSON+HTML值）</td></tr></tbody></table>
