# YouTube completion rate in the PubNio analytics API

PubNio's YouTube `completion_rate` is `averageViewPercentage` ÷ 100: YouTube defines it as “The average percentage of a video watched during a video playback.” So it is the average share of a video watched, as a 0 to 1 ratio, not the share of viewers who finished. It exists for videos and channels. Provider facts checked 2026-12-05.

## What PubNio returns

| Metric | Scope | YouTube field | Unit | Combines by |
| --- | --- | --- | --- | --- |
| `completion_rate` | post | `averageViewPercentage` ÷ 100 | ratio | weighted |
| `completion_rate` | account | `averageViewPercentage` ÷ 100 | ratio | weighted |

`completion_rate`: Share of viewers who completed the video, 0 to 1.

## How PubNio reads it

- The division by 100 happens in the adapter for totals and daily rows alike, because YouTube's reference gives the metric as a percentage.
- The key means different things per network: TikTok's reference defines its `full_video_watched_rate` as “The percentage of viewers who finish watching your video post”, a share of viewers, while YouTube's is a share of the video. Do not compare the two numbers.
- The catalog defines `completion_rate` as the “Share of viewers who completed the video, 0 to 1” and marks it weighted, so do not take a plain mean of per-video ratios. That definition describes TikTok's field; YouTube's field is an average share of the video, which the adapter scales to the same 0 to 1 range.
- The same field is read on both scopes: channel `completion_rate` comes from the channel-level report, and a video's from the same report filtered with `video==<id>`.

## Example

The capabilities endpoint answers without calling YouTube. Under the YouTube provider, these are its entries for `completion_rate`.

```http
GET /api/v1/workspaces/4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b/analytics/capabilities
Authorization: Bearer pn_live_***
```

```json
[
  {
    "key": "completion_rate",
    "scope": "post",
    "granularity": "day",
    "unit": "ratio",
    "aggregation": "weighted",
    "availability": "available",
    "supported": true,
    "renamedFrom": "averageViewPercentage"
  },
  {
    "key": "completion_rate",
    "scope": "account",
    "granularity": "day",
    "unit": "ratio",
    "aggregation": "weighted",
    "availability": "available",
    "supported": true,
    "renamedFrom": "averageViewPercentage"
  }
]
```

## Limits

- PubNio stops re-reading a YouTube post 366 days after it is published, so a post's `completion_rate` stops changing then.
- An account `completion_rate` total is the last daily read's value for its window, 30 days before the read through the day of the read, whatever `from` and `to` the request names. Per-day values come from the daily series, which the workspace plan bounds.
- A metric YouTube does not report comes back with `value: null` and an availability state that says why. A post with no stored values whose last read failed on permissions, a rate limit, or a transient error answers with that error instead.

## Sources

- [YouTube Analytics API: Metrics](https://developers.google.com/youtube/analytics/metrics), read 2026-12-05
- [TikTok API for Business: Get post data of a TikTok account](https://business-api.tiktok.com/portal/docs?id=1762228421622786), read 2026-12-05

## Related

- [YouTube analytics API: the metrics PubNio reads](https://pubnio.com/platforms/youtube/analytics)
- [YouTube OAuth scopes](https://pubnio.com/docs/providers/youtube/scopes/)
- [API reference: analytics capabilities](https://pubnio.com/docs/reference/analytics-capabilities-get/)

