Analytics · Analytics

Get YouTube daily views

Fetches YouTube daily views.

GEThttps://api.pozy.ai/v1/analytics/youtube/daily-views
getYouTubeDailyViews

Guides: YouTube, Platform insights

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys can call it. Keys with the analytics resource group disabled get 403 resource_group_disabled. Authentication

Query parameters

NameTypeNotes
videoIdrequiredstring
accountIdrequiredstring
fromDatestring (date)
toDatestring (date)
startDatestring (date)
endDatestring (date)

Example

curl -X GET "https://api.pozy.ai/v1/analytics/youtube/daily-views?videoId=65fd297a0da74ab358dd11e9&accountId=696e0b682d0a31188e7a2ba9" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

  • successboolean
  • videoIdstring
  • durationSecondsinteger

    Can be null.

  • dateRangeobject
    • startDatestring (date)
    • endDatestring (date)
  • provisionalSincestring (date)
  • totalViewsinteger
  • dailyViewsarray of object
    10 child fields
    • datestring (date)
    • viewsinteger
    • estimatedMinutesWatchednumber
    • averageViewDurationnumber
    • averageViewPercentagenumber
    • subscribersGainedinteger
    • subscribersLostinteger
    • likesinteger
    • commentsinteger
    • sharesinteger
  • lastSyncedAtstring (date-time)

    Can be null.

  • scopeStatusobject
    • hasAnalyticsScopeboolean
200 response
{
  "success": true,
  "videoId": "65fd297a0da74ab358dd11e9",
  "durationSeconds": 1,
  "dateRange": {
    "startDate": "2026-10-01",
    "endDate": "2026-10-01"
  },
  "provisionalSince": "2026-10-01",
  "totalViews": 42,
  "dailyViews": [
    {
      "date": "2026-10-02T09:00:00.000Z",
      "views": 1,
      "estimatedMinutesWatched": 12.5,
      "averageViewDuration": 12.5,
      "averageViewPercentage": 12.5,
      "subscribersGained": 1,
      "subscribersLost": 1,
      "likes": 1,
      "comments": 1,
      "shares": 1
    }
  ],
  "lastSyncedAt": "2026-10-02T09:00:00.000Z",
  "scopeStatus": {
    "hasAnalyticsScope": true
  }
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is scoped to other profiles or has this resource group disabled.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Analytics