SlideShare una empresa de Scribd logo
1 de 27
Descargar para leer sin conexión
YQL
One API to query them all
Sumeet Mulani
[Technical Yahoo!]
@teemus
3
#yhackhyderabad2013
data manipulation
hacks = +
data visualisation
4
The internet is data-heavy!
5
<h#ps://www.flickr.com/photos/nadircruise/8593208924/>	
  
ProgrammableWeb.com – 9504 APIs
6
The problems with APIs…
•  Discovery (Endpoints,
capabilities, etc.)
•  Access (API keys, secrets,
etc.)
•  RTFM (A pain when you
are in hack mode!)
•  Data massaging
(Conversion, filtering, etc.)
•  The more, the merrier,
NOT
7
<h#p://en.wikipedia.org/wiki/File:The_Scream.jpg>	
  
YQL #FTW
8
Make data access easy for the web!
9
YQL turns web services and data on
the internet into databases.
SQL-like syntax
SELECT {what}
FROM {where}
WHERE {conditions}
10
Select
Filter
Sort
Limit
Insert
Update
Delete
<h#ps://www.flickr.com/photos/capcase/4970062156/>	
  
11
http://developer.yahoo.com/yql/console
12
Finding videos on YouTube…
SELECT *
FROM youtube.search
WHERE query="russell peters"
13
14
Stock quotes, anyone?
SELECT *
FROM yahoo.finance.quotes
WHERE symbol
IN ("YHOO", "AAPL", "GOOG",
"AMZN”, “FB”);
15
Search craigslist…
SELECT *
FROM craigslist.search
WHERE location="sfbay”
AND type="sss”
AND query="dj mixer"
16
One-line URL shortener…
INSERT INTO
yahoo.y.ahoo.it (url, keysize)
VALUES
('http://9to5mac.com/', 5)
17
Retrieve my Yahoo! contacts
SELECT *
FROM social.contacts
WHERE guid=me
Accessing private data
•  Use the endpoint
http://query.yahooapis.com/v1/yql
•  Requires OAuth for authentication
http://developer.yahoo.com/oauth/guide/index.html
•  Use one of our SDKs –
https://github.com/yahoo
18
19
1000+ APIs
How do I get data from YQL into hacks?
20
•  YQL is a REST API in itself and has two
endpoints
•  Public endpoint requires no authentication:
http://query.yahooapis.com/v1/public/yql?q=query&format=format
•  The private endpoint requires OAuth credentials:
http://query.yahooapis.com/v1/yql?q=query&format=format
•  Supported output formats: JSON, XML
•  Use your favourite programming language!
YQL is open!
21
•  You can get your data tables into our system!
•  Just write an XML schema and put it on GitHub -
https://github.com/yql/yql-tables
•  Example: craigslist search table -
https://github.com/yql/yql-tables/blob/master/
craigslist/craigslist.search.xml
22
Or, host your own table and use ‘USE’!
USE ‘http://www.mysite.com/
myTable.xml’ as mytable;
SELECT * FROM mytable
WHERE key=“value”;
<h#ps://www.flickr.com/photos/weldhouse/3083969633/>	
  
23
There are a lot of things you
can do with YQL.
Your imagination is the limit.
Amazing YQL-powered hacks
•  Webmeme.In – http://www.webmeme.in/
§  Indian news aggregator
•  ChromeYQLip – http://y.ahoo.it/bVSq9
§  A Chrome extension for page scraping using YQL
§  Open Hack Bangalore 2010 winner
•  FakeSiri – http://y.ahoo.it/3D05u
§  Voice assistant for Chrome
24
25
YQL Console and hack demos
Wake up. It’s over.
(Get coffee. Prepare to hack!)
<http://developer.yahoo.com/yql/>
26
27
Thank you!
@teemus

Más contenido relacionado

Similar a YQL - One API to query them all

YQL:: Select * from Internet
YQL:: Select * from InternetYQL:: Select * from Internet
YQL:: Select * from Internet
drgath
 
Oracle: Let My People Go! (Shu Zhang, Ilya Sokolov, Symantec) | Cassandra Sum...
Oracle: Let My People Go! (Shu Zhang, Ilya Sokolov, Symantec) | Cassandra Sum...Oracle: Let My People Go! (Shu Zhang, Ilya Sokolov, Symantec) | Cassandra Sum...
Oracle: Let My People Go! (Shu Zhang, Ilya Sokolov, Symantec) | Cassandra Sum...
DataStax
 
Offline strategies for HTML5 web applications - pfCongres2012
Offline strategies for HTML5 web applications - pfCongres2012Offline strategies for HTML5 web applications - pfCongres2012
Offline strategies for HTML5 web applications - pfCongres2012
Stephan Hochdörfer
 
YQL and Geo
YQL and GeoYQL and Geo
YQL and Geo
mambo91
 

Similar a YQL - One API to query them all (20)

YQL: Select * from Internet
YQL: Select * from InternetYQL: Select * from Internet
YQL: Select * from Internet
 
YQL:: Select * from Internet
YQL:: Select * from InternetYQL:: Select * from Internet
YQL:: Select * from Internet
 
YQL & Yahoo! Apis
YQL & Yahoo! ApisYQL & Yahoo! Apis
YQL & Yahoo! Apis
 
Fatcat Automatic Web SQL Injector by Sandeep Kamble
Fatcat Automatic Web SQL Injector by Sandeep KambleFatcat Automatic Web SQL Injector by Sandeep Kamble
Fatcat Automatic Web SQL Injector by Sandeep Kamble
 
Workshop KrakYourNet2016 - Web applications hacking Ruby on Rails example
Workshop KrakYourNet2016 - Web applications hacking Ruby on Rails example Workshop KrakYourNet2016 - Web applications hacking Ruby on Rails example
Workshop KrakYourNet2016 - Web applications hacking Ruby on Rails example
 
Top Ten Java Defense for Web Applications v2
Top Ten Java Defense for Web Applications v2Top Ten Java Defense for Web Applications v2
Top Ten Java Defense for Web Applications v2
 
Producing an OData feed in 10 minutes
Producing an OData feed in 10 minutesProducing an OData feed in 10 minutes
Producing an OData feed in 10 minutes
 
Build your web apps with yql and yui
Build your web apps with yql and yuiBuild your web apps with yql and yui
Build your web apps with yql and yui
 
Oracle golden gate training course
Oracle golden gate training courseOracle golden gate training course
Oracle golden gate training course
 
Oracle: Let My People Go! (Shu Zhang, Ilya Sokolov, Symantec) | Cassandra Sum...
Oracle: Let My People Go! (Shu Zhang, Ilya Sokolov, Symantec) | Cassandra Sum...Oracle: Let My People Go! (Shu Zhang, Ilya Sokolov, Symantec) | Cassandra Sum...
Oracle: Let My People Go! (Shu Zhang, Ilya Sokolov, Symantec) | Cassandra Sum...
 
Oracle database 12c_and_DevOps
Oracle database 12c_and_DevOpsOracle database 12c_and_DevOps
Oracle database 12c_and_DevOps
 
Offline strategies for HTML5 web applications - pfCongres2012
Offline strategies for HTML5 web applications - pfCongres2012Offline strategies for HTML5 web applications - pfCongres2012
Offline strategies for HTML5 web applications - pfCongres2012
 
Pivotal - Advanced Analytics for Telecommunications
Pivotal - Advanced Analytics for Telecommunications Pivotal - Advanced Analytics for Telecommunications
Pivotal - Advanced Analytics for Telecommunications
 
YQL and Geo
YQL and GeoYQL and Geo
YQL and Geo
 
Application Security Workshop
Application Security Workshop Application Security Workshop
Application Security Workshop
 
Stream based Data Integration
Stream based Data IntegrationStream based Data Integration
Stream based Data Integration
 
How to Get IBM i Security and Operational Insights with Splunk
How to Get IBM i Security and Operational Insights with SplunkHow to Get IBM i Security and Operational Insights with Splunk
How to Get IBM i Security and Operational Insights with Splunk
 
SEA Open Hack - YQL
SEA Open Hack - YQLSEA Open Hack - YQL
SEA Open Hack - YQL
 
Oracle dba golden gate training
Oracle dba golden gate trainingOracle dba golden gate training
Oracle dba golden gate training
 
Oracle golden gate training
Oracle golden gate trainingOracle golden gate training
Oracle golden gate training
 

Último

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Último (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

YQL - One API to query them all