3. Over
view
Overview
• Search and Infrastructure
– Access to diff types of data
– Build powerful commercial application
• Monetization
– Ads - $$$$
• Support
How to Hack –
Sample Queries
DEMO Understanding
Oauth
Hack Idea
5. What kind of data
• RESTful XML and json data
– Web, Image, Video and many
many more ….
– Geo services – Place finder &
Place Spotter
Overview DEMO Understanding
Oauth
Hack Idea
• Blending and re-ranking
New look
Ranking change
Mix with other API’s
• Secure
Oauth based Authentication
How to Hack
Sample Queries
6. What else
• Web and limited web results
– Complex query combination
– Search from different market
• Images attributes
• Time Span – News
• Extended Abstracts
Overview How to Hack
Sample Queries
Understanding
Oauth
Hack IdeaDEMO
7. Geo Services
• Placefinder
– Understands location based on location coordinates and vice versa
• Placespotter
– Spots location from unstructured query
http://developer.yahoo.com/boss/geo/
Overview How to Hack
Sample Queries
Understanding
Oauth
Hack IdeaDEMO
8. CAP
• Detects data from unstructured query
– Entities/concepts
– Categories
– Relationships
– Wiki links
• YQL Table : contentanalysis.analyze
Overview How to Hack
Sample Queries
Understanding
Oauth
Hack IdeaDEMO
10. 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!
Overview How to Hack
Sample Queries
Understanding
Oauth
Hack IdeaDEMO
11. BOSS Sample calls
Getting multiple data sets
/ysearch/web,images,news?q=“marissa mayer”
/ysearch/web,images,news?web.q=“marissa mayer”&images.q=“hacku”&news.q=“yahoo”
Searching through sites
A Simple Movie Search
/ysearch/web?q=“Dark Knight Rises”&
sites=movies.yahoo.com,netflix.com,imdb.com
AND/OR operators
/ysearch/web?q="steve jobs"AND((ipad)OR(iphone))&sites=bestbuy.com,newegg.com
Unary operators (+/-)
/ysearch/web?q=+“heath ledger” –”dark knight”
Overview How to Hack
Sample Queries
Understanding
Oauth
Hack IdeaDEMO
12. Images
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
Interesting Output Fields
- format, file size, height, width, title, total result count
Overview How to Hack
Sample Queries
Understanding
Oauth
Hack IdeaDEMO
13. News
Search news that is less than 7 days old
/ysearch/news? q=osama&age=7d
Re-rank news results by date
/ysearch/news?q=osama&sort=date
Interesting Output Fields
Source, Date, Source URL
Overview How to Hack
Sample Queries
Understanding
Oauth
Hack IdeaDEMO
14. Understand oAuth
Identification
• Consumer Key – Used to make a call to the API
• Consumer 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 version – 1.0
Overview What type of
Data?
DEMO Understanding
Oauth
Hack Idea
We have code samples in
most languages on BOSS Site
16. Hack Ideas
RealTime
Facebook API
Mobile Applications
Video
YouTube data API
Vertical search engines
Programmable web has interesting API’s
Local + Search
Pull entities using Placespotter and
recognize relationships between content
Chrome extensions
Overview What type of
Data?
How to Hack
Sample Queries
Understanding
Oauth
Hack
Idea