Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

Mismatch in total video count from Youtube API v3

$
0
0

I'm trying to get all the videos from a Youtube channel using the Youtube API.

The channel shows as having 125777 videos as seen below.enter image description here


However, when I try to obtain these videos using the playlist id, I only get 19914 videos.Even when I use that playlist id to check on Youtube I get 19914 videos,even though the total video count is much different.

enter image description here

Below is the code:

p_id = news_channel_data.loc[news_channel_data['channel_name']=='NDTV', 'playlist_id'].iloc[0]def get_video_ids1(youtube, playlist_id):request = youtube.playlistItems().list(     part='contentDetails',     playlistId = playlist_id)response = request.execute()return responseget_video_ids1(youtube, p_id)

Is there something wrong with my code, or is it the case that the playlist for Youtube only has those videos. Is there another way I can obtain all the videos from a channel?


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>