PeumeAPI

Social publishing & inbox · YouTube

Get YouTube video retention curve

Returns the audience retention curve for a single YouTube video, plus the video's duration for rendering the curve on a time axis. Requires yt-analytics.readonly scope (re-authorization may be needed).

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/get-youtube-video-retention-curve \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "videoId": "your videoId",
    "accountId": "your accountId"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: get-youtube-video-retention-curve.

Parameters

videoIdRequiredstring

The YouTube video ID (e.g., "dQw4w9WgXcQ")

accountIdRequiredstring

The account ID for the YouTube account

fromDatestring

Start date (YYYY-MM-DD). Defaults to the video's publish date (lifetime curve).

toDatestring

End date (YYYY-MM-DD). Defaults to 3 days ago, the newest fully finalized day (YouTube finalizes analytics with a ~3-day delay). An explicit toDate is honored up to today: days inside the delay window are provisional and may still be revised by YouTube (see provisionalSince in the response).

startDatestring

Alias of fromDate, kept for existing callers

endDatestring

Alias of toDate, kept for existing callers

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.