jQuery Code to Display Top News using YQL JSONP API Service

Many sites provide JSONP services, allowing you access to their content via a predefined API. Great source of JSONP-formatted data is the Yahoo Query Language.

Below example, we’ll use YQL JSONP API service to populate the top news from yahoo rss and display on the web page.


You can use the above code to populate the data from any JSONP services, you need to change the url, data to supply related to that particular service in the ajax request and parse the output data according to the output object.

Leave a Reply

Your email address will not be published. Required fields are marked *

Bitnami