Book Image

Learning Microsoft Cognitive Services

By : Leif Larsen
Book Image

Learning Microsoft Cognitive Services

By: Leif Larsen

Overview of this book

Take your app development to the next level with Learning Microsoft Cognitive Services. Using Leif's knowledge of each of the powerful APIs, you'll learn how to create smarter apps with more human-like capabilities. ? Discover what each API has to offer and learn how to add it to your app ? Study each AI using theory and practical examples ? Learn current API best practices
Table of Contents (20 chapters)
Learning Microsoft Cognitive Services
About the Author
About the Reviewer
Customer Feedback
Additional Information on Linguistic Analysis

Searching the Web from the Smart-House application

The Bing Web Search API provides us with a search experience similar to what we find at It returns results relevant to any queries, also specifying a ranking order.

A response for any request to this API will contain web pages, images, videos, and news articles. In a typical scenario, this is the API you would use for any of these searches.

Note that, in a real-life scenario, all requests should be made from a server-side application, not from a client, like we are doing in the example.


If you have not already done so, sign up for the Bing Web Search API at

Preparing the application for web searches

Before diving into the required technicalities for web searches, we are going to prepare our Smart-House application.

Add a new View in the Views folder, called BingSearchView.xaml. At the very least, this should contain two Combobox elements, one for...