# SERP API Bing Query Parameters

Learn about Thordata’s SERP API - Bing search query parameters.

**Search Term**\
Example:

```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="110">Parameter</th><th width="160">Name</th><th width="230">Function</th><th>Parameter Value</th></tr></thead><tbody><tr><td>q</td><td>Search Term</td><td>Specify search keywords</td><td>q=pizza</td></tr></tbody></table>

**Localization**\
Used to specify the language and habits of search results, as well as advertisements. Example:

```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="110">Parameter</th><th width="115">Name</th><th width="312">Function</th><th>Parameter Value</th></tr></thead><tbody><tr><td>cc</td><td>Country</td><td>Result region (affects search results), set only the country, country/region code (ISO 3166-1 alpha-2).</td><td>cc=US，cc=CN..</td></tr><tr><td>mkt</td><td>Language</td><td>Target market (affects search results and ads), set both language and country.</td><td>mkt=en-US，mkt=zh-CN...</td></tr></tbody></table>

**Geolocation**\
Used to specify the encoded location for the search, which will change the geographical location of the search. You can download a file containing all available values here. Example:\
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="110">Parameter</th><th width="116">Name</th><th width="306">Function</th><th>Parameter Value</th></tr></thead><tbody><tr><td>location</td><td>Location</td><td>Specify the geographic location of the search results, to be used together with the lat (latitude) and lon (longitude) parameters.</td><td>location=Ecuador&#x26;lat=73&#x26;lon=42</td></tr></tbody></table>

**Pagination**\
Used to define the result offset (the offset from which results start) and the number of search results. The default number of search results is 10, with a maximum of 100. The actual number of results returned may be less than the requested number. Example:

```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="110">Parameter</th><th width="160">Name</th><th width="248">Function</th><th>Parameter Value</th></tr></thead><tbody><tr><td>first</td><td>Pagination</td><td>Specify search page number (offset)</td><td>first=10 (Page 2)</td></tr><tr><td>count</td><td>Results per page</td><td>Specify the number of results per search page</td><td>count=50 (Maximum value 100)</td></tr></tbody></table>

**Safety**\
Used to decide whether search results should block adult content. Example:

```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="110">Parameter</th><th width="160">Name</th><th width="230">Function</th><th>Parameter Value</th></tr></thead><tbody><tr><td>adlt</td><td>Safe</td><td>nable/Disable Adult Content Filtering</td><td>adlt=strict (Enable)<br>adlt=off (Disable)</td></tr></tbody></table>

**Parsing**\
A custom Thordata parameter that allows the return of parsed JSON instead of raw HTML. Example:

```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="110">Parameter</th><th width="160">Name</th><th width="207">Function</th><th>Parameter Value</th></tr></thead><tbody><tr><td>json</td><td>Parsing</td><td>Specify output format</td><td>No json value (returns HTML)<br>json=1 (returns JSON)<br>json=2 (returns JSON + HTML)</td></tr></tbody></table>


---

# 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/scraping/serp-api/serp-api-bing-query-parameters.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.
