Bing Maps API
SERP API Bing Query Parameters
including output options for parameters such as localization, geographical location, and pagination.
q ,Search Query(Required)
Define the search query for data crawling (default value: q=pizza). Any keywords in any language are supported.
Example Request:
Example with q:pizza parameter
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"Localization
setlang ,Language(Optional)
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 : pizza,setlang:eu
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"Geographical Location
cp GPS Coordinates(Optional)
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 : pizza,cp:40.7455096~-74.0083012
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"Pagination
first ,Result offset(Optional)
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 : pizza,first:10
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"count ,Results per page(Optional)
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 : pizza,count:10
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"Advanced Filters
place_id ,Place ID(Optional)
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 : pizza,place_id:1000956545321
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"For assistance, contact [email protected].
Last updated
Was this helpful?