{{>yql-mock-config}}

In this example, the Flickr Recent Photos YQL table is used to pull in a small set of recent Flickr images every 8 seconds.

{{>yql-requery-source}}

Setting Up the Query

The easiest way to build a YQL query is by visiting the YQL Console. In this example we will be using the flickr.photos.recent table. The YQL statement that we are using looks like this:

``` select * from flickr.photos.recent where (api_key = "1895311ec0d2e23431a6407f3e8dffcc") ```

Setting Up the YUI Instance

Now we need to create our YUI instance and tell it to load the yql and node modules.

``` YUI().use('node', 'yql'); ```

Making the Query

Now that we have a YUI instance with the yql module, we can now make a query.

``` {{>yql-requery-source-js}} ```