HTTPError: 404 Client Error: Resource Not Found for url

User_Twy 6 Reputation points
2021-02-28T01:07:26.667+00:00

Hi all, I recently got a Bing API Key for web search, and I'm using the code provided in the Github by Microsoft.

However, I keep encountering an error, saying "HTTPError: 404 Client Error: Resource Not Found for url: https://api.bing.microsoft.com/bing/v7.0/search?q=Microsoft+Cognitive+Services&mkt=en-US".

Does anyone know how to fix this?

72609-screen-shot-2021-02-27-at-50017-pm.png

72610-screen-shot-2021-02-27-at-50022-pm.png

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
848 questions
{count} vote

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 53,126 Reputation points
    2021-03-22T00:33:21.783+00:00

    Hello everyone for the same issue,

    This issue has been fixed several days ago. Appreciate the help from UserTwy. If you are suffering from this issue, please do following 2 things"

    1. Please make sure you are using Bing Search V7 not Bing Custom Search, Bing Custom need more info for header.
    2. Please make sure if you created your resource recently, please use the correct Subscription key and Endpoint as:
      search_url = "https://api.bing.microsoft.com/v7.0/search"

    If you still have issue, please let us know.

    Regards,
    Yutong


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.