Bing News Search
A Bing service that supports searching for news and get comprehensive results.
50 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How to fix this error from the endpoint
https://api.bing.microsoft.com/v7.0/news/search
{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}
Hello @louie cagas , Thanks for using Microsoft Q&A Platform.
Generally, the error 401is caused due to the subscription key is missing or is not valid. Please verify that you are using a valid subscription key for the API endpoint. Try to regenerate the subscription key in the Azure portal and add the latest one and see if that helps.
Also try to check this following information:
- Bing returns InvalidAuthorization when Bing cannot authenticate the caller. For example, the Ocp-Apim-Subscription-Key header is missing or the subscription key is not valid.
- Redundancy occurs if you specify more than one authentication method.
- If the error is InvalidAuthorization, the HTTP status code is 401
I hope this helps.
Regards,
Vasavi
-Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.