HACKING WITH YAHOO!BOSSRahul HampoleSr Product Manager Yahoo! BOSSrhampole@yahoo-inc.com@ysearchboss
WHAT DOES BOSS GIVE YOU? Search Data and Infrastructure Monetization (We give you Ads!!) Support and ToolsBOSS is a ser...
Restful XML and JSON APISearch Data - Web, Image, Spelling, News, Also Try, Blogs and Search AdsGeo Services – Placefin...
WHAT ELSE DO YOU GETWeb and Limited Web results (smaller subset) Complex query combinations and filters Searches for co...
YAHOO! BOSS GEO SERVICSPlacefinder1. Geocoding – Give it anaddress and get back aLat/Lon2. Address normalization3. Reverse...
HOW DO I HACK WITH IT?
THE QUERYTells you what the user is looking forPowers secondary APIsCan be generated by a search box, URL,tags or keywo...
SAMPLE CALLSGetting multiple data sets /ysearch/web,images,news?q=obama /ysearch/web,images,news?web.q=obama&images.q=f...
UNARY OPERATORSSearch for Batman but not “Dark Knight” q=(batman -“Dark Knight")Find pages with “Heath Ledger” but not ...
OUTPUT
IMAGE SEARCH PARAMETERSSearch for images that are not offensive /ysearch/images?q=“san francisco”&filter=yesSearch for ...
NEWS SEARCH PARAMETERSSearch news that is less than 7 days old/ysearch/news? q=osama&age=7dSearch news that is between ...
BOSS + YQLTable Name: boss.searche.g. select * from boss.search where ck=… andsecret=… and q=„yahoo‟ and service=„news‟Par...
UNDERSTAND OAUTHIdentificationConsumer Key – Used to make a call to the APIConsumer Secret – Used for 3 legged oAuth (not ...
HACK IDEAS AND USEFUL API’SRealTime Twitter/Facebook APIMobile ApplicationsVideo YouTube data APIVertical search eng...
HACK AWAY1. We have BOSS Keys available for you Find me if you don’t have them2. Code samples in the BOSS Docs3. In depth...
HACK AWAY!!Rahul HampoleSr Product Manager Yahoo! BOSSrhampole@yahoo-inc.com@ysearchboss
BOSS
Upcoming SlideShare
Loading in...5
×

BOSS

738

Published on

Slides for Rahul Hampole's BOSS talk for Yahoo! Hack Europe: London 2013.

Published in: Technology, Design
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
738
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • Add Images here
  • Choose a funny image here
  • BOSS

    1. 1. HACKING WITH YAHOO!BOSSRahul HampoleSr Product Manager Yahoo! BOSSrhampole@yahoo-inc.com@ysearchboss
    2. 2. WHAT DOES BOSS GIVE YOU? Search Data and Infrastructure Monetization (We give you Ads!!) Support and ToolsBOSS is a service that provides you (thedeveloper) flexible access to different types ofdata from Yahoo and allows you to buildpowerful commercial applications with thatdata.BOSS provides you Search Advertisingand simple terms so that you canmonetize that innovative product andcontinue to invest your personal time init.BOSS also gives you Support and Tools toget your product working.
    3. 3. Restful XML and JSON APISearch Data - Web, Image, Spelling, News, Also Try, Blogs and Search AdsGeo Services – Placefinder & PlaceSpotterFlexibility to Blend and Re-rank Results Create your own look and feelChange rankingMix it with other API’soAuth based AuthenticationWHAT DOES THAT MEAN?
    4. 4. WHAT ELSE DO YOU GETWeb and Limited Web results (smaller subset) Complex query combinations and filters Searches for content on multiple marketsImage attributes like height, width, etcTime span filtering for News SearchExtended abstractsRecognizes most search filters from Yahoo! and Google (backdoor hacks)
    5. 5. YAHOO! BOSS GEO SERVICSPlacefinder1. Geocoding – Give it anaddress and get back aLat/Lon2. Address normalization3. Reverse Geocoding – Giveit a lat/long and get anaddressPlaceSpotter1. Recognize geographicalentities available in textualcontent2. Understand the meaningof those entities3. Couple with Geoplanet tounderstand geographicalmeaning6Learn more at http://developer.yahoo.com/boss/geo/
    6. 6. HOW DO I HACK WITH IT?
    7. 7. THE QUERYTells you what the user is looking forPowers secondary APIsCan be generated by a search box, URL,tags or keyword extraction from the page.Generates related topicsThe Query is your BFF!e.g. http://yboss.yahooapis.com/ysearch/web?q=“Dark Knight”&format=xml
    8. 8. SAMPLE CALLSGetting multiple data sets /ysearch/web,images,news?q=obama /ysearch/web,images,news?web.q=obama&images.q=flower&news.q=egyptSearching through sites A Simple Movie Search /ysearch/web?q=“Dark Knight”&sites=movies.yahoo.com,netflix.com,imdb.comAND/OR operators /ysearch/web?q="stevejobs"AND((ipad)OR(iphone))&sites=bestbuy.com,newegg.com
    9. 9. UNARY OPERATORSSearch for Batman but not “Dark Knight” q=(batman -“Dark Knight")Find pages with “Heath Ledger” but not “DarkKnight” q=+”heath ledger”–”DarkKnight”&sites=movies.yahoo.com
    10. 10. OUTPUT
    11. 11. IMAGE SEARCH PARAMETERSSearch for images that are not offensive /ysearch/images?q=“san francisco”&filter=yesSearch for images that are wallpaper size /ysearch/images?q=“san francisco”&dimensions=wallpaperSearch for a image at a certain refer URL /ysearch/images?q=yahoo&refererurl=http://www.flickr.comInteresting Output Fields format, file size, height, width, title, total result count
    12. 12. NEWS SEARCH PARAMETERSSearch news that is less than 7 days old/ysearch/news? q=osama&age=7dSearch news that is between 20hrs and 2 days old/ysearch/news?q=osama&age=20h2dRe-rank news results by date/ysearch/news?q=osama&ranking=trueInteresting Output FieldsSource, Date, Source URL
    13. 13. BOSS + YQLTable Name: boss.searche.g. select * from boss.search where ck=… andsecret=… and q=„yahoo‟ and service=„news‟Parameters ExampleConsumer Key ck -Consumer Secret secret -Query Term q ‘yahoo’Service service ‘news’
    14. 14. UNDERSTAND OAUTHIdentificationConsumer Key – Used to make a call to the APIConsumer Secret – Used for 3 legged oAuth (not used for BOSS)Making a call(www.oauth.net/code)-Consumer Key-Nonce – Random string generated by oAuth (prevents replay attacks)-Signature – Generated by library-Signature Method – Various types of methods supported (e.g. HMAC-SHA1)-oAuth Timestamp –Unix time (valid for 5 minutes only)-oAuth version – 1.0We have code samples in most languages on BOSS Site
    15. 15. HACK IDEAS AND USEFUL API’SRealTime Twitter/Facebook APIMobile ApplicationsVideo YouTube data APIVertical search engines Programmable web has interesting API‟sLocal + Search Pull entities using Placespotter andrecognize relationships between contentChrome extensions
    16. 16. HACK AWAY1. We have BOSS Keys available for you Find me if you don’t have them2. Code samples in the BOSS Docs3. In depth demo later today Build a location aware news service17
    17. 17. HACK AWAY!!Rahul HampoleSr Product Manager Yahoo! BOSSrhampole@yahoo-inc.com@ysearchboss
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×