Call your custom search
Before making your first call to the Custom Search API to get search results for your instance, you need to get a Cognitive Services subscription key. To get a key for Custom Search API, see Try Cognitive Services.
Existing Bing Custom Search customers who have a preview key provisioned on or before October 15, 2017 will be able to use their keys until November 30 2017, or until they have exhausted the maximum number of queries allowed. Afterwards, they need to migrate to the generally available version on Azure.
Try it out
After you've configured your custom search experience, you can test the configuration from within the Custom Search portal. Sign into Custom Search, click a Custom Search instance, and click the Production tab. The Endpoints tab is displayed. Your subscription will determine which endpoints are available to try, see pricing pages. To test an endpoint, select it from the dropdown and set the associated configuration options.
The following are the available options.
- Query: The search term to search for. Only available for Web, Image, and Autosuggest endpoints.
- Custom Configuration ID: The configuration ID of the selected Custom Search instance. This field is read only.
- Market: The market where the results come from. Only available for Web, Image, and Hosted UI endpoints.
- Subscription Key: The subscription key to test with. You may select a key from the dropdown or enter one manually.
- Safe Search: A filter used to filter webpages for adult content. Only available for Web, Image, and Hosted UI endpoints.
- Count: The number of search results to return in the response. Only available for Web and Image endpoints.
- Offset: The number of search results to return in the response. Only available for Web and Image endpoints.
After you've specified all required options for Web, Image, or Autosuggest, click Call to view the JSON response in the right pane.
If you select the Hosted UI endpoint, you can test the search experience from the right pane.