Skip to content

Latest commit

 

History

History
 
 

README.md

topic sample
languages
java
products
azure
cognitive services

Search v7 REST API samples

These samples are quickstarts that show how to use various Search APIs, such as Bing Web Search.

Prerequisites

  • Create an Azure resource for the service you'd like to try, for example a Bing Web Search resource.
  • Add your key and endpoint from your resource to your environment variables with the variable names suggested in the sample.
  • Download the Gson library and add to your project, or create a lib folder and add it there.
    Gson library: https://github.com/google/gson

Running the samples

  • Copy/paste the sample into an IDE or text editor.
  • Build/run in your IDE or from the command line, for example:
    javac BingWebSearchv7.java -cp .;lib\*
    java -cp .;lib\*BingWebSearchv7

Resources

Bing Autosuggest: Documentation, API

Bing Custom Search: Documentation, API

Bing Entity Search: Documentation, API

Bing Image Search: Documentation, API

Bing News Search: Documentation, API

Bing Spell Check: Documentation, API

Bing Video Search: Documentation, API

Bing Visual Search: Documentation, API

Bing Web Search: Documentation, API