What is the maximum YouTube playlist length?

What is the maximum number of videos permitted in a YouTube playlist? If you were to believe the docs, you would think this is 200 items, but I have noticed that, in the last few months, YouTube is apparently letting me go beyond 200 videos?

Am I somehow benefiting from a helpful bug in having playlists above 200, or has YouTube not updated their docs to reflect reality?

I want to know if I can safely take advantage of these larger playlists, or if I should keep my playlists under this somewhat arbitrary 200 item value, even though the system permits me to have more.

Answer

The limit is 5,000. Once you hit this limit using the API you receive the following response:

{
 "error": {
  "errors": [
   {
    "domain": "youtube.playlistItem",
    "reason": "playlistContainsMaximumNumberOfVideos",
    "message": "Playlist contains maximum number of items."
   }
  ],
  "code": 403,
  "message": "Playlist contains maximum number of items."
 }
}

Attempting to add more videos via the web page does… nothing (at time of writing).

You can simply open the playlist and look at the number of items, or query via the API.

Attribution
Source : Link , Question Author : Zoredache , Answer Author : Ken Sharp

Leave a Comment