> 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-hk/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="82">參數</th><th width="138">名稱</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="82">參數</th><th width="138">名稱</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="84">參數</th><th width="138">名稱</th><th width="281">作用</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="82">參數</th><th width="138">名稱</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="82">參數</th><th width="138">名稱</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="70">參數</th><th width="102">名稱</th><th width="300">作用</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>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://doc.thordata.com/doc/zh-hk/pa-qu/serp-api/serp-api-bing-cha-xun-can-shu.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
