Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Efficiently adding tracks to playlist #352

Open
Ruud14 opened this issue Jan 4, 2025 · 3 comments
Open

Efficiently adding tracks to playlist #352

Ruud14 opened this issue Jan 4, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@Ruud14
Copy link

Ruud14 commented Jan 4, 2025

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?

@dpreussler dpreussler added the enhancement New feature or request label Jan 7, 2025
@dpreussler
Copy link
Contributor

Hi @Ruud14,
thanks for your input. This feature is currently only available for users of our partner API.
I would keep this issue here ope for future feature considerations for public api!
Thanks again and keep suggestions coming!

@Ruud14
Copy link
Author

Ruud14 commented Jan 7, 2025

Hi @dpreussler
Thanks for your response. How does one apply for the access to the partner API?

@MariaVWSoundCloud
Copy link

@Ruud14 please reach out to [email protected] - the business development team can help you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants