Bing

There are two approaches to retrieving data from Bing using our SERP Scraper API. You can give us a full URL or pass parameters via the specifically built data source - Search.

Overview

Below is a quick overview of all the available data source values we support with Bing.

You can always write your own parsing instructions with Custom Parser feature and get structured data.

You can jump to your preferred Bing page type by selecting its name on the right hand side menu. Each page contains the parameter table as well as code examples to help you get started with your query.

URL

The bing source is designed to retrieve the content of direct URLs of various Bing pages. Instead of sending multiple parameters, you can provide us with a direct URL for the required Bing page. We do not strip any parameters or alter your URLs in any other way.

Query parameters

- required parameter

Code examples

In this example, we make a request to retrieve a result for the provided URL.

{
    "source": "bing",
    "url": "https://www.bing.com/search?q=nike"
}

The example above uses the Realtime integration method. If you would like to use some other integration method in your query (e.g. Push-Pull or Proxy Endpoint), refer to the integration methods section.

The bing_search source is designed to retrieve Bing Search results pages (SERPs).

To scrape AI-generated search results from Bing, use the render parameter. Check out the code example below.

Query parameters

- required parameter

Code examples

In the example below, we make a request to retrieve Bing search results for the search term adidas. The search will start from the 11th page and retrieve 10 pages of results, which will be delivered in a structured format.

{
    "source": "bing_search",
    "query": "adidas", 
    "parse": true,
    "start_page": 11, 
    "pages": 10
}

In the following example, we send a request to retrieve AI-generated Bing search results for the search term best seo tools.

{
    "source": "bing_search", 
    "query": "best seo tools", 
    "render": "html"
}

The examples above use the Realtime integration method. If you would like to use some other integration method in your query (e.g. Push-Pull or Proxy Endpoint), refer to the integration methods section.

Parameter values

Locale

Using the locale parameter will allow you to change Bing search page web interface language (not results).

For example, if you use the domain com and locale parameter de-DE, the results will still be American, but the Accept-Language header value will be set to de-DE,de;q=0.8. This would imitate a person from US searching in com domain, who has the UI of his browser set to German language.

If you don't use this parameter, we will set 'Accept-Language' parameter to match the domain (i.e. en-US for com).

Download the full list of locale values in JSON format below.

Geo_location

Bing supports a few geo_location parameter value formats.

  • City-level location. It is very straightforward. Just pass a city-level location in the City,State,Country format. Example: "geo_location": "New York,New York,United States".

  • State-level location. Strip the first part of a city-level location and pass a geo_location value in the "State,Country" format. Example: "geo_location": "California,United States".

  • Country-level location. To get results localized for the geographical center point of a country, pass an official country name. Example: "geo_location": "United Kingdom".

  • Coordinate-level location. To get hyperlocal search results (beneficial for searches such as "restaurants near me"), you can pass latitude, longitude, and radius values. The following example passes the coordinates of Space Needle in Seattle, WA: "geo_location": "lat: 47.6205, lng: -122.3493, rad: 25000".

Last updated