DELETE/PUT in AppleMusic API

Hi,

Since today, we are no more able to do DELETE/PUT request on the Apple Music API.

So, we can't update a playlist details, delete a playlist, delete tracks in playlist, delete tracks in library...

Old methods allowed are now returning only an HTTP Code 403.


Why this change in the Apple Music API ? We can hope that will be back soon ?

Is there any update on this? I think that reordering playlists and deleting tracks should be an essential feature in the Apple Music API, and that not having these features, severely limits its usability.

Hello @HeyImHere,

We do not communicate status of any feature request other than to say that we are either investigating the feasibility, or that we have released an update including said feature.

In this particular case, all I can say is that we have heard the request.

If you are interested in this, it would be helpful for you to file a ticket on Feedback Assistant explaining your use-case for DELETE and PUT methods in Apple Music API. Even if others have filed similar tickets, your use-case may be a bit different, and we want to hear about it. And, internally, we use the number of duplicate requests as a signal that helps us prioritize the various things we may want to improve on.

Thank you very much for your feedback.

Best regards,

For anyone interested, the DELETE API already exists, but you need a "special" developer token fetched from music.apple.com and Music-User-Token accordingly to call it. Steps are as follows:

  • visit music.apple.com and sign in, then go to the console of your browser
  • input MusicKit.getInstance().musicUserToken to get your user token
  • input MusicKit.getInstance().developerToken to get the privileged developer token

Then you could try the DELETE API

curl --location --request DELETE 'https://amp-api.music.apple.com/v1/me/library/songs/{songId}' \
--header 'Music-User-Token: {The User Token you got}' \
--header 'Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IldlYlBsYXlLaWQifQ.eyJpc3MiOiJBTVBXZWJQbGF5IiwiaWF0IjoxNjQ2NDM1NTgxLCJleHAiOjE2NjE5ODc1ODF9.Ob5bfZBWLDlDkR4r5fNXIjp1Y1G0qY5mP9MVBm1mDFjG701_6AcZS6nwjk-CMJE2b8VLv1JWxKR5j5BDkKxQ7w'

For more details you could visit my another post

I can hardly believe what I’m reading. It’s disappointing to see this from a service trying to compete with Spotify. It seems the last reason to stick with Apple Music is gone, leaving no option but to fully switch to Spotify. It’s frustrating because I started creating my playlists back on the very first iPods and iTunes and have been maintaining them for years. I was hoping to develop something to sync Spotify’s better song recommendations with my Apple Music playlists. I haven’t explored the Apple Music API much yet, but based on this thread, it’s probably better to just accept the switch.

DELETE/PUT in AppleMusic API
 
 
Q