[Feature Request]: Add possibility to play a playlist via API #3507

Open
opened 2025-06-19 10:50:40 +00:00 by zeleznypa · 2 comments
zeleznypa commented 2025-06-19 10:50:40 +00:00 (Migrated from github.com)

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

Currently when somebody send me an URL like https://www.youtube.com/watch?v=xneiaE_SCg8&list=PLTVVimTiUJwUbIqmTHncJvWRidgjjn1Ps I'm able to parse a v=.... parameter for a videoId value and call the POST /api/v1/queue endpoint to add the track into the queue.

But there is no possibility to add whole playlist.

Proposed Solution

It will be so nice to have a possibility to add optional parameter playlistId that will took all the tracks from the playlist, found the position of the videoId and place it and all the following tracks into the queue

Alternatives Considered

Currently I don't have any way, how to do that automatically via API.

Additional Information

Thanks much for your great work

### Preflight Checklist - [x] I use the latest version of YouTube Music (Application). - [x] I have searched the [issue tracker](https://github.com/th-ch/youtube-music/issues) for a feature request that matches the one I want to file, without success. ### Problem Description Currently when somebody send me an URL like `https://www.youtube.com/watch?v=xneiaE_SCg8&list=PLTVVimTiUJwUbIqmTHncJvWRidgjjn1Ps` I'm able to parse a `v=....` parameter for a `videoId` value and call the `POST /api/v1/queue` endpoint to add the track into the queue. But there is no possibility to add whole playlist. ### Proposed Solution It will be so nice to have a possibility to add optional parameter `playlistId` that will took all the tracks from the playlist, found the position of the `videoId` and place it and all the following tracks into the queue ### Alternatives Considered Currently I don't have any way, how to do that automatically via API. ### Additional Information Thanks much for your great work
Owner

Alternatives Considered

Currently I don't have any way, how to do that automatically via API.

You could use the library we are using, youtube.js to do everything you suggested, and then post each video to the API.
Innertube.music.getPlaylist is what you are looking for.

(I am just suggesting an alternative, since you didn't seem to have one)

> ### Alternatives Considered > Currently I don't have any way, how to do that automatically via API. You could use the library we are using, `youtube.js` to do everything you suggested, and then post each video to the API. [`Innertube.music.getPlaylist`](https://ytjs.dev/api/namespaces/Clients/classes/Music.html#getplaylist) is what you are looking for. (I am just suggesting an alternative, since you didn't seem to have one)
zeleznypa commented 2025-06-19 11:56:20 +00:00 (Migrated from github.com)

@ArjixWasTaken Thanks much for your fast reply.

In this case, I'm not a javascript developer that have access to the youtube.js library.

I have the YoutubeMusic Desktop application running on the server and sending the instructions via API from the Firebot application based on the commands from the Twitch chat.

@ArjixWasTaken Thanks much for your fast reply. In this case, I'm not a javascript developer that have access to the `youtube.js` library. I have the `YoutubeMusic Desktop` application running on the server and sending the instructions via API from the `Firebot` application based on the commands from the Twitch chat.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: YTMD/youtube-music#3507
No description provided.