Bing search API suddenly stopped returning results

Dmitri 96 Reputation points
2021-05-24T15:49:00.157+00:00

I have used Bing Search API for years, but all of a sudden it stopped returning any results. I checked the key, the subscription, and everything is in order. Has the endpoint changed, or anything else?
The URL I am going to is: https://api.cognitive.microsoft.com/bing/v7.0/search

Thank you.

Bing Web Search
Bing Web Search
A Bing service that gives you enhanced search details from billions of web documents.
156 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dmitri 96 Reputation points
    2021-05-24T17:18:47.933+00:00

    More details: an exception is thrown when I call the service https://api.cognitive.microsoft.com/bing/v7.0/search:

    "Unable to read data from the transport connection : An existing connection was forcibly closed by the remote host"

    What could be the reason? Does anybody else have a similar issue? Again, this call has been working for years and I have not made any changes.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. YutongTie-MSFT 51,696 Reputation points
    2021-05-24T17:23:03.137+00:00

    In addition to above, I have done some research regarding to this issue. From the error message, it seems this is an C# issue not the API service, I see this post with similar scenario. And the workaround for it is to edit the header.

    Could you please check on this as well?

    Thanks.

    Regards,
    Yutong

    1 person found this answer helpful.

  2. YutongTie-MSFT 51,696 Reputation points
    2021-05-24T16:27:48.983+00:00

    Hello @Dmitri ,

    Thanks for reaching out to us. Yes, Bing Search APIs are moving from Cognitive Services to Bing Search Services. Starting October 30, 2020, any new instances of Bing Search need to be provisioned following the process documented here. Bing Search APIs provisioned using Cognitive Services will be supported for the next three years or until the end of your Enterprise Agreement, whichever happens first.

    For migration. please follow the guidance: https://video2.skills-academy.com/en-us/bing/search-apis/bing-web-search/create-bing-search-service-resource

    And please make sure the new service's endpoint has changed to https://api.bing.microsoft.com/v7.0/search with your new key.

    Please feel free to accept the answer if you feel helpful!

    Regards,
    Yutong


  3. YutongTie-MSFT 51,696 Reputation points
    2021-05-24T16:46:19.26+00:00

    Hello,

    The old service should be supported at this moment, but I can not reproduce the issue since I don't have one old service.

    For the new url, if you want to use it you need to create a new service follows the migration guidance and wait for a little while. I just cried a new one and the service works for me.

    99180-image.png

    Regards,
    Yutong

    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.