Structure:
{
"kind": "youtube#playlistItem",
"etag": etag,
"id": string,
"snippet": {
"publishedAt": datetime,
"channelId": string,
"title": string,
"description": string,
"thumbnails": {
(key): {
"url": string,
"width": unsigned integer,
"height": unsigned integer
}
},
"channelTitle": string,
"playlistId": string,
"position": unsigned integer,
"resourceId": {
"kind": string,
"videoId": string,
}
},
"contentDetails": {
"videoId": string,
"startAt": string,
"endAt": string,
"note": string,
"videoPublishedAt": datetime
},
"status": {
"privacyStatus": string
}
}
Methods:
-
Insert:
POST https://www.googleapis.com/youtube/v3/playlistItems
- OAuth
- Parameters:
part: string - The parts to both insert and return.
contentDetails
id
snippet
status
- Body:
snippet.playlistId - required
snippet.position
snippet.resourceId - required
contentDetails.note
contentDetails.startAt
contentDetails.endAt
- Returns: A
PlaylistItem resource.
-
Update:
PUT https://www.googleapis.com/youtube/v3/playlistItems
- OAuth
- Parameters:
- Body:
id - required
- [same as
Insert method]
- If you are submitting an update request, and your request does not specify a value for a property that already has a value, the property's existing value will be deleted.
- Returns: A
PlaylistItem resource.
-
Delete:
DELETE https://www.googleapis.com/youtube/v3/playlistItems
- OAuth
- Parameters:
id: string - YouTube playlist item ID for the playlist item that is being deleted.
- Body:
- Returns:
204 No Content
Structure:
Methods:
Insert:
POST https://www.googleapis.com/youtube/v3/playlistItemspart: string- The parts to both insert and return.contentDetailsidsnippetstatussnippet.playlistId- requiredsnippet.positionsnippet.resourceId- requiredcontentDetails.notecontentDetails.startAtcontentDetails.endAtPlaylistItemresource.Update:
PUT https://www.googleapis.com/youtube/v3/playlistItemsInsertmethod]id- requiredInsertmethod]PlaylistItemresource.Delete:
DELETE https://www.googleapis.com/youtube/v3/playlistItemsid: string- YouTube playlist item ID for the playlist item that is being deleted.204 No Content