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:
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"]["heatMarkers"]["heatMarkerRenderer"]["heatMarkerIntensityScoreNormalized"]
.
With the video id XiCrniLQGYc
you would get:
{
"kind": "youtube#videoListResponse",
"etag": "NotImplemented",
"items": [
{
"kind": "youtube#video",
"etag": "NotImplemented",
"id": "XiCrniLQGYc",
"mostReplayed": {
"maxHeightDp": 40,
"minHeightDp": 4,
"showHideAnimationDurationMillis": 200,
"heatMarkers": [
{
"heatMarkerRenderer": {
"timeRangeStartMillis": 0,
"markerDurationMillis": 2580,
"heatMarkerIntensityScoreNormalized": 1
}
},
...
],
"heatMarkersDecorations": [
{
"timedMarkerDecorationRenderer": {
"visibleTimeRangeStartMillis": 0,
"visibleTimeRangeEndMillis": 7740,
"decorationTimeMillis": 2580,
"label": {
"runs": [
{
"text": "Most replayed"
}
]
},
"icon": "AUTO_AWESOME",
"trackingParams": "CC0Q38YIGGQiEwiFxcqD7-P9AhX8V08EHcIFCg8="
}
}
]
}
}
]
}