Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/youtube:youtube-playlists-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: YouTube Data API v3 Playlists API
version: v3
description: Generated from Google's published Discovery document for YouTube Data API v3 (youtube v3, revision 20261111). 4 operation(s).
contact:
name: Google
url: https://developers.google.com/
termsOfService: https://developers.google.com/terms
servers:
- url: https://youtube.googleapis.com
tags:
- name: Playlists
paths:
/youtube/v3/playlists:
get:
operationId: youtube.playlists.list
summary: List playlists
description: Retrieves a list of resources, possibly filtered.
parameters:
- name: channelId
in: query
required: false
description: Return the playlists owned by the specified channel ID.
schema:
type: string
- name: hl
in: query
required: false
description: Return content in specified language
schema:
type: string
- name: id
in: query
required: false
description: Return the playlists with the given IDs for Stubby or Apiary.
schema:
type: array
items:
type: string
- name: maxResults
in: query
required: false
description: The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
schema:
format: uint32
default: '5'
minimum: 0
type: integer
maximum: 50
- name: mine
in: query
required: false
description: Return the playlists owned by the authenticated user.
schema:
type: boolean
- name: onBehalfOfContentOwner
in: query
required: false
description: '*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request''s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.'
schema:
type: string
- name: onBehalfOfContentOwnerChannel
in: query
required: false
description: This parameter can only be used in a properly [authorized request](https://developers.google.com/youtube/data/guides/authentication). *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
schema:
type: string
- name: pageToken
in: query
required: false
description: The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
schema:
type: string
- name: part
in: query
required: true
description: The *part* parameter specifies a comma-separated list of one or more playlist resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlist resource, the snippet property contains properties like author, title, description, tags, and timeCreated. As such, if you set *part=snippet*, the API response will contain all of those properties.
schema:
type: array
items:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/PlaylistListResponse'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/youtube
- https://www.googleapis.com/auth/youtube.force-ssl
- https://www.googleapis.com/auth/youtube.readonly
- https://www.googleapis.com/auth/youtubepartner
- apiKey: []
tags:
- Playlists
put:
operationId: youtube.playlists.update
summary: Update playlists
description: Updates an existing resource.
parameters:
- name: onBehalfOfContentOwner
in: query
required: false
description: '*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request''s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.'
schema:
type: string
- name: part
in: query
required: true
description: The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for mutable properties that are contained in any parts that the request body specifies. For example, a playlist's description is contained in the snippet part, which must be included in the request body. If the request does not specify a value for the snippet.description property, the playlist's existing description will be deleted.
schema:
type: array
items:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Playlist'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Playlist'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/youtube
- https://www.googleapis.com/auth/youtube.force-ssl
- https://www.googleapis.com/auth/youtubepartner
- apiKey: []
tags:
- Playlists
post:
operationId: youtube.playlists.insert
summary: Insert playlists
description: Inserts a new resource into this collection.
parameters:
- name: onBehalfOfContentOwner
in: query
required: false
description: '*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request''s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.'
schema:
type: string
- name: onBehalfOfContentOwnerChannel
in: query
required: false
description: This parameter can only be used in a properly [authorized request](https://developers.google.com/youtube/data/guides/authentication). *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
schema:
type: string
- name: part
in: query
required: true
description: The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
schema:
type: array
items:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Playlist'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Playlist'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/youtube
- https://www.googleapis.com/auth/youtube.force-ssl
- https://www.googleapis.com/auth/youtubepartner
- apiKey: []
tags:
- Playlists
delete:
operationId: youtube.playlists.delete
summary: Delete playlists
description: Deletes a resource.
parameters:
- name: id
in: query
required: true
schema:
type: string
- name: onBehalfOfContentOwner
in: query
required: false
description: '*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request''s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.'
schema:
type: string
responses:
'200':
description: Successful response
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/youtube
- https://www.googleapis.com/auth/youtube.force-ssl
- https://www.googleapis.com/auth/youtubepartner
- apiKey: []
tags:
- Playlists
components:
schemas:
Playlist:
properties:
status:
$ref: '#/components/schemas/PlaylistStatus'
description: The status object contains status information for the playlist.
player:
$ref: '#/components/schemas/PlaylistPlayer'
description: The player object contains information that you would use to play the playlist in an embedded player.
localizations:
type: object
additionalProperties:
$ref: '#/components/schemas/PlaylistLocalization'
description: Localizations for different languages
snippet:
$ref: '#/components/schemas/PlaylistSnippet'
description: The snippet object contains basic details about the playlist, such as its title and description.
kind:
default: youtube#playlist
type: string
description: 'Identifies what kind of resource this is. Value: the fixed string "youtube#playlist".'
etag:
description: Etag of this resource.
type: string
contentDetails:
$ref: '#/components/schemas/PlaylistContentDetails'
description: The contentDetails object contains information like video count.
id:
description: The ID that YouTube uses to uniquely identify the playlist.
type: string
description: 'A *playlist* resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. A playlist can contain up to 200 videos, and YouTube does not limit the number of playlists that each user creates. By default, playlists are publicly visible to other users, but playlists can be public or private. YouTube also uses playlists to identify special collections of videos for a channel, such as: * uploaded videos * favorite videos * positively rated (liked) videos * watch history * watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company''s videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the [`channel resource`](https://developers.google.com/youtube/data/reference/rest/v3/channels) for a given channel. You can then use the [`playlistItems.list`](https://developers.google.com/youtube/data/reference/rest/v3/playlistItems/list) method to retrieve any of those lists. You can also add or remove items from those lists by calling the [`playlistItems.insert`](https://developers.google.com/youtube/data/reference/rest/v3/playlistItems/insert) and [`playlistItems.delete`](https://developers.google.com/youtube/data/reference/rest/v3/playlistItems/delete) methods.'
type: object
GoogleRpcError:
type: object
description: The error envelope every Google API returns.
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
status:
type: string
details:
type: array
items:
type: object
PlaylistLocalization:
type: object
properties:
title:
description: The localized strings for playlist's title.
type: string
description:
type: string
description: The localized strings for playlist's description.
description: Playlist localization setting
PageInfo:
description: Paging details for lists of resources, including total number of items available and number of resources returned in a single page.
properties:
resultsPerPage:
format: int32
description: The number of results included in the API response.
type: integer
totalResults:
description: The total number of results in the result set.
type: integer
format: int32
type: object
PlaylistStatus:
properties:
privacyStatus:
description: The playlist's privacy status.
type: string
enum:
- public
- unlisted
- private
podcastStatus:
description: The playlist's podcast status.
enum:
- enabled
- disabled
type: string
type: object
Thumbnail:
description: A thumbnail is an image representing a YouTube resource.
properties:
width:
type: integer
description: (Optional) Width of the thumbnail image.
format: uint32
url:
type: string
description: The thumbnail image's URL.
height:
format: uint32
description: (Optional) Height of the thumbnail image.
type: integer
type: object
ThumbnailDetails:
properties:
standard:
$ref: '#/components/schemas/Thumbnail'
description: The standard quality image for this resource.
default:
$ref: '#/components/schemas/Thumbnail'
description: The default image for this resource.
high:
$ref: '#/components/schemas/Thumbnail'
description: The high quality image for this resource.
maxres:
$ref: '#/components/schemas/Thumbnail'
description: The maximum resolution quality image for this resource.
shortsAspectRatio:
$ref: '#/components/schemas/Thumbnail'
description: The Shorts aspect ratio (9:16) image for this resource.
qhd:
$ref: '#/components/schemas/Thumbnail'
description: The quad high definition (1440p / 2K) quality image for this resource.
uhd:
$ref: '#/components/schemas/Thumbnail'
description: The ultra-high resolution (4K) quality image for this resource.
fhd:
$ref: '#/components/schemas/Thumbnail'
description: The full high definition (1080p) quality image for this resource.
medium:
$ref: '#/components/schemas/Thumbnail'
description: The medium quality image for this resource.
description: Internal representation of thumbnails for a YouTube resource.
type: object
TokenPagination:
properties: {}
description: Stub token pagination template to suppress results.
type: object
PlaylistPlayer:
type: object
properties:
embedHtml:
type: string
description: An <iframe> tag that embeds a player that will play the playlist.
PlaylistListResponse:
type: object
properties:
pageInfo:
$ref: '#/components/schemas/PageInfo'
description: General pagination information.
eventId:
type: string
description: Serialized EventId of the request which produced this response.
deprecated: true
visitorId:
description: The visitorId identifies the visitor.
type: string
deprecated: true
prevPageToken:
type: string
description: The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
etag:
description: Etag of this resource.
type: string
tokenPagination:
$ref: '#/components/schemas/TokenPagination'
items:
items:
$ref: '#/components/schemas/Playlist'
description: A list of playlists that match the request criteria
type: array
kind:
default: youtube#playlistListResponse
description: 'Identifies what kind of resource this is. Value: the fixed string "youtube#playlistListResponse".'
type: string
nextPageToken:
description: The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
type: string
PlaylistContentDetails:
type: object
properties:
itemCount:
format: uint32
description: The number of videos in the playlist.
type: integer
PlaylistSnippet:
properties:
localized:
$ref: '#/components/schemas/PlaylistLocalization'
description: Localized title and description, read-only.
channelId:
type: string
description: The ID that YouTube uses to uniquely identify the channel that published the playlist.
thumbnailVideoId:
description: 'Note: if the playlist has a custom thumbnail, this field will not be populated. The video id selected by the user that will be used as the thumbnail of this playlist. This field defaults to the first publicly viewable video in the playlist, if: 1. The user has never selected a video to be the thumbnail of the playlist. 2. The user selects a video to be the thumbnail, and then removes that video from the playlist. 3. The user selects a non-owned video to be the thumbnail, but that video becomes private, or gets deleted.'
type: string
title:
description: The playlist's title.
type: string
publishedAt:
format: date-time
type: string
description: The date and time that the playlist was created.
tags:
items:
type: string
description: Keyword tags associated with the playlist.
type: array
deprecated: true
description:
description: The playlist's description.
type: string
defaultLanguage:
description: The language of the playlist's default title and description.
type: string
thumbnails:
$ref: '#/components/schemas/ThumbnailDetails'
description: A map of thumbnail images associated with the playlist. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
channelTitle:
type: string
description: The channel title of the channel that the video belongs to.
description: Basic details about a playlist, including title, description and thumbnails.
type: object
securitySchemes:
apiKey:
type: apiKey
in: query
name: key
description: API key; accepted by methods that do not need user data.
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://accounts.google.com/o/oauth2/auth
tokenUrl: https://oauth2.googleapis.com/token
scopes:
https://www.googleapis.com/auth/youtube: Manage your YouTube account
https://www.googleapis.com/auth/youtubepartner: View and manage your assets and associated content on YouTube
https://www.googleapis.com/auth/youtube.channel-memberships.creator: See a list of your current active channel members, their current level, and when they became a member
https://www.googleapis.com/auth/youtubepartner-channel-audit: View private information of your YouTube channel relevant during the audit process with a YouTube partner
https://www.googleapis.com/auth/youtube.force-ssl: See, edit, and permanently delete your YouTube videos, ratings, comments and captions
https://www.googleapis.com/auth/youtube.readonly: View your YouTube account
https://www.googleapis.com/auth/youtube.upload: Manage your YouTube videos
externalDocs:
url: https://developers.google.com/youtube/
x-provenance:
method: harvested
publisher: Google
source: https://youtube.googleapis.com/$discovery/rest?version=v3
note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261111)