> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lightdash.com/llms.txt
> Use this file to discover all available pages before exploring further.

# YouTube Analytics

> Query views, watch time and subscribers for a YouTube channel live from Explore and AI agents

The YouTube Analytics [live source](https://docs.lightdash.com/integrations/live-sources) reads views, watch time, engagement and subscribers for one YouTube channel.

## Before you start

* **The Google account that owns the channel.**

## Connect YouTube Analytics

[Add a live source](https://docs.lightdash.com/integrations/live-sources/set-up-and-manage.md#connect-a-live-source), select **YouTube Analytics**, click **Continue to Google**, sign in, and pick the channel.

![The Add YouTube Analytics source dialog, with the Name field under Details and the Continue to Google button](https://mintcdn.com/lightdash/WuPlti30p6CHhcUC/images/integrations/live-sources/youtube-analytics-config.png?fit=max\&auto=format\&n=WuPlti30p6CHhcUC\&q=85\&s=cfbc5f9ffc1c0c1280fbf8bb68c3dec8)

## Semantic layer

### Channel activity

Views, watch time, engagement and subscribers for one YouTube channel

| Field | Description |
| - | - |
|  Date | Day of the activity |
|  Date month | Month of the activity, shown as its first day |
|  Video ID | YouTube video ID |
|  Country | Viewer's country, as a two-letter code such as `US`. `ZZ` means unknown |
|  Device type | Type of device the video was watched on, such as `MOBILE`, `DESKTOP` or `TV` |
|  Traffic source type | How viewers found the video, such as YouTube search, related videos, subscriber feeds or external websites |
|  Content type | Type of content: live stream, Short, story, regular video, or unspecified |
|  Views | Number of times videos were viewed |
|  Engaged views | Number of views that went past the first frames or were started by a click or tap |
|  Estimated minutes watched | Number of minutes viewers spent watching videos |
|  Average view duration | Average length of a playback, in seconds |
|  Average view percentage | Average share of a video watched per playback, from 0 to 100 |
|  Likes | Number of times viewers liked a video |
|  Dislikes | Number of times viewers disliked a video |
|  Comments | Number of comments viewers posted |
|  Shares | Number of times viewers shared a video with the Share button |
|  Subscribers gained | Number of times viewers subscribed to the channel |
|  Subscribers lost | Number of times viewers unsubscribed from the channel |

## Limits

| Limit | Value |
| - | - |
| Default date range | Last 28 days, when the query has no filter on Date. Last 12 full months for **Date month** |
| Most rows per query | 9,999. 200 for **Video ID** |
| Data delay | The most recent days are missing until all their metrics are ready |
| Dimensions per query | 3 |
| Filter values | 500 for **Video ID**, 1 for **Country** |
| Country totals | YouTube leaves out countries and days with too few views, so country rows add up to less than the channel total |
| Device type and Traffic source type | Only with Views, Engaged views and Estimated minutes watched |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.