2. What We’re Going to Cover
• YQL Overview
• Making Queries and the Console Sandbox
• Demo
• Open Data Tables and Execute (Server-Side
JavaScript)
• Final Lessons
8. Trouble with Data
• Need to find data API
• Get Access – Signup for key
• Find data endpoint
• Read docs to learn what parameters you
have
• Get data in obscure format
• Use data after converting and filtering
• More APIs you use, more is your
annoyance
9. To make data access easy on
the web,
Yahoo! created YQL
10. =
YQL turns web services and
data on the web into
databases.
18. Accessing Private Data
• http://query.yahooapis.com/v1/yql
Uses OAuth 1.0 for authorization
OAuth is complicated – use one of our SDKs at
https://github.com/yahoo
25. Query Samples
• SELECT * FROM twitter.search where q='hackathon’ limit 5
• select * from answers.search where query="cars" and type="resolved"
• select * from google.translate where q="this is a test" and target="hi";
• select * from google.translate where q in (select text from twitter.search
where q="hackday") and target='hi';
• select * from search.termextract where context in (select description from
rss where url='http://rss.news.yahoo.com/rss/topstories')
26. Query Samples
• select * from yahoo.finance.quotes where symbol in
("YHOO","AAPL","GOOG","MSFT")
• insert into yahoo.shortener (url, keysize) values
('http://www.javarants.com', 5)
• select * from craigslist.search where location="bangalore" and
type="apa" and query="indiranagar”
• select * from html where url="http://finance.yahoo.com/q?s=yhoo"
and xpath='//div[@id="yfi_headlines"]/div[2]/ul/li/a’
32. Upload XML to our Github
http://github.com/yql/yql-tables
33. Or to your own Site
• The USE clause
USE 'http://www.mysite.com/my_table.xml'
AS mytable;
SELECT * FROM mytable
WHERE user='john_doe'
34. You can even write server side
javascript to build a webservice
35. Final Lessons
• YQL is a skeleton key for all Yahoo! APIs
• Open data tables allow you to create new data feeds
out of one or many different raw sources
• There are 1200+ Tables in YQL covering all major APIs
on the web
• Use SDKs when accessing private data that requires
OAuth
36. Final Lessons: Links
• All Yahoo! APIs and Services
• http://developer.yahoo.com/everything.html
• YQL Documentation
• http://developer.yahoo.com/yql
• YQL Console
• http://developer.yahoo.com/yql/console
• YQL Github Account (Contribute Tables)
• http://github.com/yql/yql-tables
Give you an overview of YQLHow can you use it for your hacksWe will see lots of examples How you can extend by creating new APIs out of webpages/data sources and for executing JS on server orQnA
Community ResourcesHelping you be successful in using Yahoo! Web Services isn't just about code and documentation. We want to make it easy for developers to get in touch with us and others who are using our services to answer and ask questions, toss around ideas, and give your feedback on what services we could offer next.ForumsYDN General BoardsDesign PatternsHotJobsSearchYOSAPTMusicWidgetsGeoPlanetOpenIDY! GroupsAddress BookAnswersFireEagleDel.icio.usTrafficFlickrMailSearchBOSSMapsJavaScriptSilverlightMerchant SolutionsSearch MarketingExceptional PerformanceYUIJava.NetFlashYDN EUAuthPHPPythonRubyPerlEventsWant your tech event appear in the YDN 'Upcoming Events' stream on developer.yahoo.com homepage? List your event on Upcoming and then add it to the Yahoo! Developer Network group on Upcoming. If you are setting up a tech event for developers or designers and would like some Yahoo! involvement, please contact us.ExpertsYahoo! Developer Network is on the lookout for experts to share knowledge and help grow our developer communities. If you are interested in applying to moderate a *group* or forum and become an official expert, please contact us for more information. Remember, we pay in hugs, link-love and schwag only.BlogThe YDN blog is where we talk about our various Yahoo! developer offerings and YDN events around the world. Your comments welcome. If you have a suggestion for the blog or a blog post you'd like to write about your experiences using our APIs or services, let us know. We are particularly interested in posts using Yahoo! APIs, tools, webservices and coverage of tech events. If you need inspiration or want to run some ideas by us, please contact us.YDN TheaterYDN Theater is chock-full of API deep dives, developer interviews, cutting- edge technologies, and recaps of tech events you wish you hadn't missed. If you have an idea for a story, please contact us.