Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Youtube API to get most viewed video for a day

  • Is there a way to get the most viewed video on youtube for a particular day?
  • Is there any API available for it?
  • Is there some source which gives you the video ?
like image 781
Aang Avatar asked Oct 30 '14 08:10

Aang


People also ask

What is snippet YouTube API?

snippet. object. The snippet object contains basic details about the video, such as its title, description, and category. snippet.

Does YouTube have a free API?

Yes, using the YouTube API does not incur any monetary cost for the entity calling the API. If you go over your quota an 403 Error will be returned by the API.


1 Answers

Yeah they don't have stats on a particular day but they do have a running viewCount. So you can use the API info at

https://developers.google.com/youtube/v3/docs/search/list

to make something like

https://www.googleapis.com/youtube/v3/search?part=snippet&order=viewCount&publishedAfter=2014-10-29T00%3A00%3A00Z&publishedBefore=2014-10-31T00%3A00%3A00Z&key={YOUR_API_KEY}

Maybe that will help?

like image 185
johnh10 Avatar answered Jan 04 '23 10:01

johnh10