---
title: "YouTube list channels API: GET /youtube/v3/channels"
description: "When PubNio calls YouTube's list channels request, GET /youtube/v3/channels: the scopes it needs, the errors PubNio handles for it, and its pinned spec revision."
---

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

# YouTube list channels API: GET /youtube/v3/channels

PubNio calls YouTube's `GET /youtube/v3/channels` (`youtube.channels.list`) to identify the signed-in channel and read its subscriber count.

## How PubNio calls it

- Connecting an account: after the sign-in that [`POST /api/v1/integrations/{provider}/connect`](https://pubnio.com/api/v1/docs#tag/integrations/POST/api/v1/integrations/{provider}/connect) or [`POST /api/v1/integrations/accounts/{accountId}/reconnect`](https://pubnio.com/api/v1/docs#tag/integrations/POST/api/v1/integrations/accounts/{accountId}/reconnect) starts, the sign-in callback makes this call before it saves the account.
- Account analytics: the account sync makes this call; [`GET /api/v1/workspaces/{workspaceId}/analytics/accounts/{accountId}`](https://pubnio.com/api/v1/docs#tag/analytics/GET/api/v1/workspaces/{workspaceId}/analytics/accounts/{accountId}) returns what it stored.
- At sign-in PubNio asks for `part=snippet&mine=true` and connects the first channel returned.
- The channel's `id` becomes the connection's subject and its `snippet.title` the account name. The avatar is the `high`, `medium`, or `default` thumbnail, in that order. A response with no channel fails the sign-in.
- For analytics it asks for `part=statistics` by channel `id` and reads `subscriberCount`; a missing or non-numeric count is left out.

## Scopes

- The pinned spec accepts any one of 5 scopes: `https://www.googleapis.com/auth/youtube`, `https://www.googleapis.com/auth/youtube.force-ssl`, `https://www.googleapis.com/auth/youtube.readonly`, `https://www.googleapis.com/auth/youtubepartner`, and `https://www.googleapis.com/auth/youtubepartner-channel-audit`.
- PubNio's Google sign-in requests `https://www.googleapis.com/auth/youtube.force-ssl` and `https://www.googleapis.com/auth/youtube.readonly`, which satisfies it.
- Before the account analytics sync makes this call, PubNio checks that the account granted `https://www.googleapis.com/auth/youtube.readonly` and `https://www.googleapis.com/auth/yt-analytics.readonly`.

## Errors

PubNio has no YouTube error code pages yet. [Provider error codes](https://pubnio.com/docs/errors/providers/) covers the providers that have them.

## Spec and changes

`youtube.channels.list` in the pinned spec, revision `20261124`. YouTube reference: [youtube.channels.list reference](https://developers.google.com/youtube/v3/docs/channels/list).

Checked weekly; no change to `GET /youtube/v3/channels` recorded since this revision. [Change tracker](https://pubnio.com/docs/changes/).

## Limits

- A Google account with several channels connects only the one `mine=true` returns first.

## Sources

- [YouTube Data API v3 discovery document](https://youtube.googleapis.com/$discovery/rest?version=v3)
- [youtube.channels.list reference](https://developers.google.com/youtube/v3/docs/channels/list)

## Related

- [Provider API operations PubNio calls](https://pubnio.com/docs/providers/operations/)
- [YouTube rate limits and quota](https://pubnio.com/docs/providers/youtube/quota/)

Source: https://pubnio.com/docs/providers/youtube/operations/channels-list/index.mdx
