Skip to main content
Answered

Sonos API: favorites incomplete

  • October 11, 2024
  • 2 replies
  • 109 views

Hi,

I receive an incomplete list of Favorites with the Sonos API “getFavorites”-command.

Concretely, playlists from Amazon Music which I added to Favorites in the app are missing while playlists from Spotify added in the same way are returned by the API.

In the Sonos app both are listed next to each other.

 

By using the http-API I get both types of playlists, but Amazon Music playlists are of type “shortcut” and Spotify playlists of type “instantPlay”. (see also other post)

 

Does this ring a bell for anyone?

 

Thanks very much in advance!

Best regards,

Philip

Best answer by phil81273

thanks for your message! As my original problem occured by using the http API (see other post), I only tried the cloud API to verify whether the problem also appears there. 

 

I did some further investigations and found a solution/workaround for me which I could also verify via the cloud API..

 

If anyone has the same topic, this is the workaround that resolved it for me:

Whenever I added a Amazon Music playlist with one of my iOS devices, it didn’t appear in the list returned by “getFavorites”.

I then installed the Windows Sonos app. Amazon Music playlist added to the favorites here are now returned by “getFavorites” and I can again call them via the http API.

So looks for me like a problem with the iOS Sonos app.

This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.

2 replies

controlav
Forum|alt.badge.img+24
  • Lead Maestro
  • October 12, 2024

I replied to your original UPnP question, I missed it originally.

The getFavorites cloud API is broken in various ways, and poorly documented.

What does play.sonos.com do with your Favorites? If it works, use the debugger in your browser to see how it differs from your code.


  • Author
  • Contributor I
  • Answer
  • October 13, 2024

thanks for your message! As my original problem occured by using the http API (see other post), I only tried the cloud API to verify whether the problem also appears there. 

 

I did some further investigations and found a solution/workaround for me which I could also verify via the cloud API..

 

If anyone has the same topic, this is the workaround that resolved it for me:

Whenever I added a Amazon Music playlist with one of my iOS devices, it didn’t appear in the list returned by “getFavorites”.

I then installed the Windows Sonos app. Amazon Music playlist added to the favorites here are now returned by “getFavorites” and I can again call them via the http API.

So looks for me like a problem with the iOS Sonos app.