SlideShare a Scribd company logo
1 of 21
Hacking BOSS

          Sudhir Reddy
        Hacker @Yahoo
BOSS … What ?




        Build your Own Search Service

    “BOSS is a data API. It‟s not a search API”

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


• Monetization - Ads Service : 3rd parties revenue
  share

• Pay per use model. Don’t worry will give you free
  access for hacking 
BOSS features


•   Web, News, Image, and Spelling Suggestion services
•   Time span filtering for News Search
•   Image attributes like height, width, etc
•   Document type filtering
•   And more… !
Boss APIs … Data Request ?
• http://yboss.yahooapis.com/ysearch/{service,*}?
  q={keyword}




Arguments: service, q, start, count, market, format, callback, sites
Operators: And, Or, +(Include), -(Exclude)
Sample Response
BOSS … Authentication ?
• OAUTH 1.0 - HTTP headers or GET params
• Consumer Key and Secret



• Self-serve sample code available
  – PHP: http://oauth.net/code
  – Perl: http://search.cpan.org/dist/Net-OAuth/
  – Ruby: https://gist.github.com/383159
  – C#:
    http://oauth.googlecode.com/svn/code/csharp/OAuth
    Base.cs
  – Java: http://code.google.com/p/oauth-signpost/
BOSS and YQL
• Table Name: boss.search

                    Parameters     Example
     Consumer Key        ck        -
     Consumer Secret     secret    -
     Query Term          q         ‘yahoo’
     Service             service   ‘news’


• e.g. select * from boss.search where ck=… and
  secret=… and q=„yahoo‟ and service=„news‟
Searching in body and in title
 Searching for Dark Knight in the Title on Yahoo
  movies
   q=reviews
    intitle:"darkknight"&sites=movies.yahoo.com




 Searching for Dark Knight in the Title in Yahoo
  movies containing Christian Bale
   q=reviews intitle:"dark knight"
    inbody:"christianbale"&sites=movies.yahoo.com
Image search parameters
 Search for images that are not offensive
    /ysearch/images?q=“Yahoo Hacks”&filter=yes

 Search for images that are wallpaper size
    /ysearch/images?q=“Yahoo Hacks”&dimensions=wallpaper

 Search for an image at a certain refer URL
    /ysearch/images?q=“Yahoo
     Hacks”&refererurl=http://www.flickr.com

• Interesting Output Fields
    format, file size, height, width, title, total result count
News search parameters
 Search news that is less than 7 days old
 /ysearch/news?q=lokpal&age=7d


Search news that is between 20hrs and 2 days old
 /ysearch/news?q=lokpal&age=20h2d

Re-rank news results by date
 /ysearch/news?q=lokpal&ranking=true



Interesting Output Fields
  Source, Date, Source URL
Yahoo! Content Analysis API

• select * from contentanalysis.analyze where
  text='Yahoo Kicks off hacku at IIT Madras';
What can I Hack ?




• Some Useful Data Sources to mashup:
  - Wikipedia, Y! Answers, Wolfram Alpha
  - Twitter,Facebook, Flickr, Youtube, Delicious
  - Foursquare, Maps, Travel
  - IMDB, Amazon, Netflix,Craigslist
  - Open Data, TheInfo.org
   and more…
Previous Hacks
Previous Hack: 4hoursearch.com
Duckduckgo.com
Duckduckgo.com
Previous Hack:
http://keywordfinder.org
Previous Hack:
http://ask-boss.appspot.com
Inquisitor: Browser Extension
Resources
• Yahoo! BOSS: http://developer.yahoo.com/boss
• YQL: http://developer.yahoo.com/yql
• OAuth: http://developer.yahoo.com/oauth/
• YUI: http://developer.yahoo.com/yui/
• Everything@YDN :
  http://developer.yahoo.com/everything.html
• Google App Engine:
  http://appengine.google.com
• Amazon Web Services: http://aws.amazon.com
• Open Data: http://theinfo.org
Happy Hacking 

More Related Content

Viewers also liked (7)

Cpg iitm mar_29_2012_final
Cpg iitm mar_29_2012_finalCpg iitm mar_29_2012_final
Cpg iitm mar_29_2012_final
 
Mobile And The Latency Trap
Mobile And The Latency TrapMobile And The Latency Trap
Mobile And The Latency Trap
 
Yahoo answers
Yahoo answersYahoo answers
Yahoo answers
 
Creative Turtleheads
Creative TurtleheadsCreative Turtleheads
Creative Turtleheads
 
Soundcloud käyttö
Soundcloud käyttöSoundcloud käyttö
Soundcloud käyttö
 
Yahoo @ Nike
Yahoo @ NikeYahoo @ Nike
Yahoo @ Nike
 
Data Architectures for Robust Decision Making
Data Architectures for Robust Decision MakingData Architectures for Robust Decision Making
Data Architectures for Robust Decision Making
 

Similar to Boss hack u-iit-madras-2012

Yahoo! BOSS API external 20091001
Yahoo! BOSS API external 20091001Yahoo! BOSS API external 20091001
Yahoo! BOSS API external 20091001
Fred Meng
 
Data Feed SEO for Affiliates by Will Critchlow
Data Feed SEO for Affiliates by Will CritchlowData Feed SEO for Affiliates by Will Critchlow
Data Feed SEO for Affiliates by Will Critchlow
auexpo Conference
 
Tom Critchlow - Data Feed SEO & Advanced Site Architecture
Tom Critchlow - Data Feed SEO & Advanced Site ArchitectureTom Critchlow - Data Feed SEO & Advanced Site Architecture
Tom Critchlow - Data Feed SEO & Advanced Site Architecture
auexpo Conference
 

Similar to Boss hack u-iit-madras-2012 (20)

BOSS
BOSSBOSS
BOSS
 
Yahoo! Search BOSS
Yahoo! Search BOSSYahoo! Search BOSS
Yahoo! Search BOSS
 
Yahoo! BOSS API external 20091001
Yahoo! BOSS API external 20091001Yahoo! BOSS API external 20091001
Yahoo! BOSS API external 20091001
 
Open hack 2011-ppt-draft-final
Open hack 2011-ppt-draft-finalOpen hack 2011-ppt-draft-final
Open hack 2011-ppt-draft-final
 
Yql hacku iitd_2012
Yql hacku iitd_2012Yql hacku iitd_2012
Yql hacku iitd_2012
 
Y Boss External 20091017
Y Boss External 20091017Y Boss External 20091017
Y Boss External 20091017
 
Data Feed SEO for Affiliates by Will Critchlow
Data Feed SEO for Affiliates by Will CritchlowData Feed SEO for Affiliates by Will Critchlow
Data Feed SEO for Affiliates by Will Critchlow
 
Finding things on the web with BOSS
Finding things on the web with BOSSFinding things on the web with BOSS
Finding things on the web with BOSS
 
Google and Beyond: Advanced Search Engine Hacking
Google and Beyond: Advanced Search Engine HackingGoogle and Beyond: Advanced Search Engine Hacking
Google and Beyond: Advanced Search Engine Hacking
 
Lessons Learned - Building YDN
Lessons Learned - Building YDNLessons Learned - Building YDN
Lessons Learned - Building YDN
 
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
 
Yahoo BOSS Presentation London Open Hack Day Talk Boss
Yahoo BOSS Presentation London Open Hack Day Talk   BossYahoo BOSS Presentation London Open Hack Day Talk   Boss
Yahoo BOSS Presentation London Open Hack Day Talk Boss
 
HackU IIT Kgp 2013 BOSS + CA
HackU IIT Kgp 2013 BOSS + CAHackU IIT Kgp 2013 BOSS + CA
HackU IIT Kgp 2013 BOSS + CA
 
What's New with Schema and Structured Data - Max Prin - SMX Advanced 2019
What's New with Schema and Structured Data - Max Prin - SMX Advanced 2019What's New with Schema and Structured Data - Max Prin - SMX Advanced 2019
What's New with Schema and Structured Data - Max Prin - SMX Advanced 2019
 
Tom Critchlow - Data Feed SEO & Advanced Site Architecture
Tom Critchlow - Data Feed SEO & Advanced Site ArchitectureTom Critchlow - Data Feed SEO & Advanced Site Architecture
Tom Critchlow - Data Feed SEO & Advanced Site Architecture
 
Boss and Cap
Boss and CapBoss and Cap
Boss and Cap
 
Yahoo! Hack India: Hyderabad 2013 | Boss and Cap
Yahoo! Hack India: Hyderabad 2013 | Boss and CapYahoo! Hack India: Hyderabad 2013 | Boss and Cap
Yahoo! Hack India: Hyderabad 2013 | Boss and Cap
 
My Journey into the Terrifying World of Hypermedia
My Journey into the Terrifying World of HypermediaMy Journey into the Terrifying World of Hypermedia
My Journey into the Terrifying World of Hypermedia
 
Introducing Hangout Apps
Introducing Hangout AppsIntroducing Hangout Apps
Introducing Hangout Apps
 
Semtech bizsemanticsearchtutorial
Semtech bizsemanticsearchtutorialSemtech bizsemanticsearchtutorial
Semtech bizsemanticsearchtutorial
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 

Boss hack u-iit-madras-2012

  • 1. Hacking BOSS Sudhir Reddy Hacker @Yahoo
  • 2. BOSS … What ? Build your Own Search Service “BOSS is a data API. It‟s not a search API” Open Yahoo’s core search features via web services to let 3rd parties revolutionize Search
  • 3. What else ? • Monetization - Ads Service : 3rd parties revenue share • Pay per use model. Don’t worry will give you free access for hacking 
  • 4. BOSS features • Web, News, Image, and Spelling Suggestion services • Time span filtering for News Search • Image attributes like height, width, etc • Document type filtering • And more… !
  • 5. Boss APIs … Data Request ? • http://yboss.yahooapis.com/ysearch/{service,*}? q={keyword} Arguments: service, q, start, count, market, format, callback, sites Operators: And, Or, +(Include), -(Exclude)
  • 7. BOSS … Authentication ? • OAUTH 1.0 - HTTP headers or GET params • Consumer Key and Secret • Self-serve sample code available – PHP: http://oauth.net/code – Perl: http://search.cpan.org/dist/Net-OAuth/ – Ruby: https://gist.github.com/383159 – C#: http://oauth.googlecode.com/svn/code/csharp/OAuth Base.cs – Java: http://code.google.com/p/oauth-signpost/
  • 8. BOSS and YQL • Table Name: boss.search Parameters Example Consumer Key ck - Consumer Secret secret - Query Term q ‘yahoo’ Service service ‘news’ • e.g. select * from boss.search where ck=… and secret=… and q=„yahoo‟ and service=„news‟
  • 9. Searching in body and in title  Searching for Dark Knight in the Title on Yahoo movies  q=reviews intitle:"darkknight"&sites=movies.yahoo.com  Searching for Dark Knight in the Title in Yahoo movies containing Christian Bale  q=reviews intitle:"dark knight" inbody:"christianbale"&sites=movies.yahoo.com
  • 10. Image search parameters  Search for images that are not offensive  /ysearch/images?q=“Yahoo Hacks”&filter=yes  Search for images that are wallpaper size  /ysearch/images?q=“Yahoo Hacks”&dimensions=wallpaper  Search for an image at a certain refer URL  /ysearch/images?q=“Yahoo Hacks”&refererurl=http://www.flickr.com • Interesting Output Fields  format, file size, height, width, title, total result count
  • 11. News search parameters  Search news that is less than 7 days old /ysearch/news?q=lokpal&age=7d Search news that is between 20hrs and 2 days old /ysearch/news?q=lokpal&age=20h2d Re-rank news results by date /ysearch/news?q=lokpal&ranking=true Interesting Output Fields  Source, Date, Source URL
  • 12. Yahoo! Content Analysis API • select * from contentanalysis.analyze where text='Yahoo Kicks off hacku at IIT Madras';
  • 13. What can I Hack ? • Some Useful Data Sources to mashup: - Wikipedia, Y! Answers, Wolfram Alpha - Twitter,Facebook, Flickr, Youtube, Delicious - Foursquare, Maps, Travel - IMDB, Amazon, Netflix,Craigslist - Open Data, TheInfo.org and more…
  • 20. Resources • Yahoo! BOSS: http://developer.yahoo.com/boss • YQL: http://developer.yahoo.com/yql • OAuth: http://developer.yahoo.com/oauth/ • YUI: http://developer.yahoo.com/yui/ • Everything@YDN : http://developer.yahoo.com/everything.html • Google App Engine: http://appengine.google.com • Amazon Web Services: http://aws.amazon.com • Open Data: http://theinfo.org