This REST API endpoint enables developers to programmatically create playlists on YouTube using a simple HTTP POST request. Our unified music streaming API provides seamless YouTube playlist integration without the complexity of managing multiple platform-specific SDKs.
Whether you're building a music app, playlist generator, or content management system, this YouTube Web API endpoint handles playlist creation with enterprise-grade reliability.
/api/{userUUID}/playlistsThis YouTube API endpoint creates a new playlist in the authenticated user's music library. The playlist is initially empty and can be populated with tracks using our add tracks endpoint.
userUUIDrequiredUser UUID integrationUserUUID taken from data extracted from successful redirect from authentication
stringnamerequiredThe name of the playlist
string"Viva Loca New"descriptionoptionalDescription of your playlist
string"Description of your playlist"visibilityoptionalVisibility of the playlist
stringpublic, private"public"Below is a complete HTTP request example showing how to programmatically create a playlist on YouTube:
POST /api/{userUUID}/playlists
Content-Type: application/json
{
"name": "Viva Loca New",
"description": "Description of your playlist",
"visibility": "public"
}namerequiredstring"Viva Playlist"idrequiredstring"1"totalItemsrequirednumber (nullable)25imageUrlrequiredstring (nullable)"https://www.example-image.com/978263478234"dateAddedoptionalstring (nullable)"2024-10-16T07:52:07.000Z"isOwnerrequiredbooleantrue{
"name": "Viva Playlist",
"id": "1",
"totalItems": 25,
"imageUrl": "https://www.example-image.com/978263478234",
"dateAdded": "2024-10-16T07:52:07.000Z",
"isOwner": true
}Unlike working directly with the YouTube API, MusicAPI provides a unified interface across 10+ music streaming platforms including Spotify, Apple Music, YouTube Music, Tidal, Deezer, and more. This means:
To start creating playlists programmatically on YouTube, you'll need to authenticate your users and obtain their userUUID. Follow our authentication guide to set up YouTube OAuth integration.
Once authenticated, you can make REST API calls to create playlists, add tracks, fetch user libraries, and manage music content across YouTube and other supported platforms.
Start creating playlists on YouTube and 10+ other music services with our unified REST API. No complex SDKs, no multiple integrations—just one API for everything.