我使用bing servie v7 API在第三方软件中爬取数据,显示401,并说subscription key invalid,怎么解决这个问题?

红 蒋 0 Reputation points
2023-09-06T08:34:39.61+00:00

我在软件webometric analyst中使用bing search APIs search v7 key去爬取bing web 数据,但是运行中显示“401”以及subscription key invalid,但是我肯定自己的key 是有效的。请问这个问题如何解决?

"I am using the Bing Search APIs with my Bing Search v7 key to crawl Bing web data in the webometric analyst software. However, during execution, I encounter a '401' error with the message 'subscription key invalid.' I am certain that my key is valid. How can I resolve this issue?"

User's image

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

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 17,476 Reputation points
    2023-09-07T23:35:00.8333333+00:00

    Hello @红 蒋 , Thanks for using Microsoft Q&A Platform.

    Sorry for the inconveniences as we only support English in this forum; please post a question in English so that community members can assist you on the same.
    We apologize for any difficulty; we are attempting to avoid language misunderstandings. Hope you understand.

    "I am using the Bing Search APIs with my Bing Search v7 key to crawl Bing web data in the webometric analyst software. However, during execution, I encounter a '401' error with the message 'subscription key invalid.' I am certain that my key is valid. How can I resolve this issue?"

    Based on this information, looks like the subscription key provided is not valid. I would suggest regenerating the keys in the Azure portal->Bing Resources->keys and endpoint.

    User's image

    Once the new keys are generated copy and paste the latest key and try again.
    Also, try to check these things: https://learn.microsoft.com/en-us/bing/search-apis/bing-news-search/reference/error-codes#error-codesUser's image

    I hope this helps.

    Regards,
    Vasavi

    -Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.

    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.