This document identifies the different types of errors that YouTube Data API operations can return. You can also find a list of errors for any individual method in the reference documentation for that method.
- General errors
- activities
- channelBanners
- channelSections
- channels
- playlistItems
- playlists
- search
- subscriptions
- thumbnails
- videoCategories
- videos
- watermarks
General errors
The tables below identify API error messages that are not specific to a particular API method.
Core API errors
| Error type | Error detail | Description |
|---|---|---|
forbidden (403) |
forbidden |
Access forbidden. The request may not be properly authorized. |
quotaExceeded (403) |
quotaExceeded |
The request cannot be completed because you have exceeded your quota. |
Common request errors
| Error type | Error detail | Description |
|---|---|---|
badRequest (400) |
incompatibleParameters |
The request specifies two or more parameters that cannot be used in the same request. |
badRequest (400) |
invalidFilters |
The request specifies an invalid filter parameter. |
badRequest (400) |
invalidPageToken |
The request specifies an invalid page token. |
badRequest (400) |
missingRequiredParameter |
The request is missing a required parameter. |
badRequest (400) |
unexpectedParameter |
The request specifies an unexpected parameter. |
forbidden (403) |
accountDelegationForbidden |
The authenticated user cannot act on behalf of the specified Google account. |
forbidden (403) |
authenticatedUserAccountClosed |
The YouTube account of the authenticated user is closed. In case the authenticated user is acting on behalf of another Google account, then this error refers to the latter. |
forbidden (403) |
authenticatedUserAccountSuspended |
The YouTube account of the authenticated user is suspended. In case the authenticated user is acting on behalf of another Google account, then this error refers to the latter. |
forbidden (403) |
authenticatedUserNotChannel |
For this request the authenticated user must resolve to a channel, but does not. If your request is authenticated and uses the onBehalfOfContentOwner delegation parameter, then you should also set the onBehalfOfContentOwnerChannel parameter. |
forbidden (403) |
channelClosed |
The channel identified in the request has been closed. |
forbidden (403) |
channelNotFound |
The channel identified in the request cannot be found. |
forbidden (403) |
channelSuspended |
The channel identified in the request has been suspended. |
forbidden (403) |
cmsUserAccountNotFound |
The CMS user is not allowed to act on behalf of the specified content owner. |
forbidden (403) |
insufficientCapabilities |
The CMS user has insufficient capabilities. |
forbidden (403) |
insufficientPermissions |
The scopes associated with the OAuth 2.0 token provided for the request are insufficient for accessing the requested data. |
notFound (404) |
contentOwnerAccountNotFound |
The specified content owner account was not found. |
Request context errors
| Error type | Error detail | Description |
|---|---|---|
badRequest (400) |
invalidLanguage |
The hl parameter value does not specify a valid language code. |
badRequest (400) |
invalidMine |
The mine parameter cannot be used in requests where the authenticated user is a YouTube partner. You should either remove the mine parameter, authenticate as a YouTube user by removing the onBehalfOfContentOwner parameter, or act as one of the partner's channels by providing the onBehalfOfContentOwnerChannel parameter if available for the called method. |
badRequest (400) |
invalidMine |
The request's use of the mine parameter is not supported. |
badRequest (400) |
invalidPart |
The request's part parameter specifies some parts that cannot be written at the same time. |
badRequest (400) |
invalidRegionCode |
The regionCode parameter specifies an invalid region code. |
badRequest (400) |
unexpectedPart |
The request's part parameter specifies an unexpected value. |
badRequest (400) |
unknownPart |
The request's part parameter specifies an unknown value. |
badRequest (400) |
unsupportedLanguageCode |
The hl parameter value does not specify a supported language code. |
badRequest (400) |
unsupportedRegionCode |
The regionCode parameter specifies an unsupported region code. |
unauthorized (401) |
authorizationRequired |
The request uses the mine parameter but is not properly authorized. |
unauthorized (401) |
youtubeSignupRequired |
This error indicates that the user has an unlinked Google Account, which means that the user has a Google Account but does not have a YouTube channel. Such users can access many features that are dependent on user authorization, such as rating videos or adding videos to a watch_later playlist. However, as an example, the user would need a YouTube channel to be able to upload a video. A user who has a Gmail account or an Android device is certain to have a Google Account but may not have already linked that Google Account to a YouTube channel.This error is commonly seen if you try to use the OAuth 2.0 Service Account flow. YouTube does not support Service Accounts, and if you attempt to authenticate using a Service Account, you will get this error. The YouTube API blog post introducing Google Account support also discusses the youtubeSignupRequired error in more detail. Although the blog post explains the error for API version 2.1, the meaning of the error is still applicable. |
activities
The tables below identify error messages that the API returns in response to calls related to activities resources. These methods could also return errors listed in the Common errors section.
activities.list
| Error type | Error detail | Description |
|---|---|---|
forbidden (403) |
forbidden |
|
notFound (404) |
channelNotFound |
The channel ID identified by the request's channelId parameter cannot be found. |
notFound (404) |
homeChannelNotFound |
A YouTube home page feed cannot be found for the currently authenticated user. |
unauthorized (401) |
authorizationRequired |
The request uses the home parameter but is not properly authorized. |
activities.insert
| Error type | Error detail | Description |
|---|---|---|
badRequest (400) |
bulletinTextRequired |
The request must use the snippet object's description property to provide the text for the bulletin post. |
forbidden (403) |
forbidden |
|
notFound (404) |
playlistNotFound |
YouTube cannot find the video that you are trying to associate with the bulletin post. Check the value of the contentDetails.bulletinPosted.playlistId property. |
notFound (404) |
videoNotFound |
YouTube cannot find the video that you are trying to associate with the bulletin post. Check the value of the contentDetails.bulletinPosted.videoId property. |
userRateLimitExceeded (403) |
rateLimitExceeded |
The request cannot be completed because you have exceeded your quota. |
channelBanners
The tables below identify error messages that the API returns in response to calls related to channelBanners resources. These methods could also return errors listed in the Common errors section.
channelBanners.insert
| Error type | Error detail | Description |
|---|---|---|
badRequest (400) |
bannerAlbumFull |
Your YouTube Channel Art album has too many images. Please go to http://photos.google.com, navigate to the albums page, and remove some from images from that album. |
badRequest (400) |
mediaBodyRequired |
The request does not include the image content. |
channelSections
The tables below identify error messages that the API returns in response to calls related to channelSections resources. These methods could also return errors listed in the Common errors section.
channelSections.delete
| Error type | Error detail | Description |
|---|---|---|
forbidden (403) |
channelSectionForbidden |
The request is not properly authenticated or not supported for this channel. |
invalidValue (400) |
idInvalid |
The id property specifies an invalid channel section ID. |
invalidValue (400) |
idRequired |
The id property must specify a value that identifies the channel section being deleted. |
notFound (404) |
channelSectionNotFound |
The channel section you are trying to update cannot be found. |
channelSections.insert
| Error type | Error detail | Description |
|---|---|---|
forbidden (403) |
channelSectionForbidden |
The request is not properly authenticated or is not supported for this channel. |
invalidValue (400) |
channelNotActive |
At least one of the specified channels is not active. |
invalidValue (400) |
channelsDuplicated |
The request failed because it specified duplicate channels. |
invalidValue (400) |
channelsNeeded |
If the snippet.type property has a value of multipleChannels, then the contentDetails.channels[] property must be specified and must specify at least one channel. |
invalidValue (400) |
channelsNotExpected |
The resource provided with the request specified a value for the contentDetails.channels[] property, but channels are not expected for this type of channel section. |
invalidValue (400) |
contentDetailsNeeded |
The resource you are inserting must contain a contentDetails object for this type of channel section. |
invalidValue (400) |
inValidPosition |
The snippet.position property contains an invalid value. |
invalidValue (400) |
maxChannelSectionExceeded |
The request cannot be completed because the channel already has the maximum number of channel sections. |
invalidValue (400) |
maxChannelsExceeded |
The request failed because it attempted to include too many channels in the channel section. |
invalidValue (400) |
maxPlaylistExceeded |
The request failed because it attempted to include too many playlists in the channel section. |
invalidValue (400) |
onePlaylistNeeded |
If the snippet.type property has a value of singlePlaylist, then the contentDetails.playlists[] property must specify exactly one playlist. |
invalidValue (400) |
ownChannelInChannels |
You cannot include your own channel in a channel section that appears on that channel. |
invalidValue (400) |
playlistIsPrivate |
One or more of the specified playlists are private and, therefore, cannot be included in the channel section. |
invalidValue (400) |
playlistsDuplicated |
The request failed because it specified duplicate playlists. |
invalidValue (400) |
playlistsNeeded |
If the snippet.type property has a value of singlePlaylist or multiplePlaylists, then the contentDetails.playlists[] property must be specified. |
invalidValue (400) |
playlistsNotExpected |
The resource provided with the request specified a value for the contentDetails.playlists[] property, but playlists are not expected for this type of channel section. |
invalidValue (400) |
snippetNeeded |
You must specify a snippet to create the channel section. |
invalidValue (400) |
titleLengthExceeded |
The value of the snippet.title property is too long. |
invalidValue (400) |
titleRequired |
If the snippet.type property has a value of multiplePlaylists or multipleChannels, then you must set the section's title by specifying a value for the snippet.title property. |
notFound (404) |
channelNotFound |
One or more of the specified channels cannot be found. |
notFound (404) |
playlistNotFound |
One or more of the specified playlists cannot be found. |
channelSections.list
| Error type | Error detail | Description |
|---|---|---|
forbidden (403) |
channelSectionForbidden |
The requester is not allowed to access the requested channel sections. |
invalidValue (400) |
idInvalid |
The request specifies an invalid channel section ID. |
invalidValue (400) |
invalidCriteria |
The request could not be completed because the filter criteria are invalid. |
notFound (404) |
channelNotFound |
The channel associated with the request cannot be found. |
notFound (404) |
channelSectionNotFound |
The channel section associated with the request cannot be found. |
channelSections.update
| Error type | Error detail | Description |
|---|---|---|
forbidden (403) |
channelSectionForbidden |
The request is not properly authenticated or is not supported for this channel. |
invalidValue (400) |
channelNotActive |
At least one of the specified channels is not active. |
invalidValue (400) |
channelsDuplicated |
The request failed because it specified duplicate channels. |
invalidValue (400) |
channelsNeeded |
If the snippet.type property has a value of multipleChannels, then the contentDetails.channels[] property must be specified and must specify at least one channel. |
invalidValue (400) |
channelsNotExpected |
The resource provided with the request specified a value for the contentDetails.channels[] property, but channels are not expected for this type of channel section. |
invalidValue (400) |
contentDetailsNeeded |
The resource you are updating must contain a contentDetails object for this type of channel section. |
invalidValue (400) |
idInvalid |
The id property specifies an invalid channel section ID. |
invalidValue (400) |
idRequired |
The id property must specify a value that identifies the channel section being updated. |
invalidValue (400) |
inValidPosition |
The snippet.position property contains an invalid value. |
invalidValue (400) |
maxChannelsExceeded |
The request failed because it attempted to include too many channels in the channel section. |
invalidValue (400) |
maxPlaylistExceeded |
The request failed because it attempted to include too many playlists in the channel section. |
invalidValue (400) |
onePlaylistNeeded |
If the snippet.type property has a value of singlePlaylist, then the contentDetails.playlists[] property must specify exactly one playlist. |
invalidValue (400) |
ownChannelInChannels |
You cannot include your own channel in a channel section that appears on that channel. |
invalidValue (400) |
playlistIsPrivate |
One or more of the specified playlists are private and, therefore, cannot be included in the channel section. |
invalidValue (400) |
playlistsDuplicated |
The request failed because it specified duplicate playlists. |
invalidValue (400) |
playlistsNeeded |
If the snippet.type property has a value of singlePlaylist or multiplePlaylists, then the contentDetails.playlists[] property must be specified. |
invalidValue (400) |
playlistsNotExpected |
The resource provided with the request specified a value for the contentDetails.playlists[] property, but playlists are not expected for this type of channel section. |
invalidValue (400) |
snippetNeeded |
You must specify a snippet to update the channel section. |
invalidValue (400) |
titleLengthExceeded |
The value of the snippet.title property is too long. |
invalidValue (400) |
titleRequired |
If the snippet.type property has a value of multiplePlaylists or multipleChannels, then you must set the section's title by specifying a value for the snippet.title property. |
notFound (404) |
channelNotFound |
One or more of the specified channels cannot be found. |
notFound (404) |
channelSectionNotFound |
The channel section you are trying to update cannot be found. |
notFound (404) |
playlistNotFound |
One or more of the specified playlists cannot be found. |
channels
The tables below identify error messages that the API returns in response to calls related to channels resources. These methods could also return errors listed in the Common errors section.
channels.list
| Error type | Error detail | Description |
|---|---|---|
badRequest (400) |
invalidCriteria |
A maximum of one of the following filters may be specified:id, mySubscribers, categoryId, mine, managedByMe, forUsername. In case of content owner authentication via the onBehalfOfContentOwner parameter, only the id or managedByMe may be specified. |
forbidden (403) |
channelForbidden |
The channel specified by the id parameter does not support the request or the request is not properly authorized. |
notFound (404) |
categoryNotFound |
The category identified by the categoryId parameter cannot be found. Use the guideCategories.list method to retrieve a list of valid values. |
notFound (404) |
channelNotFound |
The channel specified in the id parameter cannot be found. |
channels.update
| Error type | Error detail | Description |
|---|---|---|
badRequest (400) |
brandingValidationError |
One of the values in the brandingSettings object failed validation. Use the channels.list method to retrieve the existing settings for the channel, and update the property values following the guidelines in the channels resource documentation. |
badRequest (400) |
channelTitleUpdateForbidden |
When updating a channel's brandingSettings part, you must set the brandingSettings.channel.title property's value to the channel's current title or omit the property. The API returns an error if you change the property's value. |
badRequest (400) |
invalidBrandingOption |
One of the branding settings that you specified does not exist. Use the channels.list method to retrieve valid values and make sure to update them following the guidelines in the channels resource documentation. |
badRequest (400) |
invalidCustomMessage |
The request metadata specifies an invalid custom message. Check the value of the invideoPromotion.items[].customMessage property in the resource that the request sent. |
badRequest (400) |
invalidDuration |
The request metadata specifies an invalid duration in the invideoPromotion part. |
badRequest (400) |
invalidDuration |
The request metadata specifies an invalid position type for determining how the promoted item is positioned in the video player. Check the value of the invideoPromotion.position.type property in the resource that the request sent. |
badRequest (400) |
invalidRecentlyUploadedBy |
The request metadata specifies an invalid channel ID. Check the value of the invideoPromotion.items[].id.recentlyUploadedBy property in the resource that the request sent. |
badRequest (400) |
invalidTimingOffset |
The request metadata specifies an invalid timing offset in the invideoPromotion part. |
badRequest (400) |
invalidTimingOffset |
The request metadata specifies an invalid timing offset for determining when the promoted item should be displayed in the video player. Check the value of the invideoPromotion.timing.offsetMs property in the resource that the request sent. |
badRequest (400) |
invalidTimingType |
The request metadata specifies an invalid timing method for determining when the promoted item should be displayed in the video player. Check the value of the invideoPromotion.timing.type property in the resource that the request sent. |
badRequest (400) |
tooManyPromotedItems |
Number of allowed promoted items exceeded in the invideoPromotion part. |
forbidden (403) |
channelForbidden |
The channel specified in the id parameter does not support the request or the request is not properly authorized. |
forbidden (403) |
promotedVideoNotAllowed |
The channel that the API request is attempting to update cannot be found. Check the value of the id property in the channel resource that the request sent to ensure that the channel ID is correct. |
forbidden (403) |
websiteLinkNotAllowed |
The specified website url is not allowed. |
notFound (404) |
channelNotFound |
The channel specified by the id parameter cannot be found or does not have branding options. |
notFound (404) |
channelNotFound |
The channel specified in the id parameter cannot be found. |
notFound (404) |
unknownChannelId |
The specified channel ID was not found. |
notFound (404) |
unknownChannelId |
The specified recentlyUploadedBy channel ID was not found. |
notFound (404) |
unknownVideoId |
The video ID specified as a promoted item cannot be found. |
required (400) |
requiredItemIdType |
The request metadata must specify an item type in the invideoPromotion part. |
required (400) |
requiredItemId |
The request metadata must specify an item id the invideoPromotion part. |
required (400) |
requiredTimingOffset |
The request metadata must specify a default timing offset so that YouTube can determine when to display the promoted item. Set the value of the invideoPromotion.defaultTiming.offsetMs property in the resource that the request sends. |
required (400) |
requiredTimingOffset |
The request metadata must specify a timing offset so that YouTube can determine when to display the promoted item. Set the value of the invideoPromotion.timing.offsetMs property in the resource that the request sends. |
required (400) |
requiredTimingType |
The request metadata must specify a timing method so that YouTube can determine when to display the promoted item. Set the value of the invideoPromotion.defaultTiming.type property in the resource that the request sends. |
required (400) |
requiredTimingType |
The request metadata must specify a timing method so that YouTube can determine when to display the promoted item. Set the value of the invideoPromotion.timing.type property in the resource that the request sends. |
required (400) |
requiredTiming |
The request metadata must specify a timing for each item in the invideoPromotion part. |
required (400) |
requiredVideoId |
The request metadata must specify a video ID to identify the promoted item. |
required (400) |
requiredWebsiteUrl |
The request metadata must specify a website url in the invideoPromotion part. Set the value of the invideoPromotion.items[].id.websiteUrl property in the resource that the request sends. |
playlistItems
The tables below identify error messages that the API returns in response to calls related to playlistItems resources. These methods could also return errors listed in the Common errors section.
playlistItems.delete
| Error type | Error detail | Description |
|---|---|---|
forbidden (403) |
playlistItemsNotAccessible |
The request is not properly authorized to delete the specified playlist item. |
notFound (404) |
playlistItemNotFound |
The playlist item identified with the request's id parameter cannot be found. |
playlistItems.insert
| Error type | Error detail | Description |
|---|---|---|
duplicate |
videoAlreadyInPlaylist |
The video that you are trying to add to the playlist is already in the playlist. |
forbidden (403) |
playlistContainsMaximumNumberOfVideos |
The playlist already contains the maximum allowed number of items. |
invalidValue (400) |
invalidPlaylistItemPosition |
The request attempts to set the playlist item's position to an invalid or unsupported value. Check the value of the position property in the resource's snippet. |
invalidValue (400) |
invalidResourceType |
The type specified for the resource ID is not supported for this operation. The resource ID identifies the item being added to the playlist – e.g. youtube#video. |
invalidValue (400) |
manualSortRequired |
The request attempts to set the playlist item's position, but the playlist does not use manual sorting. (For example, playlist items might be sorted by date or popularity.) You can address the error by removing the snippet.position element from the resource that the request is inserting. If you want the playlist item to have a particular position in the list, you need to first update the playlist's Ordering option to Manual in the playlist's settings. This settings can be adjusted in the YouTube Video Manager. |
notFound (404) |
playlistNotFound |
The playlist identified with the request's playlistId parameter cannot be found. |
notFound (404) |
videoNotFound |
The video that you are trying to add to the playlist cannot be found. Check the value of the videoId property to ensure that it is correct. |
required (400) |
channelIdRequired |
The request does not specify a value for the required channelId property. |
required (400) |
playlistIdRequired |
The request does not specify a value for the required playlistId property. |
required (400) |
resourceIdRequired |
The request must contain a resource in which the snippet object specifies a resourceId. |
playlistItems.list
| Error type | Error detail | Description |
|---|---|---|
forbidden (403) |
playlistItemsNotAccessible |
The request is not properly authorized to retrieve the specified playlist. |
notFound (404) |
playlistNotFound |
The playlist identified with the request's playlistId parameter cannot be found. |
notFound (404) |
videoNotFound |
The video identified with the request's videoId parameter cannot be found. |
required (400) |
playlistIdRequired |
The subscribe request does not specify a value for the required playlistId property. |
playlistItems.update
| Error type | Error detail | Description |
|---|---|---|
invalidValue (400) |
invalidPlaylistItemPosition |
The request attempts to set the playlist item's position to an invalid or unsupported value. Check the value of the position property in the resource's snippet. |
invalidValue (400) |
invalidResourceType |
The type specified for the resource ID is not supported for this operation. The resource ID identifies the item being added to the playlist – e.g. youtube#video. |
invalidValue (400) |
invalidSnippet |
The request does not specify a valid snippet property. |
invalidValue (400) |
manualSortRequired |
The request attempts to set the playlist item's position, but the playlist does not use manual sorting. (For example, playlist items might be sorted by date or popularity.) You can address the error by removing the snippet.position element from the resource that the request is inserting. If you want the playlist item to have a particular position in the list, you need to first update the playlist's Ordering option to Manual in the playlist's settings. This settings can be adjusted in the YouTube Video Manager. |
notFound (404) |
playlistItemNotFound |
The playlist item identified with the request's id property cannot be found. |
notFound (404) |
playlistNotFound |
The playlist identified with the request's playlistId parameter cannot be found. |
required (400) |
channelIdRequired |
The request does not specify a value for the required channelId property. |
required (400) |
playlistIdRequired |
The request does not specify a value for the required playlistId property. |
required (400) |
playlistItemIdRequired |
The playlist item resource specified in the request must use the id property to identify the playlist item that is being updated. |
playlists
The tables below identify error messages that the API returns in response to calls related to playlists resources. These methods could also return errors listed in the Common errors section.
playlists.delete
| Error type | Error detail | Description |
|---|---|---|
notFound (404) |
playlistNotFound |
The playlist identified with the request's id parameter cannot be found. |
playlists.list
| Error type | Error detail | Description |
|---|---|---|
forbidden (403) |
channelClosed |
The channel specified in the channelId parameter has been closed. |
forbidden (403) |
channelSuspended |
The channel specified in the channelId parameter has been suspended. |
forbidden (403) |
playlistForbidden |
The playlist identified with the request's id parameter does not support the request or the request is not properly authorized. |
notFound (404) |
channelNotFound |
The channel specified in the channelId parameter cannot be found. |
notFound (404) |
playlistNotFound |
The playlist identified with the request's id parameter cannot be found. |
playlists.insert
| Error type | Error detail | Description |
|---|---|---|
badRequest (400) |
maxPlaylistExceeded |
The playlist cannot be created because the channel already has the maximum number of playlists allowed. |
invalidValue (400) |
invalidPlaylistSnippet |
The request provides an invalid playlist snippet. |
required (400) |
playlistTitleRequired |
The request must specify a playlist title. |
playlists.update
| Error type | Error detail | Description |
|---|---|---|
invalidValue (400) |
invalidPlaylistSnippet |
The request provides an invalid playlist snippet. |
notFound (404) |
playlistNotFound |
The playlist identified with the request's id parameter cannot be found. |
required (400) |
playlistTitleRequired |
The request must specify a playlist title. |
search
The tables below identify error messages that the API returns in response to calls related to search resources. These methods could also return errors listed in the Common errors section.
search.list
| Error type | Error detail | Description |
|---|---|---|
badRequest (400) |
invalidSearchFilter |
The request contains an invalid combination of search filters and/or restrictions. Note that you must set the type parameter to video if you set a value for the eventType, videoCaption, videoCategoryId, videoDefinition, videoDimension, videoDuration, videoEmbeddable, videoLicense, videoSyndicated, or videoType parameters. |
badRequest (400) |
invalidVideoId |
The relatedToVideo parameter specified an invalid video ID. |
subscriptions
The tables below identify error messages that the API returns in response to calls related to subscriptions resources. These methods could also return errors listed in the Common errors section.
subscriptions.delete
| Error type | Error detail | Description |
|---|---|---|
badRequest (400) |
accountClosed |
The account attempting to create the subscription has been closed. |
badRequest (400) |
accountSuspended |
The account attempting to create the subscription has been suspended. |
forbidden (403) |
subscriptionForbidden |
The request is not properly authenticated or not supported for this channel. |
notFound (404) |
subscriptionNotFound |
The subscription that you are trying to delete cannot be found. Check the value of the request's id parameter to ensure that it is correct. |
subscriptions.insert
| Error type | Error detail | Description |
|---|---|---|
badRequest (400) |
accountClosed |
The account attempting to create the subscription has been closed. |
badRequest (400) |
accountSuspended |
The account attempting to create the subscription has been suspended. |
badRequest (400) |
subscriptionDuplicate |
The subscription that you are trying to create already exists. |
forbidden (403) |
subscriptionForbidden |
The request is not properly authenticated or not supported for this channel. |
notFound (404) |
publisherNotFound |
The resource specified by the request's snippet.resourceId property cannot be found. |
notFound (404) |
subscriberNotFound |
The subscriber identified with the request cannot be found. |
required (400) |
publisherRequired |
The subscription resource specified in the request must use the snippet.resourceId property to identify the channel that is being subscribed to. |
subscriptions.list
| Error type | Error detail | Description |
|---|---|---|
forbidden (403) |
accountClosed |
Subscriptions could not be retrieved because the subscriber's account is closed. |
forbidden (403) |
accountSuspended |
Subscriptions could not be retrieved because the subscriber's account is suspended. |
forbidden (403) |
subscriptionForbidden |
The requester is not allowed to access the requested subscriptions. |
notFound (404) |
subscriberNotFound |
The subscriber identified with the request cannot be found. |
thumbnails
The tables below identify error messages that the API returns in response to calls related to thumbnails resources. These methods could also return errors listed in the Common errors section.
thumbnails.set
| Error type | Error detail | Description |
|---|---|---|
badRequest (400) |
invalidImage |
The provided image content is invalid. |
badRequest (400) |
mediaBodyRequired |
The request does not include the image content. |
forbidden (403) |
forbidden |
The authenticated user doesn't have permissions to upload and set custom video thumbnails. |
forbidden (403) |
forbidden |
The thumbnail can't be set for the specified video. The request might not be properly authorized. |
notFound (404) |
videoNotFound |
The video that you are trying to insert a thumbnail image for cannot be found. Check the value of the request's videoId parameter to ensure that it is correct. |
videoCategories
The tables below identify error messages that the API returns in response to calls related to videoCategories resources. These methods could also return errors listed in the Common errors section.
videoCategories.list
| Error type | Error detail | Description |
|---|---|---|
notFound (404) |
videoCategoryNotFound |
The video category identified by the id parameter cannot be found. Use the videoCategories.list method to retrieve a list of valid values. |
videos
The tables below identify error messages that the API returns in response to calls related to videos resources. These methods could also return errors listed in the Common errors section.
videos.insert
| Error type | Error detail | Description |
|---|---|---|
badRequest (400) |
invalidCategoryId |
The snippet.categoryId property specifies an invalid category ID. Use the videoCategories.list method to retrieve supported categories. |
badRequest (400) |
invalidDescription |
The request metadata specifies an invalid video description. |
badRequest (400) |
invalidFilename |
The video filename specified in the Slug header is invalid. |
badRequest (400) |
invalidPublishAt |
The request metadata specifies an invalid scheduled publishing time. |
badRequest (400) |
invalidRecordingDetails |
The recordingDetails object in the request metadata specifies invalid recording details. |
badRequest (400) |
invalidTags |
The request metadata specifies invalid video keywords. |
badRequest (400) |
invalidTitle |
The request metadata specifies an invalid video title. |
badRequest (400) |
invalidVideoGameRating |
The request metadata specifies an invalid video game rating. |
badRequest (400) |
invalidVideoMetadata |
The request metadata is invalid. |
badRequest (400) |
mediaBodyRequired |
The request does not include the video content. |
forbidden (403) |
forbidden |
|
forbidden (403) |
forbiddenLicenseSetting |
The request attempts to set an invalid license for the video. |
forbidden (403) |
forbiddenPrivacySetting |
The request attempts to set an invalid privacy setting for the video. |
videos.list
| Error type | Error detail | Description |
|---|---|---|
badRequest (400) |
videoChartNotFound |
The requested video chart is not supported or is not available. |
forbidden (403) |
forbidden |
The request cannot access user rating information. This error may occur because the request is not properly authorized to use the myRating parameter. |
notFound (404) |
videoNotFound |
The video that you are trying to retrieve cannot be found. Check the value of the request's id parameter to ensure that it is correct. |
videos.delete
| Error type | Error detail | Description |
|---|---|---|
forbidden (403) |
forbidden |
The video that you are trying to delete cannot be deleted. The request might not be properly authorized. |
notFound (404) |
videoNotFound |
The video that you are trying to delete cannot be found. Check the value of the request's id parameter to ensure that it is correct. |
videos.update
| Error type | Error detail | Description |
|---|---|---|
badRequest (400) |
invalidRequest |
The request metadata is invalid. This error occurs if the request updates the snippet part of a video resource but does not set a value for both the snippet.title and snippet.categoryId properties. |
forbidden (403) |
forbidden |
|
forbidden (403) |
forbiddenLicenseSetting |
The request attempts to set an invalid license for the video. |
forbidden (403) |
forbiddenPrivacySetting |
The request attempts to set an invalid privacy setting for the video. |
notFound (404) |
videoNotFound |
The video that you are trying to update cannot be found. Check the value of the id field in the request body to ensure that it is correct. |
videos.rate
| Error type | Error detail | Description |
|---|---|---|
badRequest (400) |
invalidRating |
The request contained an unexpected value for the rating parameter. |
forbidden (403) |
forbidden |
The video that you are trying to rate cannot be rated. The request might not be properly authorized. |
forbidden (403) |
videoRatingDisabled |
The owner of the video that you are trying to rate has disabled ratings for that video. |
notFound (404) |
videoNotFound |
The video that you are trying to rate cannot be found. Check the value of the request's id parameter to ensure that it is correct. |
watermarks
The tables below identify error messages that the API returns in response to calls related to watermarks resources. These methods could also return errors listed in the Common errors section.
watermarks.set
| Error type | Error detail | Description |
|---|---|---|
badRequest (400) |
imageFormatUnsupported |
The image you provided is in an unsupported format. |
badRequest (400) |
imageTooTall |
The image you provided is too tall. |
badRequest (400) |
imageTooWide |
The image you provided is too wide. |
badRequest (400) |
mediaBodyRequired |
The request does not include the image content. |
forbidden (403) |
forbidden |
The watermark can't be set for the specified channel. The request may not be properly authorized, or the channelId parameter is set to an invalid value. |
watermarks.unset
| Error type | Error detail | Description |
|---|---|---|
forbidden (403) |
forbidden |
The watermark can't be unset for the specified channel. The request may not be properly authorized, or the channelId parameter is set to an invalid value. |