MicrosoftDocs / bing-docs

Other
12 stars 40 forks source link

The Search Operation under Web Search API - v7 is not supported with the current subscription key and pricing tier Bing.CustomSearch.S1 #20

Open nzigel opened 3 years ago

nzigel commented 3 years ago

[Enter feedback here] Following the instructions at https://docs.microsoft.com/en-us/azure/cognitive-services/bing-custom-search/overview

Bing Search APIs are moving from Cognitive Services to Bing Search Services. Starting October 30, 2020, any new instances of Bing Search need to be provisioned following the process documented https://docs.microsoft.com/en-us/bing/search-apis/bing-web-search/create-bing-search-service-resource

After creating an S1 BingCustomSearch subscription and testing it at

https://api.bing.microsoft.com/v7.0/search?q=cat&count=1

I get the following error

{ "error": { "code": "401", "message": "The Search Operation under Web Search API - v7 is not supported with the current subscription key and pricing tier Bing.CustomSearch.S1." } }


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

s4parke commented 3 years ago

It's unfortunate that nobody at MS has responded. I followed the instructions and have the same exact error.

The documentation for this API leaves much to be desired. There are zero examples of CURL statements to make web searches, and all of the so-called REST examples are actually code samples. Sorry to say, but I will have to use Google.

jharbieh-microsoft commented 3 years ago

I did have the same. I was using the /custom/ api endpoint. I now no longer use that. You don't seem to be using it anyways. I wonder what's up then.

I have an S3 subscription. Provisioned from the Azure portal. I am using Logic Apps. I pass the "Ocp-Apim-Subscription-Key" header with the API key value. I ran this HTTP GET request https://api.bing.microsoft.com/v7.0/search?cc=us&count=50&safeSearch=Strict&responseFilter=Webpages&q=cat

Seems to be Okay. Results are back!