Get most replayed moments
Returns YouTube's "most replayed" graph for a video, condensed: the most replayed moment, up to five peaks and the whole graph averaged into 20 parts. It shows where viewers rewatch or skip to, the only public hint of how a video holds attention. 1 credit per successful response.
Intensity is relative to the video's own most replayed moment (1.0), so compare shapes between videos, not values. The first seconds are high on most videos because every view starts there.
Credits
Successful responses deduct 1 credit. YouTube shows the graph only on videos with enough views; a video without one returns 404 heatmap_unavailable and costs nothing.
Security
API Key
All requests require a valid API key from the developer dashboard.
Headers: Authorization: Bearer YOUR_API_KEYorX-API-Key: YOUR_API_KEY
See Authentication for headers and rate limits.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
idpath | string | Yes | 11-character YouTube video ID or video URL. |
Response (HTTP 200)
{
"video_id": string,
"length_seconds": number,
"most_replayed": { // YouTube's "Most replayed" label, when shown
"start_seconds": number,
"end_seconds": number,
"intensity": number,
"label": string
},
"peaks": [ // Up to 5 strongest peaks, in time order
{ "start_seconds": number, "end_seconds": number, "intensity": number }
],
"curve": [ // 20 parts covering the whole video
{ "start_seconds": number, "end_seconds": number, "intensity": number } // 0 to 1
]
}