Structure of Response

Every response from YQL includes a query element, which contains the diagnostics and results elements. (For details on the diagnostics element, see Information About the YQL Call.) The repeating elements within result are "rows" from a YQL table. For example, select * from social.connections returns multiple connection elements within the result element.

The following listing shows the basic structure of the XML data in the response of a call to the YQL Web Service.

The next listing shows the basic structure of YQL response in JSON format:

Table of Contents