# Bing Maps API

#### SERP API Bing Query Parameters

including output options for parameters such as localization, geographical location, and pagination.

<details>

<summary><strong><code>q</code> ,</strong>Search Query<strong>(Required)</strong></summary>

Define the search query for data crawling (default value: `q=pizza`). Any keywords in any language are supported.

**Example Request:**

Example with `q`:<mark style="color:blue;">pizza</mark> parameter

```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>

## Localization

<details>

<summary><code>setlang</code> <strong>,</strong>Language<strong>(Optional)</strong></summary>

This parameter defines the language to search in. It follows the format gb characters followed by ISO\_3166-1. (For example, United States, Germany, United Kingdom, etc.)

**Example Request:**

Example results for `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>

## Geographical Location

<details>

<summary><code>cp</code> GPS Coordinates<strong>(Optional)</strong></summary>

This parameter defines the GPS coordinates of the location you wish to apply q (query). It must be constructed in the following sequence:

latitude++This will form a string that looks like this: e.g. \~longitude

40.7455096\~-74.0083012

**Example Request:**

Example results for `q` : <mark style="color:blue;">pizza</mark>,`cp`:40.7455096\~-74.0083012

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

</details>

## Pagination

<details>

<summary><strong><code>first</code> ,</strong>Result offset<strong>(Optional)</strong></summary>

Sets the result offset (default: `1`). For example, `first=10` skips the first 9 results.

This parameter is used to control the offset of Organic Search results, with a default value of 1. For example, when `first=10`, the system will promote the 10th organic search result to the top position.

**Example Request:**

Example results for `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>Results per page<strong>(Optional)</strong></summary>

Number of results per page (range: `1`–`50`). Use with `first` for pagination.

The per-page parameter is used to control the number of search results displayed per page (minimum value: 1, maximum value: 50). The actual effective value will be affected by the `first` offset parameter.

**Example Request:**

Example results for `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>

## Advanced Filters

<details>

<summary><code>place_id</code> <strong>,</strong>Place ID<strong>(Optional)</strong></summary>

This parameter defines a unique reference to a place on the Bing map. Most places have a location ID, including businesses, landmarks, parks, and intersections. You can use our Bing map API and Bing local pack API to find place\_id.

place\_id can be used without any other optional parameters (including the q parameter).

**Example Request:**

Example results for `q` : <mark style="color:blue;">pizza</mark>,`place_id`:<mark style="color:blue;">1000956545321</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 "place_id=1000956545321"
```

</details>

**For assistance, contact <support@thordata.com>.**
