惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
The Blog of Author Tim Ferriss
A
About on SuperTechFans
N
Netflix TechBlog - Medium
阮一峰的网络日志
阮一峰的网络日志
H
Help Net Security
I
InfoQ
月光博客
月光博客
量子位
Blog — PlanetScale
Blog — PlanetScale
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Jina AI
Jina AI
Engineering at Meta
Engineering at Meta
G
Google Developers Blog
D
DataBreaches.Net
宝玉的分享
宝玉的分享
V
Visual Studio Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理

SerpApi

Getting Started with Jev: Building a Fact Checker with SerpApi Vessel 0.3: Ruby finally gets its Scrapy crawling framework How to scrape Google Play Store app reviews Scrape YouTube Channel Data with SerpApi How to scrape movie and TV results from the Google Play Store SerpApi Weekly Changelog: Sep 07 - 13, 2026 Introducing MCP Bundle Support for SerpApi SerpApi Weekly Changelog: Aug 31 - Sep 06, 2026 We Have Resolved the Google /goto URL Redirect Rollout How to scrape Zillow Reddit promised its users an open internet. Then it closed the door. SerpApi Weekly Changelog: August 24 - 30, 2026 Best web scraping tools in 2026 Google’s New /goto Redirect URLs: Resolution in Progress How to Scrape Walmart Reviews Results Understanding HTTP 429: Too Many Requests Google tried again. We’re moving to dismiss a second time. SerpApi Weekly Changelog: August 17 - 23, 2026 Introducing SerpApi's New Markdown Output SerpApi Surpasses 1.5 Million Activated User Accounts How a Lead Generation Company Scaled Outreach with SerpApi's Google Maps API SerpApi Weekly Changelog: August 10 - 16, 2026 How to scrape book results from the Google Play Store What is an API? Part 3: Dynamic Data Displays with D&D! We Filed an Amicus Brief in U.S. v. Google How to scrape Google Play Store game information SerpApi Weekly Changelog: August 03 - 09, 2026 Introducing SerpApi Search Tools: Real-Time Web Search for Python AI Agents Measuring World Cup Attention: What the data says about Vozinha SerpApi Weekly Changelog: July 27 - August 02, 2026
How to scrape Bing web search results
Corbin Davenport · 2026-06-19 · via SerpApi

Bing Web Search is the second most-popular search engine in the world, behind only Google. It can find pages across the internet, highlight trending topics, pull information from real-world locations, and much more. Bing's web index also powers the source links in Copilot, grounding data for the Foundry Agent Service in Azure, and other functionality across Microsoft products.

The Bing Search API from SerpApi gives you Bing's organic search results, inline advertisements, answer boxes, top stories, Copilot answers, and other features in a simple JSON format. SerpApi handles the proxy network, HTML parsing, captcha puzzles, and other challenges, so you can focus on your actual business or project.

Need a replacement for Microsoft's discontinued official APIs? Check out our migration guides for the Bing Search API, Bing Image Search API, and Bing News Search API.

Here's everything you can pull from Bing web searches with SerpApi:

  • Organic results: The main list of links on each search result page. Each result includes a title, external link, position number, and text snippet. Some results may also have additional sublinks and other data.
  • Ad results: The advertisements on the search page, if any exist. Each result includes the position, title, tracking link, description, and other information.
  • Carousel results: The carousel results block and its contents, if one exists (usually near the top of the page).
  • Top stories: News articles that appear at the top of certain queries, including each result's title, position, text snippet, external link, publishing time, and other information.
  • Copilot answer: The AI-generated answer from Microsoft Copilot, if one exists. If you only want Copilot responses, check out the Bing Copilot API.
  • Events results: Upcoming events based on the search query, with titles and calendar dates, if the events block is present on the page.
  • Inline images: If any image results are included in the web search, you can access the titles, thumbnail URL, source, and Bing link for each result.
  • Shopping results: Any shopping results in the page, which may include a product's title, external link, seller, price, installment plans, and other information.
  • Inline videos: Results for videos, including each item's title, thumbnail image, view count, publish date, channel/creator, and other information.
  • Knowledge graph: The information box that often appears for searches related to people and places.
  • Local pack: Location results that appear for searches like "grocery stores near me." Each result may include a title, address, rating, opening hours, and other information.
  • Recipes: The list of recipes that may appear on some searches, including the title and external link for each result.
Bing search for "france" with JSON results
SerpApi fetches and parses Bing Image Search results as structured JSON.

The results may also include Bing's suggested searches and refined searches for the query, provided as text strings and Bing URLs.

Getting started with SerpApi

Before getting started with the Bing Search API, you need a free SerpApi account. That also includes access to other engines, like the Google Search API, DuckDuckGo Search API, and Yahoo Search API. You can upgrade to a paid account later if you need more search capacity, faster speeds, or other features.

First, you need to create an account and verify your email and other details. After that, get the API key from your account dashboard.

Make sure to store your API key in a safe location if you are sharing or publishing your code. If the key is leaked or stolen, you can make a new one from the SerpApi account dashboard.

Install the SerpApi library (optional)

You can use SerpApi's official libraries for Python, JavaScript, Ruby, Java, and other languages. They provide a simple wrapper around the API requests.

However, the libraries are not required. You can still make API calls with cURL, fetch() in Node.js, or anything else that can send GET requests and process a JSON response.

Review the Bing Search API documentation

Each API at SerpApi has extensive documentation that covers all the supported parameters and filters, code examples for popular languages, and example JSON responses. This post covers some of the basic usage for the Bing Search API, and you can find everything else at the documentation page.

Bing Search Engine Results API - SerpApi

Scrape Bing search results in JSON format automatically using custom parameters. Search for keywords by location, date and more with SerpApi.

SerpApiSerpApi

The only required parameter is q for the search query, but you can optionally specify the search region, pagination, search filters, and other settings.

How to scrape Bing Web Search results

If you have your API key, you're ready to start pulling data from Bing searches. The results will be identical across all libraries and GET requests, so use whichever method you want.

GET request

Here's how you can search for "Oregon" from the US region, using a regular GET request in any HTTP client:

https://serpapi.com/search.json?engine=bing&q=oregon&mkt=en-us&api_key=YOUR_KEY_GOES_HERE

This is the same search, but restricted to results from the English Wikipedia, using Bing's site search filter:

https://serpapi.com/search.json?engine=bing&q=oregon+site%3Aen.wikipedia.org&mkt=en-us&api_key=API_KEY_GOES_HERE

SerpApi's JSON Restrictor feature can be used to trim the API response to specific values. This is a search for "California" that only returns the title and external link for each result, with all other data excluded:

https://serpapi.com/search.json?engine=bing&q=california&mkt=en-us&json_restrictor=organic_results[]{title,link}&api_key=API_KEY_GOES_HERE

This can be useful if you need more efficient parsing, like when using an LLM with a limited context window.

Python

This searches for "Maine" with Bing and the official SerpApi Python library, then display the title and external link for each result:

import serpapi

client = serpapi.Client(api_key=YOUR_KEY_GOES_HERE)
response = client.search({
  "engine": "bing",
  "q": "maine",
  "mkt": "en-us"
})

for item in response["organic_results"]:
  print(f"{item['title']} - {item['link']}\n")

This will print all data for the Answer Box, if one was provided by Bing:

import serpapi

client = serpapi.Client(api_key=YOUR_KEY_GOES_HERE)
response = client.search({
  "engine": "bing",
  "q": "maine",
  "mkt": "en-us",
})

if "answer_box" in response:
    print(response["answer_box"])
else:
    print("No answer box!")

Ruby

Here's how you can search for "Florida" in the US region, with the SerpApi Ruby gem, then display the title and link for each result:

require "serpapi"

client = SerpApi::Client.new(
    engine: "bing",
    q: "florida",
    mkt: "en-us",
    api_key: YOUR_KEY_GOES_HERE
)

for result in client.search[:organic_results] do
    print "#{result[:title]} - #{result[:link]}\n\n"
end

This example prints each related search for the original "Florida" query, if Bing provides them:

require "serpapi"

client = SerpApi::Client.new(
    engine: "bing",
    q: "florida",
    mkt: "en-us",
    api_key: YOUR_KEY_GOES_HERE
)

if client.search.dig(:related_searches)
    for result in client.search[:related_searches] do
        print "#{result[:title]} - #{result[:link]}\n\n"
    end
else
    puts "No related searches!"
end

JavaScript and Node.js

Here's how you can use the SerpApi JavaScript library to search for "North Carolina," then display the title and external link for each result:

import { getJson } from 'serpapi';

const search = await getJson({
    engine: "bing",
    q: "north carolina",
    mkt: "en-us",
    api_key: YOUR_KEY_GOES_HERE
});

for (const item in search?.organic_results) {
    let thisItem = search.organic_results[item];
    console.log(`${thisItem.title} - ${thisItem.link}\n`);
}

This displays all events results for "Dallas concerts," if Bing provides them:

import { getJson } from 'serpapi';

const search = await getJson({
    engine: "bing",
    q: "dallas concerts",
    mkt: "en-us",
    api_key: YOUR_KEY_GOES_HERE
});

if (search?.events_results) {
    for (const item in search.events_results) {
        let thisItem = search.events_results[item];
        console.log(`${thisItem.title} - ${thisItem.location} - ${thisItem.link}\n`);
    }
} else {
    console.log("No events found!");
}

cURL

Here's how you can search for "Nevada" in the US region from cURL:

curl --get https://serpapi.com/search \
 -d api_key="YOUR_KEY_GOES_HERE" \
 -d engine="bing" \
 -d q="nevada" \
 -d mkt="en-us"

Other languages and no-code solutions

You can still use the API directly with GET requests, even if there isn't an official SerpApi integration for your preferred environment or language. SerpApi also works with Make.com, N8N, and other tools.

Conclusion

Bing Web Search can be a great resource for market analysis, web archival, SEO research, and many other use cases. With the Bing Search API from SerpApi, you can pull all those results into any automation or programming language.

If results from Bing aren't working well enough, SerpApi also offers a Google Search API, DuckDuckGo Search API, Yahoo Search API, Yandex Search API, and other engines. You can access them with the same account and search credits as Bing, and even run the same search across multiple engines to get more diverse results.

If you need help using SerpApi, please contact us.