Bing Search API is not working

Yagnesh Vakharia 0 Reputation points
2024-04-20T06:37:41.3533333+00:00

The Bing Search API has stopped working. As per the example in the below link, I have implemented the same in my application and now it has stopped working. Earlier it was working flawlessly.

Link - https://learn.microsoft.com/en-us/bing/search-apis/bing-news-search/how-to/search-for-news#get-todays-top-news

API Response -

{
    "_type": "News",
    "queryContext": {
        "originalQuery": ""
    },
    "value": []
}
Bing News Search
Bing News Search
A Bing service that supports searching for news and get comprehensive results.
51 questions
{count} votes

1 answer

Sort by: Most helpful
  1. dupammi 8,540 Reputation points Microsoft Vendor
    2024-04-22T02:04:26.7766667+00:00

    Hi @Yagnesh Vakharia

    Thank you for reaching out to the Microsoft Q&A.

    Based on the response you received, it seems that the query you are using is not returning any news articles. The response you received shows that the API returned an empty array for the "value" field. This could be due to few reasons.

    To troubleshoot further, you can try modifying your query to be more specific or adding additional filters to your query. You can also try using a different query to see if the API returns any news articles.

    Quota Limits: Make sure that you have not exceeded your quota limits. Bing Search API has usage limits and if you exceed them, you may receive a 404 error.

    Network Issues: Check if there are any network issues that may be preventing you from accessing the Bing Search API. Try to access the API from a different network or location to see if the issue persists.

    If you continue to have issues, you can check your API key and subscription to ensure they are correct and active.

    Below is the repro I tried from my end, using the same link provided in the question and it works as expected. See below:

    User's image

    CURL :
    User's image

    For debugging purpose, I suggest, you try using the Bing Web Search API from Azure Portal UI. The Bing Web Search API can provide search results from billions of web documents, including news articles, images, videos, and more. The API can be called with a single API call and can be customized to refine the search results. With this, you get to know if subscription key was causing an issue or not.

    Please see belowUser's image

    I hope you understand. Thank you.


    Please kindly accept the answer and vote Yes if you feel helpful to support the community, Thanks a lot.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.