PeumeAPI

Social publishing & inbox · YouTube

Get YouTube daily views

Returns daily view counts for a YouTube video including views, watch time, and subscriber changes. 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-daily-views \
  -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-daily-views.

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 30 days ago.

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); days YouTube has not processed yet are omitted from dailyViews.

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.