Creating a Bing Custom Search Instance with Keys for Bing API

Leave a comment

In this post, we will create a new Bing Custom Search Instance that we can use to access the Bing Custom Search API. This will enable us to access the Bing Search API from apps we build, thereby opening our apps to the power of Bing Search.

First, go to and sign in:

You will see the steps below. Click Create new instance:

Name the instance and click OK:

You will see below:

Enter a site. I will use this site,, that this search instance will return results from:

To test the app, enter a search term in the right pane. I will search my site for the word “Azure”:

On the top right, click Publish:

And Publish:

Click Go to Production environment:

You will see the Custom Configuration ID

Select a Subscription Key. If you see the message “No keys matching this endpoint were found in your Azure subscription. You can enter one manually in the input box” then you may need to generate a key if you have not already done so. Click on Issue a key:

This will take you to to create a key. Click Add:

You will then see the endpoint (e.g. and your keys:

Note you can also generate the keys through the Azure portal.

Now enter the key in your custom search instance:

Enter a search term, and click Call:

You will see the response come back from the API, here you can see my site has returned some results when searching for Dynamics:

You can now use the Bing Search API in your apps, for example, this Hello World in a C# console app.



Carl de Souza is a developer and architect focusing on Microsoft Dynamics 365, Power BI, Azure, and AI.

carldesouza.comLinkedIn Twitter | YouTube


Leave a Reply

Your email address will not be published. Required fields are marked *