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-playlist-items-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 Playlist Items 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: Playlist Items
paths:
/youtube/v3/playlistItems:
put:
operationId: youtube.playlistItems.update
summary: Update playlistItems
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 all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist item can specify a start time and end time, which identify the times portion of the video that should play when users watch the video in the playlist. If your request is updating a playlist item that sets these values, and the request's part parameter value includes the contentDetails part, the playlist item's start and end times will be updated to whatever value the request body specifies. If the request body does not specify values, the existing start and end times will be removed and replaced with the default settings.
schema:
type: array
items:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PlaylistItem'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/PlaylistItem'
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:
- Playlist Items
get:
operationId: youtube.playlistItems.list
summary: List playlistItems
description: Retrieves a list of resources, possibly filtered.
parameters:
- name: id
in: query
required: false
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:
default: '5'
minimum: 0
format: uint32
type: integer
maximum: 50
- 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: 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 playlistItem 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 playlistItem resource, the snippet property contains numerous fields, including the title, description, position, and resourceId properties. As such, if you set *part=snippet*, the API response will contain all of those properties.
schema:
type: array
items:
type: string
- name: playlistId
in: query
required: false
description: Return the playlist items within the given playlist.
schema:
type: string
- name: videoId
in: query
required: false
description: Return the playlist items associated with the given video ID.
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/PlaylistItemListResponse'
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:
- Playlist Items
delete:
operationId: youtube.playlistItems.delete
summary: Delete playlistItems
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:
- Playlist Items
post:
operationId: youtube.playlistItems.insert
summary: Insert playlistItems
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: 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/PlaylistItem'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/PlaylistItem'
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:
- Playlist Items
components:
schemas:
PlaylistItem:
description: 'A *playlistItem* resource identifies another resource, such as a video, that is included in a playlist. In addition, the playlistItem resource contains details about the included resource that pertain specifically to how that resource is used in that playlist. YouTube 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. For example, if a user gives a positive rating to a video, you would insert that video into the liked videos playlist for that user''s channel.'
properties:
id:
type: string
description: The ID that YouTube uses to uniquely identify the playlist item.
contentDetails:
$ref: '#/components/schemas/PlaylistItemContentDetails'
description: The contentDetails object is included in the resource if the included item is a YouTube video. The object contains additional information about the video.
kind:
description: 'Identifies what kind of resource this is. Value: the fixed string "youtube#playlistItem".'
default: youtube#playlistItem
type: string
etag:
type: string
description: Etag of this resource.
status:
$ref: '#/components/schemas/PlaylistItemStatus'
description: The status object contains information about the playlist item's privacy status.
snippet:
$ref: '#/components/schemas/PlaylistItemSnippet'
description: The snippet object contains basic details about the playlist item, such as its title and position in the playlist.
type: object
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
ResourceId:
type: object
description: A resource id is a generic reference that points to another YouTube resource.
properties:
videoId:
type: string
description: The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
playlistId:
type: string
description: The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
channelId:
type: string
description: The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
kind:
description: The type of the API resource.
type: string
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
PlaylistItemListResponse:
type: object
properties:
items:
type: array
description: A list of playlist items that match the request criteria.
items:
$ref: '#/components/schemas/PlaylistItem'
prevPageToken:
description: The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
type: string
tokenPagination:
$ref: '#/components/schemas/TokenPagination'
etag:
type: string
eventId:
description: Serialized EventId of the request which produced this response.
type: string
nextPageToken:
type: string
description: The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
pageInfo:
$ref: '#/components/schemas/PageInfo'
description: General pagination information.
kind:
type: string
description: 'Identifies what kind of resource this is. Value: the fixed string "youtube#playlistItemListResponse".'
default: youtube#playlistItemListResponse
visitorId:
type: string
description: The visitorId identifies the visitor.
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
PlaylistItemSnippet:
description: 'Basic details about a playlist, including title, description and thumbnails. Basic details of a YouTube Playlist item provided by the author. Next ID: 15'
type: object
properties:
description:
type: string
description: The item's description.
position:
format: uint32
type: integer
description: The order in which the item appears in the playlist. The value uses a zero-based index, so the first item has a position of 0, the second item has a position of 1, and so forth.
channelId:
description: The ID that YouTube uses to uniquely identify the user that added the item to the playlist.
type: string
thumbnails:
$ref: '#/components/schemas/ThumbnailDetails'
description: A map of thumbnail images associated with the playlist item. 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.
playlistId:
description: The ID that YouTube uses to uniquely identify thGe playlist that the playlist item is in.
type: string
resourceId:
$ref: '#/components/schemas/ResourceId'
description: The id object contains information that can be used to uniquely identify the resource that is included in the playlist as the playlist item.
title:
description: The item's title.
type: string
videoOwnerChannelTitle:
description: Channel title for the channel this video belongs to.
type: string
publishedAt:
description: The date and time that the item was added to the playlist.
format: date-time
type: string
channelTitle:
type: string
description: Channel title for the channel that the playlist item belongs to.
videoOwnerChannelId:
description: Channel id for the channel this video belongs to.
type: string
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
PlaylistItemStatus:
properties:
privacyStatus:
description: This resource's privacy status.
enum:
- public
- unlisted
- private
type: string
description: Information about the playlist item's privacy status.
type: object
PlaylistItemContentDetails:
type: object
properties:
videoId:
description: The ID that YouTube uses to uniquely identify a video. To [retrieve the `video` resource](https://developers.google.com/youtube/data/reference/rest/v3/videos/list), set the id query parameter to this value in your API request.
type: string
startAt:
description: The time, measured in seconds from the start of the video, when the video should start playing. (The playlist owner can specify the times when the video should start and stop playing when the video is played in the context of the playlist.) The default value is 0.
type: string
deprecated: true
note:
description: A user-generated note for this item.
type: string
videoPublishedAt:
description: The date and time that the video was published to YouTube.
type: string
format: date-time
endAt:
description: The time, measured in seconds from the start of the video, when the video should stop playing. (The playlist owner can specify the times when the video should start and stop playing when the video is played in the context of the playlist.) By default, assume that the video.endTime is the end of the video.
type: string
deprecated: true
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)