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 ...
What else ?• Monetization - Ads Service : 3rd parties revenue  share• Pay per use model. Don’t worry will give you free  a...
BOSS features•   Web, News, Image, and Spelling Suggestion services•   Time span filtering for News Search•   Image attrib...
Boss APIs … Data Request ?• http://yboss.yahooapis.com/ysearch/{service,*}?  q={keyword}Arguments: service, q, start, coun...
Sample Response
BOSS … Authentication ?• OAUTH 1.0 - HTTP headers or GET params• Consumer Key and Secret• Self-serve sample code available...
BOSS and YQL• Table Name: boss.search                    Parameters     Example     Consumer Key        ck        -     Co...
Searching in body and in title Searching for Dark Knight in the Title on Yahoo  movies   q=reviews    intitle:"darkknigh...
Image search parameters Search for images that are not offensive    /ysearch/images?q=“Yahoo Hacks”&filter=yes Search f...
News search parameters Search news that is less than 7 days old /ysearch/news?q=lokpal&age=7dSearch news that is betwee...
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...
Previous Hacks
Previous Hack: 4hoursearch.com
Duckduckgo.comDuckduckgo.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.yaho...
Happy Hacking 
Upcoming SlideShare
Loading in …5
×

Boss hack u-iit-madras-2012

1,855 views
1,795 views

Published on

IIT Madras Hack U 2012 - Hacking BOSS

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,855
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Boss hack u-iit-madras-2012

  1. 1. Hacking BOSS Sudhir Reddy Hacker @Yahoo
  2. 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. 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. 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. 5. Boss APIs … Data Request ?• http://yboss.yahooapis.com/ysearch/{service,*}? q={keyword}Arguments: service, q, start, count, market, format, callback, sitesOperators: And, Or, +(Include), -(Exclude)
  6. 6. Sample Response
  7. 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. 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. 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. 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. 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=trueInteresting Output Fields  Source, Date, Source URL
  12. 12. Yahoo! Content Analysis API• select * from contentanalysis.analyze where text=Yahoo Kicks off hacku at IIT Madras;
  13. 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…
  14. 14. Previous Hacks
  15. 15. Previous Hack: 4hoursearch.com
  16. 16. Duckduckgo.comDuckduckgo.com
  17. 17. Previous Hack:http://keywordfinder.org
  18. 18. Previous Hack:http://ask-boss.appspot.com
  19. 19. Inquisitor: Browser Extension
  20. 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
  21. 21. Happy Hacking 

×