Bing Custom Search - unvalid subscription key

Niklas Jungeilges 1 Reputation point
2021-01-21T14:09:21.753+00:00

Hey Guys,

I want to set up a Bing Custom Search. I registered at azure and got the free F0 tariff with 2 Keys. I put one of them in, but when I try to use the custom Search he always says to me: Unable to execute your query. Ensure that a valid subscription key has been set up for your instance.

But this must be the right key....

I hope someone can help me!

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

5 answers

Sort by: Most helpful
  1. Nathan Tisdale 6 Reputation points
    2021-01-23T20:30:57.68+00:00

    The UriBase might need to be changed form the old cognitive services uri to the new bing uri. I was just working with some sample code that had to be updated as follows:

    OLD:

    const string UriBase = "https://api.cognitive.microsoft.com/bing/v7.0/images/search";
    

    NEW:

    const string UriBase = "https://api.bing.microsoft.com/v7.0/images/search";
    
    1 person found this answer helpful.

  2. YutongTie-MSFT 44,966 Reputation points
    2021-01-22T00:25:03.637+00:00

    Hello,

    Sorry to hear your experience. I just try in my end and there is no error.

    59207-image.png

    Could you please also try yours in the Bing custom portal? https://www.customsearch.ai/
    This is the guidance: https://learn.microsoft.com/en-us/bing/search-apis/bing-custom-search/how-to/quick-start

    Regards,
    Yutong


  3. Niklas Jungeilges 1 Reputation point
    2021-01-28T10:24:44.097+00:00

    Okay it seems to work now. I dont know why, i didnt changed anything. But thanks anyways!

    0 comments No comments

  4. Nicholas Bosse 0 Reputation points
    2024-02-21T16:03:28.4466667+00:00

    can you get one free?

    0 comments No comments

  5. Nicholas Bosse 0 Reputation points
    2024-02-21T16:05:00.86+00:00

    javascript:your mom;

    0 comments No comments