I want to filter the videos which have more than 1000 only. I've the API call i've used to fetch the data.
https://www.googleapis.com/youtube/v3/search?part=snippet&type=video&videoCategoryId=10&order=viewCount&publishedAfter=2016-03-31T00:00:00Z&publishedBefore=2016-04-06T02:00:00Z&key={API KEY}
This returns all the videos which has been added 7 days ago.
Thanks in advance.
Related
I'm using the Youtube Data API to access the total viewCount of a video.
However, I would like to see the monthly views of a video based on a specific date and/or time. For example, video A currently has a viewCount of 500,000 at the current date and time but perhaps a month ago it had a viewCount of 400,000. Is it possible to access that previous value?
Is there any Youtube API method or alternative resource that would allow me to access the previous view count of a video/list of videos for any public channel?
Thank you!
I want to get playlist view count with YouTube Data API. But I can't find a way from the YouTube DATA API reference. Please let me know if there is a way to get.
The Playlist endpoint does not return a view count. You need to take those video IDs and make another call to the Videos endpoint to get them using part statistics.
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.
You can either
Get videos by IDs using the videos:list API endpoint. The id parameter takes up to 50 comma-separated videoIDs.
or
Get all videos in a channel using the channels:list API endpoint. The 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.
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
Is there any way to search in youtube api for the most viewed videos in last 7 days?
It's good if i can filter the videos over 1000 views.
Thanks in advance.
Can we get the likes/views along with the time when it is liked/viewed of a particular youtube video using Youtube API
Data API won't give that information. You can only access number and person, not the time piece.