Your SlideShare is downloading. ×
0
Query the Web with YQLSriram Viswanathanhttp://slideshare.net/ramace
What is YQL?  •Similar to SQL  •Can query, filter and join data across Web services
Why YQL? •   Simple, SQL-like •   Hides complexity of Web service API •   Pre-defined tables for popular Yahoo! Web servic...
YQL Console  •   http://developer.yahoo.com/yql/console/  •   Enables you to run YQL statements interactively from your   ...
SELECT statement  •   SELECT what FROM table WHERE filter  Examples  •   select * from social.connections where owner_guid...
Filtering Query Results  Examples  •select * from flickr.photos.search where text=Barcelona’ and  api_key=‘your api key’  ...
Joining tables with sub-select  Example  select * from social.profile where guid in (select guid from  social.connections ...
Paging and Limits  •   select * from flickr.photos.search where text="Cat" and      api_key=”your api key" limit 10  •   s...
Using Query Builder  •   YQL console includes a simple query builder tool. This tool      allows you to customize and expl...
Response Data  •   Supported response XML, JSON  •   Contains diagnostic and results elements  <query ... (attributes such...
YQL using Javascript and PHP  •   YUI YQL Utility for Javascript  http://yuilibrary.com/yui/docs/yql/  •   YQL call from P...
Usage Information andLimitations  •   YQL has a performance uptime target of over 99.5%.  •   YQL relies on the correct op...
References  http://developer.yahoo.com/yql/  http://developer.yahoo.com/yql/guide/  http://yuilibrary.com/yui/docs/yql/  h...
Thank You!      &happy hacking
Upcoming SlideShare
Loading in...5
×

Query the web with YQL

524

Published on

Getting started with YQL

Published in: Technology, Sports
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
524
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Add Images here
  • Add Images here
  • Add Images here
  • Add Images here
  • Add Images here
  • Add Images here
  • Add Images here
  • Add Images here
  • Add Images here
  • Add Images here
  • Add Images here
  • Add Images here
  • Transcript of "Query the web with YQL"

    1. 1. Query the Web with YQLSriram Viswanathanhttp://slideshare.net/ramace
    2. 2. What is YQL? •Similar to SQL •Can query, filter and join data across Web services
    3. 3. Why YQL? • Simple, SQL-like • Hides complexity of Web service API • Pre-defined tables for popular Yahoo! Web services such as Flickr, Social and others. • Supports output format XML, JSON
    4. 4. YQL Console • http://developer.yahoo.com/yql/console/ • Enables you to run YQL statements interactively from your browser
    5. 5. SELECT statement • SELECT what FROM table WHERE filter Examples • select * from social.connections where owner_guid=me • select contactId from social.connections where owner_guid=me • select image.imageUrl from social.profile where guid=me
    6. 6. Filtering Query Results Examples •select * from flickr.photos.search where text=Barcelona’ and api_key=‘your api key’ •select * from upcoming.events where location in ("San Francisco", "San Jose”) •select * from flickr.photos.info where photo_id=7640771676 and api_key=’your api key
    7. 7. Joining tables with sub-select Example select * from social.profile where guid in (select guid from social.connections where owner_guid=me)
    8. 8. Paging and Limits • select * from flickr.photos.search where text="Cat" and api_key=”your api key" limit 10 • select * from flickr.photos.search(0,10) where text="Cat" and api_key=”you api key” • select * from flickr.photos.search(0,10) where text="Cat" and api_key=“you api key” limit 5 • select * from flickr.photos.search where text="Cat" and api_key=“you api key” limit 5 offset 3
    9. 9. Using Query Builder • YQL console includes a simple query builder tool. This tool allows you to customize and explore YQL statements.
    10. 10. Response Data • Supported response XML, JSON • Contains diagnostic and results elements <query ... (attributes such as count)> <diagnostics> ... (sub-elements such as publiclyCallable) <results> ... (data returned by the call to YQL) </results> </query>
    11. 11. YQL using Javascript and PHP • YUI YQL Utility for Javascript http://yuilibrary.com/yui/docs/yql/ • YQL call from PHP http://developer.yahoo.com/yql/guide/yql-code- examples.html#yql_php
    12. 12. Usage Information andLimitations • YQL has a performance uptime target of over 99.5%. • YQL relies on the correct operation of the Web services and content providers it accesses. • Per application limit (identified by your Access Key): 100,000 calls per day. • Per IP limits: /v1/public/*: 2,000 calls per hour; /v1/yql/*: 20,000 calls per hour. • YQL rate limits are subject to the rate limits of other Yahoo! and 3rd-party Web services.
    13. 13. References http://developer.yahoo.com/yql/ http://developer.yahoo.com/yql/guide/ http://yuilibrary.com/yui/docs/yql/ http://developer.yahoo.com/yql/guide/yql-code- examples.html#yql_php
    14. 14. Thank You! &happy hacking
    1. A particular slide catching your eye?

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

    ×