Is there any way to extract the "Most Replayed" (aka Video Activity Graph) Data from a YouTube video via API?
What I'm referring to:
One more time YouTube Data API v3 doesn't provide a basic feature.
I recommend you to try out my open-source YouTube operational API. Indeed by fetching https://yt.lemnoslife.com/videos?part=mostReplayed&id=VIDEO_ID, you will get the most replayed graph values you are looking for in item["mostReplayed"]
.
With the video id XiCrniLQGYc
you would get:
{
"kind": "youtube#videoListResponse",
"etag": "NotImplemented",
"items": [
{
"kind": "youtube#video",
"etag": "NotImplemented",
"id": "XiCrniLQGYc",
"mostReplayed": {
"markers": [
{
"startMillis": 0,
"intensityScoreNormalized": 1
},
{
"startMillis": 2580,
"intensityScoreNormalized": 0.7083409245967562
},
{
"startMillis": 5160,
"intensityScoreNormalized": 0.6381007317793738
},
...
{
"startMillis": 255420,
"intensityScoreNormalized": 0.012864077773078256
}
],
"timedMarkerDecorations": [
{
"visibleTimeRangeStartMillis": 0,
"visibleTimeRangeEndMillis": 10320
}
]
}
}
]
}