/  22
 
Yahoo! Query Language (YQL) Guide
 
Yahoo! Query Language (YQL) Guide
Abstract
This guide provides an overview of Yahoo! Query Language (YQL) along with information on how to use YQL toretrieve data from Yahoo! Social Directory, MyBlogLog, and data from other Yahoo! Web services. YQL also allowsyou to retrieve data from external sources such as the New York Times as well as feeds such as RSS and Atom.This guide is intended for software developers who are familiar with SQL, MySQL, or Yahoo! Pipes.Looking for more docs? See theList of Y!OS Documentation
1
.We welcome your feedback. Have a comment or question about this document? Let us know in theYDN Forum forY!OS Documentation
2
.
1
2
 
Table of Contents
1. Introducing YQL..............................................................................................................1Introduction................................................................................................................12. YQL Language Overview..................................................................................................2YQL Language Overview.............................................................................................2Dot-style syntax..................................................................................................23. Using YQL Statements......................................................................................................4Public and Private YQL Tables.......................................................................................4Data Sets Available through YQL....................................................................................4Basic SELECT and FROM Statements............................................................................7How one-to-many relationships are handled in hierarchical documents...........................8Local and Remote Filtering: SELECT, FROM, and WHERE Statements................................9Sub-Selects: SELECT, FROM, WHERE, and IN Statements..............................................10Paging and Table Size Limits: LIMIT and OFFSET Statements..........................................10Local Control....................................................................................................10Remote Control.................................................................................................11Unbounded queries............................................................................................11Social Data and Me............................................................................................11POST-query
f
ltering and manipulation..................................................................11DESC Statement........................................................................................................12SHOW Statement.......................................................................................................124. Running YQL Statements.................................................................................................13Options for Running YQL Statements............................................................................13Input: Query parameters for query.yahooapis.com............................................................13YQL Result Structure.................................................................................................13SELECT diagnostics element...............................................................................14Output: XML to JSON Conversion................................................................................14Output: Error Reporting..............................................................................................15Trying YQL: The Testing Console.................................................................................15From PHP and/or PHP serving Yahoo! Open Applications.................................................15Yahoo! Open Application Javascript..............................................................................162-Legged OAuth........................................................................................................17From Other Languages and Environments.......................................................................17Authorization and Access Control.................................................................................17Accessing YQL Public Data.................................................................................18Accessing YQL using 2-Legged Oauth...................................................................183-Legged OAuth Access to YQL...........................................................................18December 3, 2008iiiYahoo! Developer Network 

Share & Embed

More from this user

Add a Comment

Characters: ...