{"id":15871,"date":"2018-05-16T14:33:00","date_gmt":"2018-05-16T21:33:00","guid":{"rendered":"https:\/\/devwww.3cloudsolutions.com\/post\/cognitive-services-showcase-api-search-tools-2\/"},"modified":"2024-01-03T14:32:41","modified_gmt":"2024-01-03T22:32:41","slug":"cognitive-services-showcase-api-search-tools","status":"publish","type":"post","link":"https:\/\/3cloudsolutions.com\/resources\/cognitive-services-showcase-api-search-tools\/","title":{"rendered":"Cognitive Services Showcase:\u00a0 API\u00a0Search Tools"},"content":{"rendered":"<p><span style=\"background-color: transparent;\">Over the next few weeks, we will be exploring the capabilities of Microsoft\u2019s <\/span><a style=\"background-color: transparent;\" href=\"https:\/\/azure.microsoft.com\/en-us\/services\/cognitive-services\/\" target=\"_blank\" rel=\"noopener\">Cognitive Services<\/a><span style=\"background-color: transparent;\">. These application programming interface (API) sets empower users with intelligent algorithms that see, hear, speak, understand, and interpret data when applied to apps, websites, and bots.<\/span><\/p>\n<p><span style=\"background-color: transparent;\"><img decoding=\"async\" style=\"width: 805px; display: block; margin: 0px auto;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/Custom-Search-API-1.png\" alt=\"Cognitive Services Showcase: Search\" width=\"805\" \/><\/span><\/p>\n<p>For our first exploration of Microsoft\u2019s Cognitive Services APIs, we will be looking into the Search category. Adding the\u00a0Bing Search API to your apps will give you the ability to comb through billions of web pages, images, videos, and news with a single API call.\u00a0I&#8217;ll also show how easy it is to create your own search engine using the <a href=\"https:\/\/azure.microsoft.com\/en-us\/services\/cognitive-services\/bing-custom-search\/\" target=\"_blank\" rel=\"noopener\">Custom Search API<\/a>.<\/p>\n<p><!--more--><\/p>\n<h2>All About Search<\/h2>\n<p>When we need to search for something on the web such as a new recipe for chocolate cake or maybe some helpful articles related to some research we&#8217;re doing, we probably use a search engine like Google or Bing to help us navigate to the content for which we&#8217;re looking. However, given the billions of pages online, and the fact that a small percentage of popular pages typically \u00a0overshadow the rest of the web, it may be desirable to better control the results a search engine returns. This is where the Search APIs can come in handy. Using a Cognitive Services Search API will allow you to define a slice of the web from which to return results.<\/p>\n<p>As of today, Microsoft has seven search APIs. These APIs can handle many tasks \u2013 from searching for images and video, to browsing the news, to intelligently autosuggesting options for searches.<\/p>\n<table style=\"margin-left: auto; margin-right: auto; width: 847px;\">\n<tbody>\n<tr style=\"height: 21px;\">\n<td style=\"height: 21px; width: 82px;\"><img loading=\"lazy\" decoding=\"async\" style=\"width: 100px; display: block; margin: 0px auto;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/search-autosuggest.png\" alt=\"search-autosuggest\" width=\"100\" height=\"100\" \/><\/td>\n<td style=\"height: 21px; width: 259.844px;\"><span style=\"font-size: 20px;\"><a href=\"https:\/\/azure.microsoft.com\/en-us\/services\/cognitive-services\/autosuggest\/\" target=\"_blank\" rel=\"noopener\">Bing Autosuggest API<\/a><\/span><\/td>\n<td style=\"height: 21px; width: 492.156px;\">Give your app intelligent autosuggest options for searches<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"height: 21px; width: 82px;\"><img loading=\"lazy\" decoding=\"async\" style=\"width: 100px;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/search-entitysearch.png\" alt=\"search-entitysearch\" width=\"100\" height=\"100\" \/><\/td>\n<td style=\"height: 21px; width: 259.844px;\"><span style=\"font-size: 20px;\"><a href=\"https:\/\/azure.microsoft.com\/en-us\/services\/cognitive-services\/bing-entity-search-api\/\" target=\"_blank\" rel=\"noopener\">Bing Entity Search API<\/a><\/span><\/td>\n<td style=\"height: 21px; width: 492.156px;\">Enrich your experiences by identifying and augmenting entity information from the web<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"height: 21px; width: 82px;\"><img loading=\"lazy\" decoding=\"async\" style=\"width: 100px;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/search-videosearch.png\" alt=\"search-videosearch\" width=\"100\" height=\"100\" \/><\/td>\n<td style=\"height: 21px; width: 259.844px;\"><span style=\"font-size: 20px;\"><a href=\"https:\/\/azure.microsoft.com\/en-us\/services\/cognitive-services\/bing-video-search-api\/\" target=\"_blank\" rel=\"noopener\">Bing Video Search API<\/a><\/span><\/td>\n<td style=\"height: 21px; width: 492.156px;\">Search for videos and get comprehensive results<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"height: 21px; width: 82px;\"><img loading=\"lazy\" decoding=\"async\" style=\"width: 100px;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/search-newssearch.png\" alt=\"search-newssearch\" width=\"100\" height=\"100\" \/><\/td>\n<td style=\"height: 21px; width: 259.844px;\"><span style=\"font-size: 20px;\"><a href=\"https:\/\/azure.microsoft.com\/en-us\/services\/cognitive-services\/bing-news-search-api\/\" target=\"_blank\" rel=\"noopener\">Bing News Search API<\/a><\/span><\/td>\n<td style=\"height: 21px; width: 492.156px;\">Search for news and get comprehensive results<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"height: 21px; width: 82px;\"><img loading=\"lazy\" decoding=\"async\" style=\"width: 100px;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/search-customsearch.png\" alt=\"search-customsearch\" width=\"100\" height=\"100\" \/><\/td>\n<td style=\"height: 21px; width: 259.844px;\"><span style=\"font-size: 20px;\"><a href=\"https:\/\/azure.microsoft.com\/en-us\/services\/cognitive-services\/bing-custom-search\/\" target=\"_blank\" rel=\"noopener\">Bing Custom Search API<\/a><\/span><\/td>\n<td style=\"height: 21px; width: 492.156px;\">An easy-to-use, ad-free, commercial-grade search tool that lets you deliver the results you want<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"height: 21px; width: 82px;\"><img loading=\"lazy\" decoding=\"async\" style=\"width: 100px;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/search-websearch.png\" alt=\"search-websearch\" width=\"100\" height=\"100\" \/><\/td>\n<td style=\"height: 21px; width: 259.844px;\"><span style=\"font-size: 20px;\"><a href=\"https:\/\/azure.microsoft.com\/en-us\/services\/cognitive-services\/bing-web-search-api\/\" target=\"_blank\" rel=\"noopener\">Bing Web Search API<\/a><\/span><\/td>\n<td style=\"height: 21px; width: 492.156px;\">Get enhanced search details from billions of web documents<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"height: 21px; width: 82px;\"><img loading=\"lazy\" decoding=\"async\" style=\"width: 100px;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/search-imagesearch.png\" alt=\"search-imagesearch\" width=\"100\" height=\"100\" \/><\/td>\n<td style=\"height: 21px; width: 259.844px;\"><span style=\"font-size: 20px;\"><a href=\"https:\/\/azure.microsoft.com\/en-us\/services\/cognitive-services\/bing-image-search-api\/\" target=\"_blank\" rel=\"noopener\">Bing Image Search API<\/a><\/span><\/td>\n<td style=\"height: 21px; width: 492.156px;\">Search for images and get comprehensive results<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: right;\"><em>To try any of these Search Cognitive Services for yourself, get a free trial API key <a href=\"https:\/\/azure.microsoft.com\/en-us\/try\/cognitive-services\/#search\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/em><\/p>\n<h2>Bing Custom Search API<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"width: 171px; display: block; margin: 0px auto;\" src=\"https:\/\/azurecomcdn.azureedge.net\/cvt-9e9fd96cdf842d9cc25956a0a1f2467ccefe3db9245da721574d3582d602ecdb\/images\/page\/services\/cognitive-services\/bing-custom-search\/customize-your-search.png\" alt=\"customize-your-search\" width=\"171\" height=\"94\" \/><\/p>\n<p>One of the most useful Search APIs, in my opinion, is the Bing Custom Search. This API allows you to quickly and reliably define the slices of the web from which you want results. This API is very flexible and easy to use. Simply change the parameters of the sites you want and don&#8217;t want and explore site suggestions to intelligently expand the scope of your search domain.<\/p>\n<p>Here at BlueGranite, we have a very active blog written by many of our esteemed consultants. Did you know that many of us have personal blogs, too?<\/p>\n<p>To demo this API, I have created my own custom search engine to pull search results from everyone&#8217;s personal blogs as well as the main <a href=\"\/blog\" target=\"_blank\" rel=\"noopener\">BlueGranite blog<\/a>.<\/p>\n<p>To begin, navigate to <a href=\"https:\/\/www.customsearch.ai\/\">customsearch.ai<\/a>\u00a0and click <strong><i>Get Started<\/i><\/strong>. On the next page, you&#8217;ll need to sign in with your Microsoft\/Office 365 credentials.<\/p>\n<p><img decoding=\"async\" style=\"width: 600px; margin: 0px auto; display: block;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/image-15.png\" alt=\"Bing Custom Search\" width=\"600\" height=\"312.99999999999994\" \/><\/p>\n<p>Next, you will need to agree to the terms and conditions and click <em><strong>Agree<\/strong><\/em>.<\/p>\n<p><img decoding=\"async\" style=\"width: 600px; display: block; margin: 0px auto;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/image-16.png\" alt=\"Bing Custom Search\" width=\"600\" height=\"415.9178433889602\" \/><\/p>\n<p>There are only a couple of steps that you&#8217;ll need to go through to create your customized search. Click <em><strong>Create new instance<\/strong><\/em>\u00a0and give your new custom search a name.<\/p>\n<p><img decoding=\"async\" style=\"width: 600px; display: block; margin: 0px auto;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/image-17.png\" alt=\"Custom Search Instances\" width=\"600\" height=\"484.64017185821695\" \/><img loading=\"lazy\" decoding=\"async\" style=\"width: 500px; display: block; margin: 0px auto;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/image-18.png\" alt=\"Create New Custom Search\" width=\"500\" height=\"321\" \/><\/p>\n<p>Next, you&#8217;ll begin typing in the URLs for the sites you want to search. For my custom search instance, I am including all the URLs for each BlueGranite employee&#8217;s personal site. Note that you can adjust the rankings of each active site and even block particular sites from which you don&#8217;t want search results.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/11\/image-20.png\" alt=\"Search Configuration\" \/><\/p>\n<p>On the next few tabs, the site will give you the API endpoint information if you need to embed these results in your own app. The site also generates code to easily embed the custom search into your own web page.<\/p>\n<h5 style=\"text-align: center;\"><span style=\"color: #007cba;\">Try my custom search for yourself:<\/span><\/h5>\n<p><script type=\"text\/javascript\" id=\"bcs_js_snippet\" src=\"https:\/\/ui.customsearch.ai\/api\/ux\/render?customConfig=2714114541&#038;market=&#038;safeSearch=0&#038;q=\">\/\/ <![CDATA[ \/\/ ]]><\/script><\/p>\n<h5 style=\"text-align: center;\"><span style=\"color: #007cba;\"><em>(Hint &#8211; try searching for &#8220;Power BI&#8221; or &#8220;SSAS&#8221;)<\/em><\/span><\/h5>\n<p>Notice that the search engine returns relevant posts from the BlueGranite blog as well as everyone&#8217;s personal blogs. Imagine using this for a specific set of sites where domain-specific and highly specialized results are needed. For example, you could create a custom search engine of your competitors&#8217; sites or maybe a custom search engine that looks for results related to a specific product.<\/p>\n<p>That&#8217;s it! Easy, huh? In just a few clicks, I have created a custom search engine using the Microsoft Cognitive Services Bing Custom Search API.<\/p>\n<p>Many of these APIs work in a similar way. They are all designed to be easily consumable and flexible for your individual use cases.\u00a0<span style=\"text-align: right;\">Check out all of the Cognitive Services <\/span><a style=\"text-align: right;\" href=\"https:\/\/azure.microsoft.com\/en-us\/services\/cognitive-services\/\" target=\"_blank\" rel=\"noopener\">here<\/a><span style=\"text-align: right;\">.<\/span><\/p>\n<h2>More to Come<\/h2>\n<p>In the coming weeks, we will be showcasing the remaining four Cognitive Services categories: Vision, Speech, Knowledge, and Language. Be sure to <a href=\"\/subscribe\" target=\"_blank\" rel=\"noopener\">subscribe to our blog<\/a> so that you don&#8217;t miss seeing the rest of these amazingly powerful Cognitive Services APIs!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For this exploration of Microsoft\u2019s Cognitive Services APIs, we will be looking into the Search category. Creating your own Bing Search API to add to your apps will give you the ability to comb through billions of web pages, images, videos, and news with a single API call. Read on to learn more.<\/p>\n","protected":false},"author":21,"featured_media":14372,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[260],"tags":[331,319],"class_list":["post-15871","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-ai","tag-cognitive-services","tag-machine-learning-ai","topics-blog"],"acf":[],"_links":{"self":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/15871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/comments?post=15871"}],"version-history":[{"count":0,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/15871\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media\/14372"}],"wp:attachment":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media?parent=15871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/categories?post=15871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/tags?post=15871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}