How do I get the total number of videos on a YouTube channel?

I want to get a count of the total number of videos uploaded to a YouTube channel using the youtubeanalytics api. Can someone tell me the correct metric and dimensional combinations for this? Thank!

+3
source share
2 answers

You can get the number of videos using the following query .....

https://gdata.youtube.com/feeds/api/users/YourChannelID/uploads?v=2&alt=jsonc&max-results=0
+2
source

You can use the following URL for the data API:

https://www.googleapis.com/youtube/v3/channels?part=statistics&forUsername=VideoLecturesChannel&key={YOUR_API_KEY}

Search statistics.videoCountin the answer. The documents for the endpoint are listed here .

+2
source

All Articles