Bing
Learn how you can start scraping Bing.
With Web Scraper API, you can scrape Bing search engine and parse search results. Below is an overview of the supported scrapers and their respective source values.
Getting started
Create your API user credentials: Sign up for a free trial or purchase the product in the Oxylabs dashboard to create your API user credentials (USERNAME and PASSWORD).
Request samples
In the example below, we make a request to retrieve Bing search results for the search term adidas.
curl 'https://data.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
"source": "bing_search",
"query": "adidas"
}'import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'bing_search',
'query': 'adidas'
}
# Get response.
response = requests.request(
'POST',
'https://data.oxylabs.io/v1/queries',
auth=('USERNAME', 'PASSWORD'),
json=payload,
)
# Print prettified response to stdout.
pprint(response.json())We use the Push-Pull integration method in our examples. Submitting a job returns the job ID immediately, not the result. Once the job status is done, retrieve the results with GET https://data.oxylabs.io/v1/queries/{job_id}/results. See Push-Pull for checking the job status, callbacks and batch queries.
Optionally, you can include additional parameters such as geo_location, user_agent_type, parse, render and more to customize your scraping request. Read more.
Last updated
Was this helpful?