Manage multiple YouTube channels, videos, playlists, comments, and live content
/activities
| Param | Type | Required | Description |
|---|---|---|---|
| channelId | string | required | YouTube channel ID. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/channels
| Param | Type | Required | Description |
|---|---|---|---|
| channel_handle | string | required | YouTube channel handle, with or without the @ prefix. |
/channels
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | optional | Comma-separated channel IDs. |
| forHandle | string | optional | Channel handle, with or without @. |
| forUsername | string | optional | Legacy YouTube username. |
| mine | boolean | optional | Return channels owned by the authenticated account. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/videos
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | required | Comma-separated YouTube video IDs. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/videos/getRating
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | required | Comma-separated YouTube video IDs. |
/captions
| Param | Type | Required | Description |
|---|---|---|---|
| videoId | string | required | YouTube video ID. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/channels
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | optional | Comma-separated channel IDs. |
| forHandle | string | optional | Channel handle, with or without @. |
| forUsername | string | optional | Legacy YouTube username. |
| mine | boolean | optional | Return channels owned by the authenticated account. |
| managedByMe | boolean | optional | Return channels managed by the authenticated account. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/channelSections
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | optional | Comma-separated channel section IDs. |
| channelId | string | optional | YouTube channel ID. |
| mine | boolean | optional | Use the authenticated channel. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/search
| Param | Type | Required | Description |
|---|---|---|---|
| channelId | string | required | YouTube channel ID. |
| q | string | optional | Optional search text. |
| order | string | optional | Search ordering. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/comments
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | optional | Comma-separated comment IDs. |
| parentId | string | optional | Parent comment ID. |
| textFormat | string | optional | plainText or html. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/commentThreads
| Param | Type | Required | Description |
|---|---|---|---|
| videoId | string | optional | YouTube video ID. |
| channelId | string | optional | YouTube channel ID. |
| order | string | optional | relevance or time. |
| textFormat | string | optional | plainText or html. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/commentThreads
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | optional | Comma-separated comment thread IDs. |
| videoId | string | optional | YouTube video ID. |
| channelId | string | optional | YouTube channel ID. |
| allThreadsRelatedToChannelId | string | optional | Channel ID for all related threads. |
| searchTerms | string | optional | Search text for comments. |
| moderationStatus | string | optional | Moderation status filter. |
| order | string | optional | relevance or time. |
| textFormat | string | optional | plainText or html. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/i18nLanguages
| Param | Type | Required | Description |
|---|---|---|---|
| hl | string | optional | Language code used for localized names. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/i18nRegions
| Param | Type | Required | Description |
|---|---|---|---|
| hl | string | optional | Language code used for localized names. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/liveChat/messages
| Param | Type | Required | Description |
|---|---|---|---|
| liveChatId | string | required | YouTube live chat ID. |
| profileImageSize | integer | optional | Requested profile image size. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/videos
| Param | Type | Required | Description |
|---|---|---|---|
| regionCode | string | optional | ISO 3166-1 alpha-2 region code. |
| videoCategoryId | string | optional | YouTube video category ID. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/playlistImages
| Param | Type | Required | Description |
|---|---|---|---|
| playlistId | string | required | YouTube playlist ID. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/playlistItems
| Param | Type | Required | Description |
|---|---|---|---|
| playlistId | string | required | YouTube playlist ID. |
| videoId | string | optional | Filter by video ID. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/superChatEvents?part=id,snippet
| Param | Type | Required | Description |
|---|---|---|---|
| hl | string | optional | Language code for localized content. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
/playlists
| Param | Type | Required | Description |
|---|---|---|---|
| mine | boolean | optional | Return playlists owned by the authenticated account. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/subscriptions
| Param | Type | Required | Description |
|---|---|---|---|
| mine | boolean | optional | Return subscriptions for the authenticated account. |
| channelId | string | optional | Filter by channel ID. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/videoAbuseReportReasons
| Param | Type | Required | Description |
|---|---|---|---|
| hl | string | optional | Language code for localized reason text. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/videoCategories
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | optional | Comma-separated category IDs. |
| regionCode | string | optional | ISO 3166-1 alpha-2 region code. |
| hl | string | optional | Language code for localized names. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/captions/{captionId}
| Param | Type | Required | Description |
|---|---|---|---|
| captionId | string | required | YouTube caption track ID. |
| tfmt | string | optional | Caption format such as sbv, srt, or vtt. |
| tlang | string | optional | Translation language code. |
/search
| Param | Type | Required | Description |
|---|---|---|---|
| q | string | required | Search query. |
| type | string | optional | Resource types to search: video, channel, playlist. |
| order | string | optional | Search ordering. |
| channelId | string | optional | Restrict results to a channel. |
| regionCode | string | optional | ISO 3166-1 alpha-2 region code. |
| publishedAfter | string | optional | RFC 3339 lower publication bound. |
| publishedBefore | string | optional | RFC 3339 upper publication bound. |
| relevanceLanguage | string | optional | Preferred relevance language. |
| part | string | optional | Comma-separated YouTube resource parts to return. |
| pageToken | string | optional | Pagination token returned by the previous request. |
| maxResults | integer | optional | Maximum number of items to return. |
| fields | string | optional | Optional partial-response fields expression. |
/playlistItems?part=snippet
| Param | Type | Required | Description |
|---|---|---|---|
| playlistId | string | required | YouTube playlist ID. |
| videoId | string | required | YouTube video ID. |
| position | string | optional | Zero-based playlist position. |
/channelSections?part=snippet,contentDetails
| Param | Type | Required | Description |
|---|---|---|---|
| snippet | object | required | Channel section snippet resource. |
| contentDetails | object | optional | Channel section content details resource. |
/comments?part=snippet
| Param | Type | Required | Description |
|---|---|---|---|
| parentId | string | required | Parent YouTube comment ID. |
| textOriginal | string | required | Reply text. |
/playlists?part=snippet,status
| Param | Type | Required | Description |
|---|---|---|---|
| title | string | required | Playlist title. |
| description | string | optional | Playlist description. |
| privacyStatus | string | optional | YouTube privacy status. |
/channelSections
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | required | Channel section ID. |
/comments
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | required | Comment ID. |
/playlists
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | required | Playlist ID. |
| confirmDelete | boolean | required | Must be true to confirm this permanent deletion. |
/playlistItems
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | required | Playlist item ID. |
/videos
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | required | Video ID. |
| confirmDelete | boolean | required | Must be true to confirm this permanent deletion. |
/comments/markAsSpam
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | required | Comment ID. |
/videos
| Param | Type | Required | Description |
|---|---|---|---|
| body | object | required | YouTube video resource metadata. |
| media | object | required | Video bytes as base64 plus their MIME type. |
| part | string | required | Resource parts included in metadata. |
/commentThreads?part=snippet
| Param | Type | Required | Description |
|---|---|---|---|
| videoId | string | required | Video ID. |
| channelId | string | required | Video channel ID. |
| textOriginal | string | required | Comment text. |
/videos/rate
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | required | Video ID. |
| rating | string | required | like, dislike, or none. |
/videos/reportAbuse
| Param | Type | Required | Description |
|---|---|---|---|
| videoId | string | required | Video ID. |
| reasonId | string | required | Video abuse report reason ID. |
| secondaryReasonId | string | optional | Optional secondary reason ID. |
| comments | string | optional | Optional report comments. |
/comments/setModerationStatus
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | required | Comma-separated comment IDs. |
| moderationStatus | string | required | heldForReview, published, or rejected. |
| banAuthor | boolean | optional | Ban the comment author when rejecting. |
| comments | string | optional | Optional moderation note. |
/subscriptions?part=snippet
| Param | Type | Required | Description |
|---|---|---|---|
| channelId | string | required | Channel ID to subscribe to. |
/subscriptions
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | required | Subscription ID. |
/captions?part=snippet
| Param | Type | Required | Description |
|---|---|---|---|
| id | string | required | Caption track ID. |
| name | string | optional | Caption track name. |
| isDraft | boolean | optional | Whether the caption is a draft. |
/channels
| Param | Type | Required | Description |
|---|---|---|---|
| channel | object | required | Complete YouTube channel resource. |
| part | string | required | Comma-separated channel resource parts. |
/channelSections
| Param | Type | Required | Description |
|---|---|---|---|
| channelSection | object | required | Complete YouTube channel section resource. |
| part | string | required | Comma-separated channel section parts. |
/comments
| Param | Type | Required | Description |
|---|---|---|---|
| comment | object | required | Complete YouTube comment resource. |
| part | string | required | Comma-separated comment resource parts. |
/playlists?part=snippet,status
| Param | Type | Required | Description |
|---|---|---|---|
| playlistId | string | required | Playlist ID. |
| title | string | optional | Updated playlist title. |
| description | string | optional | Updated playlist description. |
| privacyStatus | string | optional | YouTube privacy status. |
/playlistItems
| Param | Type | Required | Description |
|---|---|---|---|
| playlistItem | object | required | Complete YouTube playlist item resource. |
| part | string | required | Comma-separated playlist item parts. |
/thumbnails/set
| Param | Type | Required | Description |
|---|---|---|---|
| videoId | string | required | Video ID. |
| image | object | required | Thumbnail bytes as base64 plus their MIME type. |
/videos?part=snippet,status
| Param | Type | Required | Description |
|---|---|---|---|
| videoId | string | required | Video ID. |
| title | string | optional | Updated title. |
| description | string | optional | Updated description. |
| tags | array | optional | Video tags. |
| categoryId | string | optional | Video category ID. |
| privacyStatus | string | optional | YouTube privacy status. |
/videos
| Param | Type | Required | Description |
|---|---|---|---|
| body | object | required | YouTube video metadata resource. |
| media | object | required | Video bytes as base64 plus their MIME type. |
| part | string | required | Resource parts included in metadata. |