Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

YouTube

connector.youtube · connector.youtube_trigger · social, video

Upload and manage videos, playlists and channel settings, search YouTube, and react to new uploads.

Vendor API documentation: https://developers.google.com/youtube/v3/docs

Authentication

MethodCredential kindAuth kindFieldsTest request
Google account (OAuth2)youtube/oauth2oauth2_auth_codeclient_id, client_secret (secret)yes
Google service account (public data only)youtube/service_accountjwt_service_accountclient_email, private_key (secret), subjectyes
API key (public data only)youtube/api_keyapi_keyapi_key (secret)yes

Actions

Node type connector.youtube. Choose a resource and an operation; each operation has its own parameters.

Channel

OperationIDEffectPaginatedCassette tests
Get a channelchannel.getreads1
List channelschannel.listreadsyes2
Update channel settingschannel.updatewrites1
Upload a channel bannerchannel.upload_bannerwrites1

Get a channel

Operation channel.get.

NameTypeDefaultRequiredShown whenDescription
channel_idresource_locatoryesChannel. Values from lookup my_channels.
partmulti_options["snippet"]Parts to return. “*” returns every part listed here. One of *, brandingSettings, contentDetails, contentOwnerDetails, id, localizations, snippet, statistics, status, topicDetails.

List channels

Operation channel.list. Channels by ID, handle or legacy username, the authorized user’s channels, or channels managed by a content owner.

NameTypeDefaultRequiredShown whenDescription
partmulti_options["snippet"]Parts to return. “*” returns every part listed here. One of *, brandingSettings, contentDetails, contentOwnerDetails, id, localizations, snippet, statistics, status, topicDetails.
minebooleanfalseOnly my channels. Also used when no other filter is set.
idsstringChannel IDs. Comma separated channel IDs.
for_handlestringHandle.
for_usernamestringLegacy username.
managed_by_mebooleanfalseContent owner accounts only.
languagestringLocalization language. Language code for localized titles and descriptions.
return_allbooleanfalse
limitnumber25return_all = false

Update channel settings

Operation channel.update. Changes the channel description, keywords, country, language or trailer; other branding settings are kept.

NameTypeDefaultRequiredShown whenDescription
channel_idresource_locatoryesChannel. Values from lookup my_channels.
descriptionstring
keywordsstringSpace separated; quote phrases that contain spaces.
countrystring
default_languagestring
unsubscribed_trailerstringTrailer video for non-subscribers.
tracking_analytics_account_idstringGoogle Analytics account ID.

Upload a channel banner

Operation channel.upload_banner. Uploads a banner image (16:9, at least 2048x1152, up to 6 MB) and sets it on the channel.

NameTypeDefaultRequiredShown whenDescription
channel_idresource_locatoryesChannel. Values from lookup my_channels.
binary_propertybinary_property"data"Input binary field.

Playlist

OperationIDEffectPaginatedCassette tests
Create a playlistplaylist.createwrites1
Get a playlistplaylist.getreads1
List playlistsplaylist.listreadsyes2
Update a playlistplaylist.updatewrites1
Delete a playlistplaylist.deletewrites1

Create a playlist

Operation playlist.create.

NameTypeDefaultRequiredShown whenDescription
titlestringyes
descriptionstring
privacy_statusoptionsOne of private, public, unlisted.
tagsstringComma separated tags.
default_languagestring

Get a playlist

Operation playlist.get.

NameTypeDefaultRequiredShown whenDescription
playlist_idresource_locatoryesPlaylist. Values from lookup my_playlists.
partmulti_options["snippet"]One of *, contentDetails, id, localizations, player, snippet, status.

List playlists

Operation playlist.list. The authorized user’s playlists, a channel’s playlists, or playlists by ID.

NameTypeDefaultRequiredShown whenDescription
partmulti_options["snippet"]One of *, contentDetails, id, localizations, player, snippet, status.
channel_idresource_locatorChannel. Leave empty for your own playlists. Values from lookup my_channels.
idsstringPlaylist IDs. Comma separated playlist IDs.
return_allbooleanfalse
limitnumber25return_all = false

Update a playlist

Operation playlist.update. Changes the fields that are set and keeps the others.

NameTypeDefaultRequiredShown whenDescription
playlist_idresource_locatoryesPlaylist. Values from lookup my_playlists.
titlestring
descriptionstring
privacy_statusoptionsOne of private, public, unlisted.
tagsstringComma separated tags.
default_languagestring

Delete a playlist

Operation playlist.delete.

NameTypeDefaultRequiredShown whenDescription
playlist_idresource_locatoryesPlaylist. Values from lookup my_playlists.

Playlist item

OperationIDEffectPaginatedCassette tests
Add a video to a playlistplaylist_item.addwrites1
Get a playlist itemplaylist_item.getreads1
List playlist itemsplaylist_item.listreadsyes1
Remove a video from a playlistplaylist_item.deletewrites1

Add a video to a playlist

Operation playlist_item.add.

NameTypeDefaultRequiredShown whenDescription
playlist_idresource_locatoryesPlaylist. Values from lookup my_playlists.
video_idresource_locatoryesVideo. Values from lookup my_videos.
positionnumberZero-based position. Appends when empty.
notestringA note for this item (shown for some playlist types).

Get a playlist item

Operation playlist_item.get.

NameTypeDefaultRequiredShown whenDescription
playlist_item_idstringyesPlaylist item ID.
partmulti_options["snippet"]One of *, contentDetails, id, snippet, status.

List playlist items

Operation playlist_item.list.

NameTypeDefaultRequiredShown whenDescription
playlist_idresource_locatoryesPlaylist. Values from lookup my_playlists.
partmulti_options["snippet"]One of *, contentDetails, id, snippet, status.
video_idstringOnly this video.
return_allbooleanfalse
limitnumber25return_all = false

Remove a video from a playlist

Operation playlist_item.delete.

NameTypeDefaultRequiredShown whenDescription
playlist_item_idstringyesPlaylist item ID.

Video

OperationIDEffectPaginatedCassette tests
Upload a videovideo.uploadwrites1
Get a videovideo.getreads2
List videosvideo.listreadsyes2
Search videosvideo.searchreadsyes2
Update a videovideo.updatewrites1
Delete a videovideo.deletewrites1
Rate a videovideo.ratewrites1
Get my rating of videosvideo.get_ratingreads1
Set a custom thumbnailvideo.set_thumbnailwrites1

Upload a video

Operation video.upload. Uploads a video file with the resumable protocol (large files are sent in 8 MB chunks and resumed after interruptions).

NameTypeDefaultRequiredShown whenDescription
binary_propertybinary_property"data"Input binary field.
titlestringyes
descriptionstring
tagsstringComma separated tags.
region_codestring"US"Region used to list video categories.
category_idoptions"22"Category. Depends on region_code. Values from lookup video_categories.
privacy_statusoptions"private"One of private, public, unlisted.
publish_atdatetimeScheduled publish time; requires privacy status private.
embeddableboolean
licenseoptionsOne of youtube, creativeCommon.
public_stats_viewableboolean
made_for_kidsboolean
default_languagestring
recording_datedatetime
notify_subscribersbooleantrue

Get a video

Operation video.get.

NameTypeDefaultRequiredShown whenDescription
video_idresource_locatoryesVideo. Values from lookup my_videos.
partmulti_options["snippet"]14 values, listed below.
Values of part
ValueLabel
*
contentDetails
fileDetails
id
liveStreamingDetails
localizations
player
processingDetails
recordingDetails
snippet
statistics
status
suggestions
topicDetails

List videos

Operation video.list. Videos by ID, the most popular chart of a region, or the videos you liked or disliked.

NameTypeDefaultRequiredShown whenDescription
partmulti_options["snippet"]14 values, listed below.
filteroptions"ids"One of ids, most_popular, liked, disliked.
idsstringfilter = idsVideo IDs. Comma separated video IDs.
region_codestringfilter = most_popular
video_category_idoptionsfilter = most_popularCategory. Depends on region_code. Values from lookup video_categories.
return_allbooleanfalse
limitnumber25return_all = false
Values of part
ValueLabel
*
contentDetails
fileDetails
id
liveStreamingDetails
localizations
player
processingDetails
recordingDetails
snippet
statistics
status
suggestions
topicDetails

Search videos

Operation video.search. Searches YouTube (costs 100 quota units per page).

NameTypeDefaultRequiredShown whenDescription
querystring
channel_idstringChannel.
for_minebooleanfalseOnly my videos.
orderoptionsOne of date, rating, relevance, title, videoCount, viewCount.
published_afterdatetime
published_beforedatetime
region_codestring
relevance_languagestring
safe_searchoptionsOne of moderate, none, strict.
video_category_idstring
video_durationoptionsOne of any, long, medium, short.
video_definitionoptionsOne of any, high, standard.
video_typeoptionsOne of any, episode, movie.
event_typeoptionsLive status. One of completed, live, upcoming.
video_embeddablebooleanfalseOnly embeddable.
return_allbooleanfalse
limitnumber25return_all = false

Update a video

Operation video.update. Changes the fields that are set and keeps the others (title and category are required by YouTube and taken from the video when empty).

NameTypeDefaultRequiredShown whenDescription
video_idresource_locatoryesVideo. Values from lookup my_videos.
titlestring
descriptionstring
tagsstringComma separated tags.
region_codestring"US"Region used to list video categories.
category_idoptionsCategory. Depends on region_code. Values from lookup video_categories.
privacy_statusoptionsOne of private, public, unlisted.
publish_atdatetimeScheduled publish time; requires privacy status private.
embeddableboolean
licenseoptionsOne of youtube, creativeCommon.
public_stats_viewableboolean
made_for_kidsboolean
default_languagestring

Delete a video

Operation video.delete.

NameTypeDefaultRequiredShown whenDescription
video_idresource_locatoryesVideo. Values from lookup my_videos.

Rate a video

Operation video.rate.

NameTypeDefaultRequiredShown whenDescription
video_idresource_locatoryesVideo. Values from lookup my_videos.
ratingoptions"like"yesOne of like, dislike, none.

Get my rating of videos

Operation video.get_rating.

NameTypeDefaultRequiredShown whenDescription
idsstringyesVideo IDs. Comma separated video IDs.

Set a custom thumbnail

Operation video.set_thumbnail. Uploads a JPEG or PNG (up to 2 MB) as the video’s thumbnail. The channel must be verified.

NameTypeDefaultRequiredShown whenDescription
video_idresource_locatoryesVideo. Values from lookup my_videos.
binary_propertybinary_property"data"Input binary field.

Video category

OperationIDEffectPaginatedCassette tests
List video categoriesvideo_category.listreads1

List video categories

Operation video_category.list.

NameTypeDefaultRequiredShown whenDescription
region_codestring"US"yes
languagestringLanguage for the category titles.
assignable_onlybooleanfalseOnly categories that can be assigned to uploads.

Lookups

Lookups fill dropdowns and resource pickers in the editor from the vendor API.

LookupDepends onSearchDescription
my_channelsclient-side{{ item.snippet.customUrl }}
my_playlistsclient-side
my_videosserver-side{{ item.snippet.publishedAt }}
video_categoriesregion_codeclient-side

Triggers

Node type connector.youtube_trigger.

TriggerIDKindDeduplication keySignatureWebhook registrationCassette tests
New video on a channelnew_videopoll{{ item.videoId }}0
New video in a playlistnew_playlist_itempoll{{ item.id }}0

Trigger: New video on a channel

Emits videos newly added to a channel’s uploads (works for any public channel, 1 quota unit per check).

NameTypeDefaultRequiredShown whenDescription
channel_idresource_locatoryesChannel. Channel ID starting with UC. Values from lookup my_channels.

Trigger: New video in a playlist

Emits videos newly added to a playlist.

NameTypeDefaultRequiredShown whenDescription
playlist_idresource_locatoryesPlaylist. Values from lookup my_playlists.

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
n8n-nodes-base.youTube>=1 <2unverified

Provenance

Written from the vendor’s documentation: