Skip to content

Efficiently adding tracks to playlist #352

Open
@Ruud14

Description

@Ruud14

Adding a track to a playlist cannot be done efficiently.

I am using the API to add tracks to a playlist. Currently my procedure is as follows:

  1. GET the enitre playlist including all tracks and all track information. (https://api.soundcloud.com/playlists/<playlist_id>)
  2. From the response of the GET, take the ID of each track.
  3. PUT https://api.soundcloud.com/playlists/<playlist_id> with tracks set to the enitre list of track ids + the track id of the track to be added.

This is very inefficient because:

  1. I need to make two requests just to add a track to a playlist.
  2. The first request response can be huge for large playlists especially because all details for each track are included.

Ideally we would like to just have a seperate endpoint to add a track to a playlist. However, having a way to just fetch all tracks in a playlist without all detailed information of the tracks would already be a huge improvement.
Is there some way to do this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions