SlideShare a Scribd company logo
1 of 50
Download to read offline
Build your Own Search Service




                                                 Saurabh Sahni
                                   Developer, hacker, evangelist




Yahoo! HackU IIIT Hyderabad | 22nd Jan 2010
Outline
•  About BOSS API
  –  What?
  –  Why?
  –  Features
•  What can be built with the BOSS API?
•  How to use it
  –  BOSS API
  –  Code example
  –  BOSS Mashup framework
About BOSS API
What?


•  Open Yahoo’s core search features via
   web services to let 3rd parties
   revolutionize Search




     http://developer.yahoo.com/search/boss
Opening the search technology stack




                                       Assist              Rank
             EXTRACT




     CRAWL   SPAM <-> Gold   Usage              Retrieve


                             Web Map

              Analyze
                             Index      Index
Opening the search technology stack


                                          Your App here
                                                WEB API

                                       Assist              Rank
             EXTRACT




     CRAWL   SPAM <-> Gold   Usage              Retrieve


                             Web Map

              Analyze
                             Index      Index
Why?

•  Removes entry barriers
•  Asset to Innovate
  –  Develop new relevance models
  –  Change presentation style
•  Search anywhere
  –  Improve Vertical Quality with Web comprehensiveness
BOSS API features
•  No branding or attribution
•  Ability to change presentation style
•  Ability to re-order results and blend-in additional
   content
•  Access to multiple verticals (web search, image,
   news)
•  Keyword suggestions, spell checks
•  Semantic data, in-links, abstracts
•  Ability to monetize
What can be built with the
             BOSS API?
middlespot.com




10 
Inquisitor: Browser Extenstion




11 
Cluuz: http://cluuz.com
Keyword finder - http://keywordfinder.org/
askBOSS: http://ask-boss.appspot.com/
askBOSS: http://ask-boss.appspot.com/
askBOSS: http://ask-boss.appspot.com/
Webmeme: http://www.webmeme.in




17 
How to use it?
Get Started
•  Register for an application id
   http://developer.yahoo.com/wsregapp/
Get Started…
•  Documentation
   http://developer.yahoo.com/search/boss/
   boss_guide/

•  Code samples: Javascript, PHP and
   Python
   http://www.saurabhsahni.com/boss-
   examples.zip
BOSS Search API Interface

http://boss.yahooapis.com/ysearch/{vert}/v1/{query}

 •  {query}: term to look for (url-encoded)
 •  {vert} := {web, news, images, spelling}
 •  @ required
   –  appid
 •  @ optional
   –  start, count, lang, region, format, callback,
      sites, view
(Source: http://en.wikipedia.org/wiki/File:Slumdog_Millionaire_poster.jpg)
BOSS API
•  Search for avatar:
  –  http://boss.yahooapis.com/ysearch/web/v1/
     avatar?appid=xyz&format=xml
BOSS API: XML response
h"p://boss.yahooapis.com/ysearch/web/v1/avatar?appid=xyz&format=xml 
Site Restrict Search


•  Search for avatar on selected movie
   sites
  –  Add param
     sites=indiatimes.com,movies.yahoo.com,i
     mdb.com
  –  http://boss.yahooapis.com/ysearch/web/v1/avatar?
     appid=xyz&sites=imdb.com
     %2Cmovies.yahoo.com&format=xml
Site Restrict Search
Search images
•  http://boss.yahooapis.com/ysearch/images/v1/
   avatar?dimensions=large
http://boss.yahooapis.com/ysearch/images/v1/
avatar
Search News
•  http://boss.yahooapis.com/ysearch/news/v1/
   avatar?age=15d
Code Example
    Movie Search
Movie Search Code Example
http://www.saurabhsahni.com/boss-examples.zip
More with
BOSS API
Related keywords


   Add parameter view=keyterms
   –  http://boss.yahooapis.com/ysearch/web/v1/avatar?
      appid=xyz&view=keyterms&format=xml
http://boss.yahooapis.com/ysearch/web/v1/avatar
&appid=xyz&view=keyterms&format=xml
Semantic Data
•  Access structured data acquired through
   SearchMonkey
Semantic Data




 view=searchmonkey_feed               view=searchmonkey_rdf




 http://developer.yahoo.com/search/boss/stuctureddata.html
Long abstracts
•  Add parameter abstract=long
  –  get up to 300 characters instead of 130
Spell Check 

http://boss.yahooapis.com/ysearch/spelling/v1/avataar?
format=xml



Response
Site Explorer
•  Get page inlinks
  –  http://boss.yahooapis.com/ysearch/se_inlink/v1/
     {URL}?appid={APPID}


•  Page data: collection of subpages in a
   domain
  –  http://boss.yahooapis.com/ysearch/se_pagedata/v1/
     {URL}?appid={APPID}
BOSS Mashup Framework
•  Python (v2.5+) library

•  BOSS Search SDK plus …

•  SQL for remixing arbitrary XML/JSON sources



   http://developer.yahoo.com/search/boss/mashup.html
BMF + Google App Engine
•  Enhanced version of BMF to GAE platform
•  http://zooie.wordpress.com/2008/08/04/yahoo-boss-google-app-
   engine-integrated/



•  Enables quick deployment of BOSS
   applications online
More BOSS Implementations


•  http://mashable.com/boss/
•  http://delicious.com/tag/bossmashup
•  Add yours by tagging it with
   “bossmashup” on
   Del.icio.us!
One more thing…
 One more thing…
BOSS in Academic Research
•  The biggest dataset available on web
•  Very useful for Web-mining research
   experiments
  –  Natural language processing
  –  Semantic extraction
  –  Related keywords
  –  Similarity detection
  –  Clustering algorithms
  –  Spelling corrections
Questions?

Learn more at:
http://developer.yahoo.com/search/boss/

Slides at:
http://www.slideshare.net/saurabhsahni/
Appendix
Search UI Templates in BOSS Mashup Framework




 BOSS Mashup Framework simplifies aggregating and presenting
 multiple data sources
BMF Features

 •  select, group, sort, union, joins, udfs, where
 •  Text normalization and duplicate removal
 •  All-in-memory storage and retrieval
    operations
 •  Ability to join lists of tables via an
    arbitrary predicate function (map-like)
 •  Search UI template framework
 •  Single search function provides total access to
    BOSS REST API

More Related Content

Viewers also liked (8)

Arte con sandías
Arte con sandíasArte con sandías
Arte con sandías
 
Casualidad o no
Casualidad o noCasualidad o no
Casualidad o no
 
Yahoo! Query Language - Hadoop India Summit 2011
Yahoo! Query Language - Hadoop India Summit 2011Yahoo! Query Language - Hadoop India Summit 2011
Yahoo! Query Language - Hadoop India Summit 2011
 
BOSS Open Hack Day, Bangalore
BOSS Open Hack Day, BangaloreBOSS Open Hack Day, Bangalore
BOSS Open Hack Day, Bangalore
 
BOSS: HackU IIT Bombay
BOSS: HackU IIT BombayBOSS: HackU IIT Bombay
BOSS: HackU IIT Bombay
 
YQL & Yahoo! APIs - Open Hack India 2011
YQL & Yahoo! APIs - Open Hack India 2011YQL & Yahoo! APIs - Open Hack India 2011
YQL & Yahoo! APIs - Open Hack India 2011
 
Hacking & everything you need to survice a hackday - Yahoo! Agency Hack Day N...
Hacking & everything you need to survice a hackday - Yahoo! Agency Hack Day N...Hacking & everything you need to survice a hackday - Yahoo! Agency Hack Day N...
Hacking & everything you need to survice a hackday - Yahoo! Agency Hack Day N...
 
Hacking 101 & Yahoo Mobile Developer Suite - YMDC NYC
Hacking 101 & Yahoo Mobile Developer Suite - YMDC NYCHacking 101 & Yahoo Mobile Developer Suite - YMDC NYC
Hacking 101 & Yahoo Mobile Developer Suite - YMDC NYC
 

Similar to BOSS: Yahoo HackU IIIT Hyderabad

Yahoo! BOSS API external 20091001
Yahoo! BOSS API external 20091001Yahoo! BOSS API external 20091001
Yahoo! BOSS API external 20091001
Fred Meng
 
Web Application Frameworks (WAF)
Web Application Frameworks (WAF)Web Application Frameworks (WAF)
Web Application Frameworks (WAF)
Ako Kaman
 
Global Search Strategy
Global Search StrategyGlobal Search Strategy
Global Search Strategy
adlift
 

Similar to BOSS: Yahoo HackU IIIT Hyderabad (20)

Y Boss External 20091017
Y Boss External 20091017Y Boss External 20091017
Y Boss External 20091017
 
Yahoo! BOSS API external 20091001
Yahoo! BOSS API external 20091001Yahoo! BOSS API external 20091001
Yahoo! BOSS API external 20091001
 
Boss hack u-iit-madras-2012
Boss hack u-iit-madras-2012Boss hack u-iit-madras-2012
Boss hack u-iit-madras-2012
 
BOSS: HackU IIT Delhi
BOSS: HackU IIT DelhiBOSS: HackU IIT Delhi
BOSS: HackU IIT Delhi
 
Site Audits in 10 Minutes
Site Audits in 10 MinutesSite Audits in 10 Minutes
Site Audits in 10 Minutes
 
SEO for Developers
SEO for DevelopersSEO for Developers
SEO for Developers
 
Yahoo! Search BOSS Hack Days in Paris and London
Yahoo! Search BOSS Hack Days in Paris and LondonYahoo! Search BOSS Hack Days in Paris and London
Yahoo! Search BOSS Hack Days in Paris and London
 
11 Advanced Uses of Screaming Frog Nov 2019 DMSS
11 Advanced Uses of Screaming Frog Nov 2019 DMSS11 Advanced Uses of Screaming Frog Nov 2019 DMSS
11 Advanced Uses of Screaming Frog Nov 2019 DMSS
 
Restful design at work v2.0
Restful design at work v2.0Restful design at work v2.0
Restful design at work v2.0
 
You are the BOSS - HackU 2011
You are the BOSS - HackU 2011You are the BOSS - HackU 2011
You are the BOSS - HackU 2011
 
Building SEO friendly SPA using PhantomJS, Node.js, Angular.js and HTML5
Building SEO friendly SPA using PhantomJS, Node.js, Angular.js and HTML5Building SEO friendly SPA using PhantomJS, Node.js, Angular.js and HTML5
Building SEO friendly SPA using PhantomJS, Node.js, Angular.js and HTML5
 
Web Application Frameworks (WAF)
Web Application Frameworks (WAF)Web Application Frameworks (WAF)
Web Application Frameworks (WAF)
 
Global Search Strategy
Global Search StrategyGlobal Search Strategy
Global Search Strategy
 
New era of customizing site provisioning
New era of customizing site provisioningNew era of customizing site provisioning
New era of customizing site provisioning
 
SPSBE18: New era of customizing site provisioning
SPSBE18: New era of customizing site provisioningSPSBE18: New era of customizing site provisioning
SPSBE18: New era of customizing site provisioning
 
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014Technical SEO: Crawl Space Management - SEOZone Istanbul 2014
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014
 
Web API Test Automation Using Frisby & Node.js
Web API Test Automation Using Frisby  & Node.jsWeb API Test Automation Using Frisby  & Node.js
Web API Test Automation Using Frisby & Node.js
 
Web API Test Automation using Frisby & Node.js
Web API Test Automation using Frisby  & Node.jsWeb API Test Automation using Frisby  & Node.js
Web API Test Automation using Frisby & Node.js
 
RESTful web APIs (build, document, manage)
RESTful web APIs (build, document, manage)RESTful web APIs (build, document, manage)
RESTful web APIs (build, document, manage)
 
Technical SEO for WordPress Developers, Designers and Webmasters
Technical SEO for WordPress Developers, Designers and WebmastersTechnical SEO for WordPress Developers, Designers and Webmasters
Technical SEO for WordPress Developers, Designers and Webmasters
 

More from Saurabh Sahni

Finding things with BOSS
Finding things with BOSSFinding things with BOSS
Finding things with BOSS
Saurabh Sahni
 
Let the hacking continue - Post Open Hack India Mixer
Let the hacking continue - Post Open Hack India MixerLet the hacking continue - Post Open Hack India Mixer
Let the hacking continue - Post Open Hack India Mixer
Saurabh Sahni
 
Hackuzela: Hacking Yahoo! Social
Hackuzela: Hacking Yahoo! SocialHackuzela: Hacking Yahoo! Social
Hackuzela: Hacking Yahoo! Social
Saurabh Sahni
 

More from Saurabh Sahni (13)

Finding things on the web with Yahoo! BOSS: IIT Delhi
Finding things on the web with Yahoo! BOSS: IIT DelhiFinding things on the web with Yahoo! BOSS: IIT Delhi
Finding things on the web with Yahoo! BOSS: IIT Delhi
 
Hacking 101
Hacking 101Hacking 101
Hacking 101
 
YQL: Hacking on steroids - Yahoo! Open Hack Day 2012
YQL: Hacking on steroids - Yahoo! Open Hack Day 2012YQL: Hacking on steroids - Yahoo! Open Hack Day 2012
YQL: Hacking on steroids - Yahoo! Open Hack Day 2012
 
Hacking for Innovation - WPP, New York
Hacking for Innovation - WPP, New YorkHacking for Innovation - WPP, New York
Hacking for Innovation - WPP, New York
 
Innovating the Hacker Way
Innovating the Hacker WayInnovating the Hacker Way
Innovating the Hacker Way
 
Finding things with BOSS
Finding things with BOSSFinding things with BOSS
Finding things with BOSS
 
Let the hacking continue - Post Open Hack India Mixer
Let the hacking continue - Post Open Hack India MixerLet the hacking continue - Post Open Hack India Mixer
Let the hacking continue - Post Open Hack India Mixer
 
Hack 101 - IIT Delhi HackU 2011
Hack 101 - IIT Delhi HackU 2011Hack 101 - IIT Delhi HackU 2011
Hack 101 - IIT Delhi HackU 2011
 
Yahoo! Open Stack & YQL
Yahoo! Open Stack & YQLYahoo! Open Stack & YQL
Yahoo! Open Stack & YQL
 
Hacking for Innovation: IIT Kharagpur
Hacking for Innovation: IIT KharagpurHacking for Innovation: IIT Kharagpur
Hacking for Innovation: IIT Kharagpur
 
HackU: IIT Madras: Hacking Yahoo! Social
HackU: IIT Madras: Hacking Yahoo! SocialHackU: IIT Madras: Hacking Yahoo! Social
HackU: IIT Madras: Hacking Yahoo! Social
 
Open Hack Day Bangalore: Hacking Yahoo! Social
Open Hack Day Bangalore: Hacking Yahoo! SocialOpen Hack Day Bangalore: Hacking Yahoo! Social
Open Hack Day Bangalore: Hacking Yahoo! Social
 
Hackuzela: Hacking Yahoo! Social
Hackuzela: Hacking Yahoo! SocialHackuzela: Hacking Yahoo! Social
Hackuzela: Hacking Yahoo! Social
 

Recently uploaded

Recently uploaded (20)

On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 

BOSS: Yahoo HackU IIIT Hyderabad