I have written a C code for getting the list of youtube videos for the url \"*http://gdata.youtube.com/feeds/api/standardfeeds/top_rated*\" using the libsoup library. I can
Yes, you can ^^
The youtube-API also provides jsonp, which returns the data as a JS-command.
Watch this(and see the parameters inside the URL):
http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?alt=json&callback=someFunction
With jsonp you don't have any sameOriginPolicies-restrictions, while it not works with AJAX.
It would be easy using a library like jQuery.
If you don't want to use jQuery or anything like this, you have to inject a -element to the DOM with the URL as src-attribute, and create a function (using the above URL has to be named "someFunction") that works with the data.