I am stuck on one issue while making a college project , I want to fetch the statistics data for each shorts video of 100 YouTube channel (MAX 200 latest shorts) and then return the top 10 shorts videos with best viewer engagement ratio i.e. [ (Views + comment + Likes) / (post age in days) ] for each channel.
Can anyone help me with this Please so that I only make one or 3-4 call (due to pagination) and it gives me the following details for latest 200 shorts video of a particular channel?
shortslink
viewCount
likeCount
commentCount
postdate
Method 1 I tried : https://yt.lemnoslife.com/channels?part=shorts&handle=@bsbfoodie or https://yt.lemnoslife.com/channels?part=shorts&id=UCk2CLHZwdIGyz-idSBGbeBQ
Both gave same results with 48 videos details in one call but they do not contain the statistics data like below for each shorts:
"statistics": {"viewCount": "3110878","likeCount": "284469","favoriteCount": "0","commentCount": "29426" }Also I can see that the number of views are round off to nearest 1000 and duration to be round off to nearest minute in the data I received .
Method 2 : Method 2 is just an extension of method 1 in which I need to make a get statistics call for each short video I received in Method 1 but the issue is this will lead to too many calls .
https://yt.lemnoslife.com/noKey/videos?part=id%2C+snippet&id=27fjaB9z2i4
100 Channels * 200 Video * 4 (as 1 page returned 48 videos)