Getting http 401 unauthorized access for the bing image search api

Kal 0 Reputation points

User's image

Bing Image Search
Bing Image Search
A Bing service that supports searching for images and gets comprehensive results.
45 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 14,911 Reputation points

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

    As per the error 401 looks like this issue can be either the subscription key is missing or is not valid. Try to verify your subscription key and if possible, regenerate the key in the Azure portal and try with the latest key.

    Also try to check this related to the InvalidAuthorization error code and troubleshoot these things:

    • Bing returns InvalidAuthorization when Bing cannot authenticate the caller. For example, if 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.


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

    0 comments No comments