YTAPI.devDocs
Last updated Sep 13, 2026
||MarkdownView as Markdown|Agent setup

Get playlist

getPlaylist(id, query?, options?): Playlist

GET/v1/playlists/{id}1 Credit

Returns playlist overview plus the initial page of video items. Use next_cursor with List playlist videos for later pages.

API Token

The preferred authorization scheme for the YouTube Transcript API. Create a key with transcripts:read in the developer dashboard.

Example: Authorization: Bearer YOUR_API_KEY

See Authentication for scopes and rate limits.

transcripts:read
ParametersExpand Collapse
id:string

Path param:

Playlist ID (PL...) or a full YouTube playlist URL.

required_country?:string

Query param:

ISO country hint used when region availability matters.

ReturnsExpand Collapse
playlist_id:string

Canonical playlist ID.

title:string

Playlist title.

description:string

Playlist description.

video_count:number

Total videos in the playlist.

view_count_text?:string

Display string for views.

author:string

Owner channel name.

thumbnails:Thumbnail[]

Artwork at one or more sizes.

videos:PlaylistVideo[]

First page of items, including video_id, title, index, and duration.

has_more:boolean

Whether another page is available.

next_cursor:string | null

Opaque cursor for the next page.