This single-page web application demonstrates how the Bing Image Search API (an Azure Cognitive Service) can be used to retrieve, parse, and display relevant image results based on a user's query. This sample compliments the single-page web app tutorial on docs.microsoft.com.
The sample app can:
- Call the Bing Image Search API with search options
- Display image results
- Paginate results
- Manage subscription keys
- Handle errors
To use this app, you must have a valid Azure subscription. If you don't have one, you can get an account for free. After you sign up, you can use the subscription key from creating an Azure Cognitive Services resource for the Bing Search APIs.
- Node.js 8 or later
- A valid Azure Cognitive Services subscription key for the Bing Search APIs
-
Clone the repository.
-
Navigate to the Bing Web Search Tutorial directory.
-
Install Express.js:
npm install -
Run the sample app:
node bing-web-search.js -
Navigate to the provided URL and perform your first Bing Image Search!
- See the single-page webapp tutorial that goes along with this sample.
- Explore all of the available Azure Cognitive Services.
- Use computer vision to quickly analyze an image.
- View the rest of the Bing Image Search Documentation.