I want to display youtube videos for particular channel in XML format.
This is the channel for which I want to retrieve videos:
https://www.youtube.com/channel/UCxiaIKXjo25U1AMCBAcplRQ
can anyone suggest how can i get XML format video listing for particular channel from youtube.
I just want URL for which i can get what i want.
I can write PHP code to use XML retrieved from youtube API URL.
Here is the URL for API that you need to use for your purpose. hope it helps.
http://gdata.youtube.com/feeds/api/users/UCxiaIKXjo25U1AMCBAcplRQ/uploads?max-results=2
Related
How can I fetch video using Vimeo API by their their or by their uploaded date?
Currently I am using vimeo.videos.getUploaded to fetch all the videos of a user but I am unable to pass parameters like title or date into that method call.
So please let me know how can I fetch videos of a user by video title or by uploaded date.
vimeo.video.getUploaded (and many other endpoints in the Vimeo API) allows you to provide a sort parameter of "oldest" or "newest".
You can experiment with this functionality via the playground :
https://developer.vimeo.com/apis/advanced/methods/vimeo.videos.getUploaded/playground
how can i use php to get youtube user subscription channel videos and display all the channel feeds, i want create a class or function where if i pass a user name the php class would retrieve the latest uploads / activities in the user subscribed channels and display the url plus the title and the image, also i want to be able to pass the title and url to other functions so that i can save it to database. on a another page i found this Pulling in YouTube Videos from Specific Channel but its for only one specific channel.
The relevant requests are for the newsubscriptionvideos feed in the YouTube GData API v2 or activities.list() in the newer YouTube Data API v3.
newsubscriptionvideos might not be natively support in the Zend GData client library (I don't see it mentioned in the developer's guide), so if you go that route, you should probably use alt=jsonc to get back an easy-to-parse JSON feed of the data. E.g, https://gdata.youtube.com/feeds/api/users/jeffposnicktest/newsubscriptionvideos?v=2&alt=jsonc
The alternative is to use v3's PHP client library to call activities.list().
I'm looking for a way to extract tags from the most recent videos of a user via XML and PhP.
It used to work via this type of XML http://gdata.youtube.com/feeds/api/users/fredy31/uploads but now it seems that the video tags have been removed from that XML file.
So how can I get the video tags from the uploads XML?
Basically, what I'm trying to do is to get every video search tags in an array, for me to use later.
Tags/keywords are now only returned when you're making a request authorized as the owner of the video: http://apiblog.youtube.com/2012/08/video-tags-just-for-uploaders.html
YouTube's API can no longer be used to retrieve tags from other users, but you can use the new format to retrieve tags from your own uploaded videos, or any account you have access to.
The video tags should show up in the XML as:
<media:keywords>
Right after the </media:description> if you aren't authorized to access the user account you'll only see this call </media:keywords> right after the description. That's what I'm getting from the XML using your account and mine as well. It has to be done through an authorized application using YouTube's API.
What I want to do is, to show uploaded videos list of my youtube channel to website's visitors.
Something like that. (Image take from youtube channel, I want to show exactly this way)
Don't want to create iframe. Can I fetch data from channels exact page with PHP or something else? I have no idea if it's possible with youtube api. Any suggestions?
Yes you can. The videos on a channel are essentially a user's so using the YouTube GData API you can make a call to http://gdata.youtube.com/feeds/api/videos?author=ahmednuaman (my videos for example).
I am looking to find a way to work with a particular channel on youtube
I want to be able to receive a list of videos in that particular channel in xml format
also would like to be able to receive the latest video or couple of videos
I searched through the youtube API but didn't find exactly what I need.
Found the solution
http://gdata.youtube.com/feeds/api/users/[Channel or User]/uploads
you receive a XML with 25 newest videos along with all their information
also all the attributes and more documentation can be found here
[http://code.google.com/apis/youtube/2.0/developers_guide_protocol.html#Retrieving_and_searching_for_videos][1]