Hello guys. Welcome to the 44th session of using Microsoft Word framer, Louise and Community Services tutorials for beginners. In this session, we will learn how to use main Web Search API. The Web Search API lets you to sign up search query to bring and get back search results that include links to webpages, images and more. being such a powerful search that it allows us to customize the resulting zing limit offset Rashmi from work moderate. We can even filter result using a response filter.
In this session, I will retrieve text from user and display top three web result as a guide. For that Search API, we need to install Microsoft dot Azure cognitive services like search dark web search for anything you know already installed this package. Like the previous session, I have created a helper class for being search in which just added necessary namespaces on creating new dialog like computer vision dialog. In this dialog I optic operation from Chrome and then return query from the user based on which we will perform the operation. Here we need to specify a key for this EPA that is fish to the Azure portal. Such being select being APA version seven and click on Create.
When you're creating a pay, please make appropriate price style because each chapter has different features. I'm selecting as one which allow web image video news file check entity auto search and click on Create. I have already created this. So let us open it click on overview. Jackie's copy and pasted now I'm going to create string constant which contains choice added to the switch case, colleagues helper method. Here I'm also passing context because in this session we will generate hero cards for each result and also pass And query.
Let's create this method make it public or think and create an instance of Web Search API. Faculty. By using such a sync method, we can perform a search. This method takes various parameters such as query, accept language, user agent, client ID, IP, location, count, freshness, offset, response, filter, code, etc. query is one of the most important parameters. Here I just need to go through results so fast three in the count I want to perform a safe search on the check that we got resulting that pages and display a message from talking.
Look through each web page item and create a record. Set title and description. also create a button for opening this page. After creating this car, we need to post it using new message. Let's save this file and run the project. Click New conversations tonight.
Let's enter boots. We got three results, which title and description. Let us open any of them. If you're comparing this result with search in main.com then it will be different because bing.com will perform a search based on a free country language settings etc. Till we have not specified anything, so it will be different. Let us see what we have learned in this session.
We can use Bing search API to retrieve search result. Here I have used only count and save search, but you can try all the parameters. In this example, I'm just displaying cards for web pages. However, search results may include images, videos, and news. We will perform those all search by using them respecting APA in upcoming sessions. Thanks for watching this video.
If you have any doubts, please feel free to contact me. Have a nice day.