Here http://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=wbp-3BJWsU8&format=json is an example URL
$.ajax({ url: 'http://query.yahooapis.com/v1/public/yql', data: { q: "select * from json where url ='http://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=wbp-3BJWsU8&format=json'", format: "json" }, dataType: "jsonp", success: function (data) { alert(JSON.stringify(data)); }, error: function (result) { alert("Sorry no data found."); } });
No comments:
Post a Comment