Bing is retiring the official Bing News Search API on 11th August 2025 (or has already retired it depending on when you're reading this). If you're looking for a replacement, SerpApi provides Bing News API with similar functionality to Bing's News Search API.
For those unfamiliar with SerpApi, SerpApi provides a comprehensive suite of search engine APIs, including a powerful scraper which scrapes real-time data directly from the Bing News page, and you can easily integrate with it to continue using Bing's news results in your service.
In this blog post, I'll go over the essential changes needed to make the move to SerpApi's Bing News API.
Why Use SerpApi
SerpApi manages the intricacies of scraping and returns structured JSON results, which allows you to save time and effort. We take care of proxies and any CAPTCHAs that might be encountered, so that you don't have to worry about your searches being blocked.
We also do all the work to maintain our parsers. This is important, as Bing and other search engines are constantly experimenting with new layouts, new elements, and other changes. By taking care of this for you on our side, we eliminate a lot of time and complexity from your workflow.
Getting Started
To begin scraping data, first, create a free account on serpapi.com. You'll receive one hundred free search credits each month to explore the API. In this blog post, I'll be using Python for code samples, but you can use any language you'd like to integrate with our APIs.
- Get your SerpApi API Key from this page.
- [Optional but Recommended] Set your API key in an environment variable, instead of directly pasting it in the code. Refer here to understand more about using environment variables. For this tutorial, I have saved the API key in an environment variable named "SERPAPI_API_KEY" in my .env file.
- Next, on your local computer, you need to install the
requests
Python library, which we will use to make HTTP GET requests:pip install requests
Making the Switch
Let's break down the key differences and the changes you'll need to make.
Authentication
Bing News Search API: You are likely using a Ocp-Apim-Subscription-Key in the header of your requests, which looks something like this:
headers = { 'Ocp-Apim-Subscription-Key': subscription_key }
SerpApi's Bing News API: You'll use a simple api_key
parameter in the request and set it to your API key. You can find (and regenerate if needed) your API key on the API Key Page once you're signed in. We won't use this in the header - instead you'll need to send this as one of the parameters with your API call.
The Endpoint
Bing News Search API: Your requests were likely directed to an endpoint similar to one of these two - https://api.bing.microsoft.com/v7.0/news/search (older) or https://api.cognitive.microsoft.com/v7.0/news/search (newer, suggested to some users)
SerpApi's Bing News API: The endpoint changes to https://serpapi.com/search. You'll need to set the engine
parameter to bing_news
to scrape news results from Bing.
Query Parameters
While the core functionality of searching for news remains the same, the parameter names may differ in some cases.
The following query parameters behave the same in both the official API and our API, so you don't need to adjust these:
q
- The search query termmkt
- The market for the search resultscc
- The country for the search resultscount
- The number of results to returnsafeSearch
- Used to filter news articles for adult content
The following query parameter behaves the same, but has a different name in our API:
offset
- The number of results to skip before returning search results. This is calledfirst
in our API
The following query parameters can be supported through alternate means in our API:
sortBy
andfreshness
:- Bing News Search API:
sort_by
: The order to return news topics in. The following are the possible case-insensitive values: Date and Relevance
- Bing News Search API:
freshness
: Filter news articles by the following age values: Day, Week, and Month- SerpApi's Bing News API: You can use the
qft
parameter to get results sorted by date or relevance. If the parameter is not set, it will default to the "Best match" sorting. Otherwise, if it is set to any value below, it will show results based on freshness. The available options are:interval="4"
: Past hourinterval="7"
: Past 24 hours,interval="8"
: Past 7 days,interval="9"
: Past 30 days,sortbydate="1"
: Most Recent
The query parameters below are unsupported in our API currently. Please feel free to request support for them by reaching out to us at contact@serpapi.com, or opening an issue on our Public Roadmap.
category
: The category of news articles to return.originalImg
: A Boolean value that determines whether the Image object include thecontentUrl
field or only thethumbnail
field.setLang
- Language to use for the interface returned. You can not directly set this in our API, instead we infer it from themkt
code providedsince
- The UNIX epoch time (Unix timestamp) that Bing uses to select the trending topicstextDecorations
- A Boolean value that determines whether display strings in the results should contain decoration markers such as hit highlighting characters.textFormat
- The type of markers to use for text decorations
What a Request to our Bing News API Would Look Like
I'm using Python for this code sample, but you can use any language you'd like to integrate with our APIs. Here's what a sample request would look like with some of the parameters we discussed above:
import requests
import os, json
from dotenv import load_dotenv
load_dotenv()
api_key = os.environ["SERPAPI_API_KEY"]
url = "https://serpapi.com/search.json"
params = {
"api_key": api_key,
"engine": "bing_news",
"q": "Coffee",
"cc": "US",
"mkt": "en-us",
"count": "20"
}
response = requests.get(url, params=params)
print(response.json())
The Response
The structure of the JSON response you receive from SerpApi will be different from Bing's API response. SerpApi's response is designed to comprehensively include the elements on the search results page in addition to the core news article data.
A typical response will contain an organic_results
object which contains key information about each result such as title
, link
, source
, date
, thumbnail
, snippet
, similar_results
and other details as available on the Bing News page.
A response may also contain trending_results
, which show up for some queries on Bing News. For trending_results
, we also include attributes like title
, link
and thumbnail
if available on Bing's end.
For detailed documentation on response fields, please refer our documentation here:
Let's take a look at what the response for the request above would look like:
{
"search_metadata": {
"id": "6855f3ea703f177330ae2c25",
"status": "Success",
"json_endpoint": "https://serpapi.com/searches/124eb101bd7f20f6/6855f3ea703f177330ae2c25.json",
"created_at": "2025-06-20 23:51:06 UTC",
"processed_at": "2025-06-20 23:51:06 UTC",
"bing_news_url": "https://www.bing.com/news/search?q=Coffee&cc=US&mkt=en-us&count=20",
"raw_html_file": "https://serpapi.com/searches/124eb101bd7f20f6/6855f3ea703f177330ae2c25.html",
"total_time_taken": 1.45
},
"search_parameters": {
"engine": "bing_news",
"q": "Coffee",
"mkt": "en-us",
"cc": "US",
"device": "desktop",
"count": "20"
},
"organic_results": [
{
"title": "Harvard study of nearly 50,000 women over 30 years finds coffee drinking linked to healthy aging, longevity: It seems to offer 'protective benefits'",
"link": "https://www.msn.com/en-us/health/other/harvard-study-of-nearly-50-000-women-over-30-years-finds-coffee-drinking-linked-to-healthy-aging-longevity-it-seems-to-offer-protective-benefits/ar-AA1H700x?ocid=BingNewsVerp",
"snippet": "\"Moderate coffee intake may offer some protective benefits when combined with regular exercise, a healthy diet and avoiding ...",
"source": "CNBC on MSN",
"date": "7h",
"thumbnail": "https://serpapi.com/searches/6855f3ea703f177330ae2c25/images/6ae27a641d746fcbf6992b1b55b79e0cfe01e624c884ee79dd89dbc17980170c.jpeg"
},
{
"title": "Coffee may help you live longer, but skip the extra sugar",
"link": "https://www.msn.com/en-us/health/other/coffee-may-help-you-live-longer-but-skip-the-extra-sugar/ar-AA1H30tk?ocid=BingNewsVerp",
"snippet": "Drinking a cup or two of coffee every day may help you live longer -- but only if you skip the heavy cream and sugar, new ...",
"source": "UPI on MSN",
"date": "1d",
"thumbnail": "https://serpapi.com/searches/6855f3ea703f177330ae2c25/images/6ae27a641d746fcbf6992b1b55b79e0cb55136c9568a2399fb6976125909d9df.jpeg"
},
{
"title": "Hints from Heloise: Adding salt to coffee and exercising your right to vote",
"link": "https://www.nj.com/entertainment/2025/06/hints-from-heloise-adding-salt-to-coffee-and-exercising-your-right-to-vote.html",
"snippet": "Adding salt to coffee is a well-known way that some people have traditionally reduced its bitterness, but this is a bad idea ...",
"source": "NJ.com",
"date": "10h",
"thumbnail": "https://serpapi.com/searches/6855f3ea703f177330ae2c25/images/6ae27a641d746fcbf6992b1b55b79e0c0221d3c7b63e89314b807be074c2824f.jpeg"
},
{
"title": "Scientists Reveal Healthiest Way of Drinking Coffee",
"link": "https://www.msn.com/en-us/health/other/scientists-reveal-healthiest-way-of-drinking-coffee/ar-AA1GTXbg?ocid=BingNewsVerp",
"snippet": "A study found drinking up to three cups per day can lead to a 17 percent lower risk of mortality—but only if you take your ...",
"source": "Newsweek on MSN",
"date": "3d",
"thumbnail": "https://serpapi.com/searches/6855f3ea703f177330ae2c25/images/6ae27a641d746fcbf6992b1b55b79e0c99ec7c9e673c8896030e3d4d7d2f856e.jpeg"
},
{
"title": "LET’S EAT! | OPINION: Onyx debuts new instant coffee; Oak Steakhouse to open next week Rogers; Fermentary Pub coming soon to Lowell",
"link": "https://www.arkansasonline.com/news/2025/jun/18/lets-eat-opinion-onyx-debuts-new-instant-coffee/",
"snippet": "Queen Donuts is set to open \"soon\" at 2227 Martin Luther King Jr. Blvd., according to the shop's Facebook and Instagram ...",
"source": "Arkansas Democrat-Gazette",
"date": "1d",
"thumbnail": "https://serpapi.com/searches/6855f3ea703f177330ae2c25/images/6ae27a641d746fcbf6992b1b55b79e0c2d329ed3815a52c497034b4f72142ad7.jpeg"
},
{
"title": "Pickup Coffee opens first Pickup Prime concept in Cebu",
"link": "https://www.msn.com/en-ph/food-and-drink/beverages/pickup-coffee-opens-first-pickup-prime-concept-in-cebu/ar-AA1H7JLo?ocid=BingNewsVerp",
"snippet": "Pickup Coffee, the homegrown brand known for its iconic green carts across the country, has launched its first premium ...",
"source": "ABS-CBN on MSN",
"date": "19m",
"thumbnail": "https://serpapi.com/searches/6855f3ea703f177330ae2c25/images/6ae27a641d746fcbf6992b1b55b79e0c339d1043e08828d50c5615b94cfc720d.jpeg"
},
{
"title": "How Do You Build a $500 Million Coffee Chain? By Selling Matcha to Teens.",
"link": "https://www.msn.com/en-us/money/other/how-do-you-build-a-500-million-coffee-chain-by-selling-matcha-to-teens/ar-AA1H1MWH?ocid=BingNewsVerp",
"snippet": "Young people are obsessed with the private equity-backed chain, which has been doubling down on sugary green tea.",
"source": "The Wall Street Journal on MSN",
"date": "1d",
"thumbnail": "https://www.bing.com/th?id=OVFT._iK-BPkkiN0D_2M7Te_h7y&pid=News&w=234&h=132&c=14&rs=2&qlt=90"
},
{
"title": "Move Over, Cold Brew, Yemeni Coffee Is Having a Moment",
"link": "https://www.msn.com/en-us/foodanddrink/foodnews/move-over-cold-brew-yemeni-coffee-is-having-a-moment/ar-AA1H1kNV?ocid=BingNewsVerp",
"snippet": "Now, in 2025, Yemeni coffee is one of the most popular trends in the United States. From the Detroit area to Brooklyn, ...",
"source": "Food & Wine on MSN",
"date": "1d",
"thumbnail": "https://www.bing.com/th?id=OVFT.G8kHl8Of6bYUzZtw1GkPAC&pid=News&w=234&h=132&c=14&rs=2&qlt=90"
},
{
"title": "Food Truck Friday: Blue Sky Coffee",
"link": "https://www.wdio.com/lift-online/food-truck-friday-blue-sky-coffee/",
"snippet": "Blue Sky Coffee keeps people caffeinated out of a camper. Casey Kinnunen is the owner and self-taught barista.",
"source": "WDIO News",
"date": "3h",
"thumbnail": "https://www.bing.com/th?id=OVFT.onn0FgBGplt27InH2-FPuC&pid=News&w=234&h=132&c=14&rs=2&qlt=90"
},
{
"title": "Coffee Prices to Extend Drop From Record, Illycaffe CEO Says",
"link": "https://www.bloomberg.com/news/articles/2025-06-17/illy-ceo-sees-coffee-extending-slide-on-ample-supply-projections",
"snippet": "Italian roaster Illycaffe SpA expects the cost of coffee beans to continue to fall, helping to shield customers from further ...",
"source": "Bloomberg",
"date": "3d",
"thumbnail": "https://www.bing.com/th?id=OVFT.Y2xwKfxJPOhUD5I7VfPpPy&pid=News&w=234&h=132&c=14&rs=2&qlt=90"
},
{
"title": "One viral video put this rural coffee shack on the map",
"link": "https://www.msn.com/en-us/foodanddrink/other/one-viral-video-put-this-rural-coffee-shack-on-the-map/ar-AA1H3e9R?ocid=BingNewsVerp",
"snippet": "In late April 2025, she posted a video of her making an Americano in a bucket that the internet loved. The caption asked if ...",
"source": "OregonLive.com on MSN",
"date": "1d",
"thumbnail": "https://www.bing.com/th?id=OVFT.IWCH3EEmccwsgdPayobnEi&pid=News&w=234&h=132&c=14&rs=2&qlt=90"
},
{
"title": "Grand Rapids coffee shop serves as cooling center during heat wave",
"link": "https://www.msn.com/en-us/foodanddrink/foodnews/grand-rapids-coffee-shop-serves-as-cooling-center-during-heat-wave/ar-AA1H7G2F?ocid=BingNewsVerp",
"snippet": "Lotus Brew Coffee serves as a cooling center, providing AC, water, and more for West Michigan locals during heat advisories.",
"source": "WZZM13 on MSN",
"date": "2h",
"thumbnail": "https://www.bing.com/th?id=OVFT.M048wELZUduRBOgHCXdl5C&pid=News&w=234&h=132&c=14&rs=2&qlt=90"
},
{
"title": "TikTok ‘Coffee Girl,’ country singer launches coffee shop in Illinois",
"link": "https://www.msn.com/en-us/music/other/tiktok-coffee-girl-country-singer-launches-coffee-shop-in-illinois/ar-AA1H7NxN?ocid=BingNewsVerp",
"snippet": "Kay gained recognition online as the “Coffee girl,” her videos captivating many fans. With a coffee shop opening in Waterloo, ...",
"source": "FOX4KC WDAF-TV on MSN",
"date": "2h",
"thumbnail": "https://www.bing.com/th?id=OVFT.tbHgJdfEXoGkLdeihGnh8y&pid=News&w=234&h=132&c=14&rs=2&qlt=90"
},
{
"title": "American Idol alum launches Coffee Girl shop in Waterloo",
"link": "https://www.yahoo.com/news/american-idol-alum-launches-coffee-234812591.html",
"snippet": "A former American Idol contestant who caught stardom for her viral videos of making coffee has opened her first coffee shop ...",
"source": "Yahoo",
"date": "1d",
"thumbnail": "https://www.bing.com/th?id=OVFT.vSbnXLdH-t5qwVa0YIADci&pid=News&w=234&h=132&c=14&rs=2&qlt=90"
}
]
}
If you want to try out different requests to our Bing News API, I'd recommend checking out our Playground where you can add different parameters and see how the response changes accordingly. Here's a sample request on our Playground:
Error Codes
Bing provides error codes listed here:

For error codes you can expect with our API, please refer to our Error Codes Page:
Conclusion
I hope this has been a helpful overview in moving over from Bing's News Search API to SerpApi's Bing News API. For more details on parameters and outputs, please take a look at our Bing Search API documentation.
If you have any questions, don't hesitate to reach out to us at contact@serpapi.com.
Relevant Links
- Playground for Bing News API
- Bing News API Documentation page
- Plans and Pricing page
- Integration Guides
- An Alternate to Bing News API - Google News API
Related Posts


