YouTube API guide

youtube.com

Find videos and transcripts, subscribe to channels, and manage playlists on your channel.

Actions and inputs

search

Return video search results that match your query.

Inputs Search terms. Optional result limit

video

Return video metadata, including channel details when available.

Inputs Video URL

transcript

Return a video's transcript or subtitles when available.

Inputs Video URL

channel

Return channel details and videos.

Inputs Channel ID or handle (with or without @)

watch-later

List videos in your Watch Later queue.

Inputs Optional result limit

subscribe

Subscribe to a channel with your signed-in account.

Inputs Channel handle

Playlists

Create

Make a playlist on your own channel.

Inputs Title, privacy (private, unlisted, or public)

Read

Show which videos are in the playlist.

Inputs Playlist ID or URL

Update

Rename a playlist you own or change who can see it.

Inputs Playlist ID, new title or privacy (private, unlisted, or public)

Delete

Delete the playlist from your channel.

Inputs Playlist ID