[Home](https://scrapfly.io/)/[Scrapers](https://scrapfly.io/scrapers)/Bing

Search results · related searches · ads

# // Bing Scraper API

Get Bing organic results and related searches as clean JSON, and a results page's ads with the search results extraction model. Send each search through a residential proxy in the country you pick, and read the results.

- **Clone it and run it.** An open-source Bing scraper for search results and related searches, tested against live Bing every night.
- **Every result's rank, site and date.** Each organic result comes with its position, title and link, the site name Bing shows, its snippet, and its date when Bing shows one.
 
 [Get free API key](https://scrapfly.io/register) [View GitHub scraper](https://github.com/scrapfly/scrapfly-scrapers/tree/main/bing-scraper) [Read Unblocker docs](https://scrapfly.io/docs/scrape-api/unblocker) 

1,000 free credits. No credit card required.

 [  ](https://scrapeway.com/web-scraping-api/scrapfly) [  ](https://www.capterra.com/p/212653/Scrapfly/reviews/)  

 4.8/5 from 248 reviews 

 

 

 

 

 Bing search · illustration

 

 

 Search results JSON**Output**

```
[
  {
    <span class="c-str">"position"</span>: <span class="c-num">1</span>,
    <span class="c-str">"origin"</span>: <span class="c-str">"scrapfly.io"</span>,
    <span class="c-str">"date"</span>: <span class="c-str">"26 Sep 2025"</span>
  },
  {
    <span class="c-str">"position"</span>: <span class="c-num">4</span>,
    <span class="c-str">"origin"</span>: <span class="c-str">"fuelyourdigital.com"</span>,
    <span class="c-str">"date"</span>: <span class="c-str">"10 Dec 2024"</span>
  }
]
```

Sample output of the open-source scraper[See the request ↓](#implementation)

  

What you can scrape from Bing

Four kinds of Bing search data you can scrape with Scrapfly, no Microsoft account required.

 

## // Scrape Bing search results

Each organic result of a results page, with its position, title, link, the site name Bing shows, its snippet and its date when Bing shows one. The link is a `bing.com/ck/a` redirect: the destination sits in its `u` parameter, URL-safe base64 after an `a1` prefix.

- position
- title
- url
- origin
- description
- date

  

## // Scrape every page of a Bing search

The scraper fetches the next pages with `first=10`, `first=20` and so on, concurrently, and numbers the results across pages. A page Bing answers with "There are no results for" and no result list is skipped, or stops the run when it is the first one, and results can repeat from one page to the next.

- max\_pages
- first
- position

  

## // Scrape Bing related searches

The queries Bing suggests in its related searches box, a source of keyword ideas around a seed term: the sample run got 10 for *web scraping emails*, from "extract email from website free" to "online email extractor from website". The scraper renders the page as Windows, since Bing leaves the box out of the page it sends to Linux browsers.

- scrape\_keywords
- render\_js
- os=win11

  

## // Scrape Bing ads

The search results extraction model returns the ads of a results page next to its organic results, each with its title, URL, snippet and display URL. The open-source scraper does not parse ads: add the model to the request instead.

- ads
- title
- url
- snippet
- displayUrl

  



Reliability

## // Get Bing's full results page

Bing sends a lighter page without the related searches box to Linux browsers, and can answer a search with "There are no results for" and no result list. The open-source scraper sends every search with the Unblocker on, through residential proxies, and renders the page as Windows when it wants the related searches.

`unblocker=true`

Scrapfly's [Unblocker](https://scrapfly.io/products/unblocker) on every Bing search, as in the scraper's settings.



`proxy_pool=public_residential_pool`

Residential proxies, with `country=GB` in the scraper.



`os=win11`

With `render_js=true`, the browser presents itself as Windows, so the page Bing sends has the related searches box.



 



Choose your tools

## // Scrapfly products for Bing scraping

Start with the Web Scraping API, Unblocker and residential proxies. Add the search results extraction model, screenshots, a browser session or a URL-list crawl as your workflow needs them. One API key covers all five products.

 

### Web Scraping API for Bing search

Send a Bing search URL with the Unblocker on, through residential proxies in the country you choose, and get the results page back as HTML.

The scraper reads the organic results from the HTML Bing sends, without rendering the page. Render it as Windows when you want the related searches box.

```
GET /scrape?url=https://www.bing.com/search?q=web+scraping+emails&unblocker=true&proxy_pool=public_residential_pool&country=GB
```

 [Explore Web Scraping API →](https://scrapfly.io/products/web-scraping-api)  

### Data Extraction API for Bing results

Set `extraction_model` to `search_engine_results` to get the results page back as structured JSON, with no parser to write.

The schema has the query, the total result count, each organic result's position, title, URL, snippet, display URL and date, the page's ads and related searches, and the links to the next pages.

```
GET /scrape?url=https://www.bing.com/search?q=web+scraping+emails&unblocker=true&proxy_pool=public_residential_pool&country=GB&extraction_model=search_engine_results
```

 [Explore Data Extraction API →](https://scrapfly.io/products/extraction-api)  

### Screenshot API for Bing results pages

A full-page capture of the results page of a query.

Keep a dated visual record of the rankings next to your JSON.

```
GET /screenshot?url=https://www.bing.com/search?q=web+scraping+emails&country=gb&capture=fullpage&format=png
```

 [Explore Screenshot API →](https://scrapfly.io/products/screenshot-api)  

### Cloud Browser API for Bing sessions

Connect Playwright or Puppeteer to a hosted Chromium on a residential IP in the country you choose.

Ask for a Windows fingerprint, as the scraper does for the related searches box, then open a search URL and read the rendered page.

```
chromium.connect_over_cdp("wss://browser.scrapfly.io?api_key=KEY&proxy_pool=residential&country=gb&os=windows")
```

 [Explore Cloud Browser API →](https://scrapfly.io/products/cloud-browser-api)  

### Crawler API for lists of Bing URLs

Submit search URLs for many queries, or several pages of one query, as one bounded job, with the [Unblocker](https://scrapfly.io/products/unblocker) (formerly ASP) and residential proxies applied to every URL.

Ask for HTML output and parse the results after the job finishes.

- url\_list
- page\_limit
- unblocker
- proxy\_pool
- country
- content\_formats

 [Explore Crawler API →](https://scrapfly.io/products/crawler-api)  



One request

## // Fetch a Bing results page and read its results

The JSON at the top is cut from the sample output the open-source scraper saved for *web scraping emails*, `results/serps.json`: results 1 and 4, three fields of each. This code is a cut-down version of the scraper's request and parser for one results page: Unblocker on, residential proxies, from the UK.

Install `scrapfly-sdk` and `parsel`, then replace the key below. Change the query to search your own terms.

**Prefer the full scraper?** The open-source [Bing scraper on GitHub](https://github.com/scrapfly/scrapfly-scrapers/tree/main/bing-scraper) collects the results of several pages of a search and its related searches, in Python 3.12. It runs against live Bing every night. Clone it, set `SCRAPFLY_KEY`, and run `poetry run python run.py`.

 

  Python · scrapfly-sdkscrape + parse

```
<span class="c-key">import</span> json
<span class="c-key">from</span> urllib.parse <span class="c-key">import</span> urlencode
<span class="c-key">from</span> scrapfly <span class="c-key">import</span> ScrapeConfig, ScrapflyClient

client = ScrapflyClient(key=<span class="c-str">"YOUR_SCRAPFLY_KEY"</span>)
url = <span class="c-str">"https://www.bing.com/search?"</span> + urlencode(
    {<span class="c-str">"q"</span>: <span class="c-str">"web scraping emails"</span>})
result = client.scrape(ScrapeConfig(
    url,
    unblocker=<span class="c-key">True</span>,  <span class="c-com"># previously asp</span>
    proxy_pool=<span class="c-str">"public_residential_pool"</span>, country=<span class="c-str">"GB"</span>,
))
serps = []
<span class="c-key">for</span> position, li <span class="c-key">in</span> enumerate(
        result.selector.xpath(<span class="c-str">"//li[@class='b_algo']"</span>), <span class="c-num">1</span>):
    serps.append({
        <span class="c-str">"position"</span>: position,
        <span class="c-str">"title"</span>: <span class="c-str">""</span>.join(li.xpath(<span class="c-str">".//h2/a//text()"</span>).getall()),
        <span class="c-str">"url"</span>: li.xpath(<span class="c-str">".//h2/a/@href"</span>).get(),
        <span class="c-str">"origin"</span>: li.xpath(<span class="c-str">".//div[@class='tptt']/text()"</span>).get(),
        <span class="c-str">"description"</span>: li.xpath(<span class="c-str">"normalize-space(.//div/p)"</span>).get(),
        <span class="c-str">"date"</span>: li.xpath(<span class="c-str">".//span[@class='news_dt']/text()"</span>).get(),
    })
print(json.dumps(serps, indent=<span class="c-num">2</span>, ensure_ascii=<span class="c-key">False</span>))
```

 

 



What the data is used for

## // Common Bing scraping use cases

### Bing rank tracking

Record where your pages and your competitors' pages rank for the queries you track.



### Country-by-country SERP checks

Run the same query from each country you sell in and compare the results.



### Keyword research

Expand a seed list with the related searches Bing suggests for each term.



### Paid search monitoring

See which ads show for your keywords and what they say, from the extraction model's ads list.



### SERP snapshots for reporting

Keep dated screenshots of a results page next to the ranking data.



### Search results for AI agents

Feed Bing results to an agent or a RAG pipeline, now that Microsoft has retired the Bing Search APIs.



 



Common questions

## // Bing scraping FAQ

 Is scraping Bing legal?

There is no universal answer. Legality depends on your jurisdiction, the data, the access method and how you use the result. Keep the workflow to public results pages, stay signed out, review Microsoft's terms of use, and get legal advice for commercial use.

 Does Bing have a search API?

Not any more. Microsoft retired the Bing Search APIs on August 11, 2025 and points its customers to Grounding with Bing Search, which lets Azure AI Agents use real-time public web data when they generate answers. These requests read Bing's public results pages, so you need a Scrapfly API key, not an Azure subscription.

 Why do Bing result links point to bing.com?

Bing can wrap a result's link in a `bing.com/ck/a` redirect, as it did for all 30 results of the scraper's sample run. The destination is in the link's `u` parameter: drop its `a1` prefix and decode the rest as URL-safe base64. The `origin` field keeps the site name Bing shows next to the result.

 Why is the related searches box missing?

Bing leaves it out of the lighter page it sends to Linux browsers, and does not show it for every query. The scraper renders the page in a browser that presents itself as Windows, with `render_js=true` and `os=win11`, and returns an empty list when the box is not there.

 Can I scrape Bing from another country?

Yes. Set `country` to the proxy country you want, among 75+ countries: the scraper searches from the UK with `country=GB`. With the Unblocker on, the country you set is kept unless the website refuses visitors from it, and the country that served the request is in the response, under `context.proxy.country`.

 How do I get more than the first page of results?

Add `first=10` to the search URL for the second page and `first=20` for the third, as the scraper does: it reads `first` as the number of results before the page and numbers the results from there. Results can repeat from one page to the next: on the sample run, 8 of the 10 results of the third page had already appeared on the first two, so deduplicate on the decoded destination URL. The scraper skips a later page that Bing answers with "There are no results for" and no result list.

 How much does scraping Bing cost?

A Bing results page fetched as the scraper fetches it, with Unblocker and residential proxies, costs 25 credits, or 30 when the request renders JavaScript, as the related searches request does. The Unblocker can also turn on a browser for a page that needs one. The search results extraction model adds 5 credits, and 5 more for each 500 KB of page past the first 500 KB. The Free plan includes 1,000 credits a month.

 What are the rate limits when scraping Bing?

Your maximum parallelism is the concurrency quota of your plan, from 5 requests at once on the Free plan to 100 on Enterprise, or a lower limit set on the project. Each request counts against it while it is in flight.

 



Start with one request

## Send the query. Read the results.

Web Scraping API with Unblocker and residential proxies, one call per Bing search URL.

Proxies across 75+ countries

 [Bing scraper on GitHub](https://github.com/scrapfly/scrapfly-scrapers/tree/main/bing-scraper) [How to scrape Bing search](https://scrapfly.io/blog/posts/how-to-scrape-bing-search-using-python) [All scraper pages](https://scrapfly.io/scrapers) 

 

 [Get free API key](https://scrapfly.io/register) [Read the docs](https://scrapfly.io/docs/scrape-api/unblocker)