I want to get all videos of a single channel that i have its Id. The problem that I am getting only the channel informations.this is the link that I am using:
Download YouTube playlist or channel. A lot of interesting and topical information on YouTube is combined into playlists and channels. Because it is very convenient for YouTube users.
That link is for the now-retired V2 API, so it will not return any data. Instead, you'll want to use V3 of the API. The first thing you'll need to do is register for an API key -- you can do this by creating a project at console.developers.google.com, setting the YouTube data API to 'on,' and creating a public access key.
Since you have your user channel ID already, you can jump right into getting the videos from it; note, however, that if you ever don't know the channel ID, you can get it this way:
With the channel ID, you can get all the videos from the channel with the search endpoint, like this:
In this case, ordering by date is the same as the old V2 parameter for ordering by 'published.'
/the-sims-3-roaring-heights-free-download.html. There are also a lot of other parameters you can use to retrieve videos while searching a channel; see https://developers.google.com/youtube/v3/docs/search/list for more details.
I thought I would share my final result using JavaScript. It uses the Google YouTube API key and UserName to get the channel ID, then pulls the videos and displays in a list to a given div tag.
ADDITION - I also wrote a function to handle if you are using a channel ID instead of a UserName based account.
Here is that code: