YouTube API

Documentation

Everything you need to build with the API.

Getting StartedQuick start guide AuthenticationAPI keys & OAuth 2.0 VideosSearch, list, insert, update ChannelsRetrieve channel info PlaylistsManage playlists CommentsRead & write comments CaptionsManage captions ErrorsError codes & handling

Getting started

Use your API key with each request. Open the playground to test endpoints with your active account.

Authentication

GET /search?q=lofi&api_key=YOUR_API_KEY

Videos

Search video metadata and retrieve supported media information.

Channels

Retrieve public channel details and statistics.

Playlists

Read playlist metadata and items.

Comments

Retrieve available comment data.

Captions

Manage caption resources where available.

Errors

Responses use standard HTTP status codes with JSON error details.