Reputation: 1666
I have a large array of video id's. (Over 100) I need to determine which videos belong to the oauth'd user. Looking through the Youtube API docs it doesn't look like they have a way to get videos by ID for a channel. I see how to get all videos for a channel but that looks like it limits the results. Is there an efficient way to do this that I'm missing?
Ideally I'd like to say grab all videos with this id that belong to this channel. I'd accept a way to just get all videos for the users channel so I can compare the array of videos with my array of id's.
Using Laravel socialite and the PHP google api client.
Upvotes: 0
Views: 6236
Reputation: 1
I have figured it out if you want to get the video with particular video id
https://www.youtube.com/watch?v=hcMzwMrr1tE
if you want the thumbnails for the particular video
https://storage.googleapis.com/yt-trends-top-ten-lists-2022/thumbs/**hcMzwMrr1tE**.jpg
put the video id you will get the details you can use google api like this
Upvotes: 0
Reputation: 4185
You can either
id
parameter takes up to 50 comma-separated videoIDs.or
id
parameter takes up to 50 comma-separated channelIDs. Each page of results has up to 50 videos.If you already have the videoIDs, option 1 would be best.
Upvotes: 1