HOW TO use Bing Search v5 API with JavaScript

Taking off from the single basic JavaScript sample on the newly minted version 5 of Bing Search API, I put together a couple of samples of my own. You'll have to sign-up for a free key from Microsoft Cognitive Services to replace in the code samples to try them & also experiment with all the other APIs that are available



Bing Search API gets not just web search results but also image, news, & videos results for a given query and allows up to 1,000 free transactions per month across all Bing Search APIs

Google Custom Search API has a few additional steps & provides 100 search queries per day for free

This comparison of version 2 and 5 highlights the improvements -
Category Feature v2 v5
Web Search REST API x x
Related searches x x
Ranked Answers
(image, video, news, math, time)
x
Deep links (for first web page result) x
Adult intent signal x
Image Search REST API x x
Enhanced filters: image size, license, style x
Visually similar images and products x
Merchant and recipe sources
(for product and food images)
x
Trending images x
Entity recognition (for people) x
Computer-generated captions x
Video Search REST API x x
Video previews (motion thumbnails) x
Enhanced video metadata
(creator, resolution, view count)
x
Free / Paid video filter x
Trending videos x
News search REST API x x
News articles by category or market x x
Trending news (general or by category) x
Enhanced article metadata, including featured entities
Spell Check REST API x
Autosuggest REST API x
General Location and market awareness x x
Spelling suggestions x x
Safe search x x
Related searches x x
Continuous relevance improvements x
Ongoing support and feature improvements x

Related: Google vs. Microsoft Bing Search APIs: A Detailed Comparison

Comments

Popular posts from this blog

Maven Crash Course - Learn Power Query, Power Pivot & DAX in 15 Minutes

"Data Prep & Exploratory Data Analysis" course by Maven Analytics

Oracle Cloud Infrastructure 2024 Generative AI Professional Course & Certification Exam (1Z0-1127-24)