Access denied

Egbert Li 0 Reputation points

While I test bing search api, it shows access denied, but it have been worked perfectly for the past few days.

curl --header "Ocp-Apim-Subscription-Key: xxxxxxxxx" ""

and the API Response shows:

  "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."

my suscription id is in active status, I don't know how to solve this issue, please help me.

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