Bing Search

Web Scraping API Bing Search Target

The bing_search target is built to obtain Bing Search results.

📘

Useful Links

  • This target is available with Web API Advanced plans.
  • Set the headless parameter to html to scrape AI-generated search results from Bing.
  • Real-time and Asynchronous integration methods are available for this template
  • Batch requests are also supported.
❗️

Bing has removed support for the limit (count in URL) parameter. For this reason only "limit"="10" is supported for now. No changes are required, requests will work, just with limit modifications applied.


Input Parameters

Request parameters available for Bing Search target:

Parameter

Type

Required

Description

target

string

Target type must be set to bing_search

query

string

Search query

headless

string

html value enables JavaScript rendering. Read more. png value enables screenshot response. Read more.

parse

boolean

Automatically parses results when set to true. Default value is false.

geo

string

Set the country to use when submitting the query. Full list of locations available for the Advanced plan can be found here.

locale

string

Set the value to change your Bing search page web interface language.

domain

string

Specify top-level domain.

device_type

string

Specify device type and browser. Read more.

page_from

string

Customize the starting page number within the range of 1 to 100. Default value is 1.

limit

string

Retrieve a specified number of search results. Default value is 10.

xhr

boolean

Set to true to retrieve a list of XHR and fetch requests. Read more.
Default value is false.

markdown

boolean

Set to true to receive a Markdown response. Read more.
Default value is false.

Request Examples

curl --request 'POST' \
        --url 'https://scraper-api.decodo.com/v2/scrape' \
        --header 'Accept: application/json' \
        --header 'Authorization: Basic TOKEN VALUE' \ // update with your authorization token
        --header 'Content-Type: application/json' \
        --data '
    {
      "target": "bing_search",
      "query": "pizza",
      "page_from": "1",
      "limit": "10",
      "parse": true
    }
'

const scrape = async() => {
  const response = await fetch("https://scraper-api.decodo.com/v2/scrape", {
    method: "POST",
    body: JSON.stringify({
      "target": "bing_search",
      "query": "pizza",
      "page_from": "1",
      "limit": "10",
      "parse": true
    }),
    headers: {
      "Content-Type": "application/json",
      "Authorization": "Basic TOKEN VALUE" // update with your authorization token
    },
  }).catch(error => console.log(error));

  console.log(await response.json())
}

scrape()
import requests
  
url = "https://scraper-api.decodo.com/v2/scrape"
  
payload = {
      "target": "bing_search",
      "query": "pizza",
      "page_from": "1",
      "limit": "10",
      "parse": True
}
  
headers = {
    "accept": "application/json",
    "content-type": "application/json",
    "authorization": "Basic TOKEN VALUE" # update with your authorization token
}
  
response = requests.post(url, json=payload, headers=headers)
  
print(response.text)

Output

Descriptions for fields in the parsed JSON results section are provided in the table below. Keep in mind that the amount of fields can vary according to the provided search query.

Results keyDescription
urlURL to the Bing Search page.
pageThe page number.
resultsA dictionary of paid and organic search results with their detailed information.
Response Example
{
    "results": {
        "url": "https://www.bing.com/search?q=pizza",
        "page": 1,
        "results": {
            "paid": [
                {
                    "pos": 1,
                    "url": "https://www.bing.com/aclk?ld=e8yAlmSe4n35n2tC2Qt-_6TTVUCUwGIIiVZ8axtmjIpepeqgM6EZ1tVUgq0LwjCQ-AYoZoSOsr-kbLybcvzDz_aKA1DShoUqlXH2AsZ7-BAzpd-TJ-ElJp6AI64pMxYtLBVF9F32vYnWc8SAmFhg4vWsoE043OOTHFeHQQqxqbFyKGO-tSgKVob0rxMZypS6_tjU18x0Rtz5NGfvFGS3yifPuJoLM&u=aHR0cHMlM2ElMmYlMmZ3d3cucGFwYWpvaG5zLmNvLnVrJTJmJTNmZ2NsaWQlM2Q4Mjg2ODZhNjY0MWIxNzhkMzk3YWVmYmJiMzU1NzM5MCUyNmdjbHNyYyUzZDNwLmRzJTI2JTI2Y3JlYXRpdmUlM2QlMjZrZXl3b3JkJTNkcGl6emElMjZtYXRjaHR5cGUlM2RlJTI2bmV0d29yayUzZG8lMjZkZXZpY2UlM2RjJTI2bXNjbGtpZCUzZDgyODY4NmE2NjQxYjE3OGQzOTdhZWZiYmIzNTU3MzkwJTI2dXRtX3NvdXJjZSUzZGJpbmclMjZ1dG1fbWVkaXVtJTNkY3BjJTI2dXRtX2NhbXBhaWduJTNkU0dNLU1TLVMtR0VORVJJQyUyNnV0bV90ZXJtJTNkcGl6emElMjZ1dG1fY29udGVudCUzZFNHTS1NUy1TLUdFTkVSSUMtUElaWkE&rlid=828686a6641b178d397aefbbb3557390",
                    "desc": "Get 2 tasty sides for £12 with your order from Papa Johns. Pizzas available from just £8. Less cooking, more giving. Order the pizza you deserve this Christmas.",
                    "title": "Medium Pizzas for £12 | Pizza | Quality Pizza Every Time",
                    "url_shown": "www.papajohns.co.uk",
                    "pos_overall": 6
                }
            ],
            "organic": [
                {
                    "pos": 1,
                    "url": "https://www.dominos.co.in/",
                    "desc": "Find a Domino’s Pizza restaurant near you. FIND DOMINO'S STORE. Birthday Party. Celebrate the joy of birthday with Fresh & Hot pizzas. BOOK NOW. Catering. Live Domino's Kitchen for …",
                    "title": "Domino’s Pizza – Order Online | Get 2 Regular Pizza @99 Each",
                    "url_shown": "https://www.dominos.co.in",
                    "pos_overall": 1
                },
                {
                    "pos": 2,
                    "url": "https://www.pizzahut.co.in/",
                    "desc": "Enter your address to see your local deals, coupons and offers. Order a delicious pizza on the go, anywhere, anytime. Pizza Hut is happy to assist you with your home delivery. Every time you …",
                    "title": "Order Pizza Online - Delivery and Takeaway",
                    "url_shown": "https://www.pizzahut.co.in",
                    "pos_overall": 2
                },
                {
                    "pos": 3,
                    "url": "https://lapinozpizza.in/",
                    "desc": "Made from the finest quality ingredients, to give you an authentic Italian taste, every single time. Our pizza dough is mixed on demand, so that …",
                    "title": "La Pinoz Pizza - Order Pizza Online",
                    "url_shown": "https://lapinozpizza.in",
                    "pos_overall": 3
                },
                {
                    "pos": 4,
                    "url": "https://pizzaexpress.in/restaurant/cp_67/",
                    "desc": "Enjoy all your favourites delivered to your door via Swiggy or Zomato. The home of the famous authentic Romana pizza. Made the Roman way for bigger flavour.",
                    "title": "CP67 Mall, Mohali – Pizza Express",
                    "url_shown": "https://pizzaexpress.in › restaurant",
                    "pos_overall": 4
                },
                {
                    "pos": 5,
                    "url": "https://yappe.in/punjab/sahibzada-ajit-singh-nagar/pizza-hut/954844",
                    "desc": "Pizza Hut is a pizza restaurant, pizza delivery and pizza takeaway located in Sahibzada Ajit Singh Nagar, Punjab. The average rating of this place is 4.10 out of 5 stars based on 1242 reviews.",
                    "title": "Pizza Hut - Pizza restaurant - Sahibzada Ajit Singh Nagar - Punjab ...",
                    "url_shown": "https://yappe.in › punjab › sahibzada-ajit-singh-nagar › pizza-hut",
                    "pos_overall": 5
                }
            ]
        },
        "parse_status_code": 12000
    },
    "errors": [],
    "status_code": 12000,
    "task_id": "7396920639270963201"
}

Support

Still can't find an answer? Want to say hi? We take pride in our 24/7 customer support. Alternatively, you can reach us via our support email at [email protected].

Feedback

Something's missing? Request an article!
Got feedback? Let us know how we're doing and what can be improved.