Catlard
Catlard

Reputation: 893

Getting most recent youtube video links for a user using API

So, I've been reading the Youtube API--I'm interested in showing the three most recent videos uploaded by a user. But, as I've never navigated an API or done this kind of work before, I'm a bit confused by what exactly the API here is trying to tell me. What I DO understand is that if I enter a URL like the following:

https://gdata.youtube.com/feeds/api/users/aosjeff/uploads

Then I'll get a ton of information in a kind of list. What I don't understand is how to navigate that list in HTML, and make it return a link to the most recent video (or second most recent, etc) so that I can embed that video into the page. Can anyone explain this to me? Really appreciate the help!

Note: I'm working within site building software that will not allow me to use PHP or reference .php files.

Simon

Upvotes: 1

Views: 1113

Answers (1)

Philip Bevan
Philip Bevan

Reputation: 347

You should look at parsing the xml data with php. This is probably the easiest way of doing things. Beginners tutorial here:

http://www.kirupa.com/web/xml_php_parse_beginner.htm

Upvotes: 1

Related Questions