Announcements

Help Wizard

Step 1

NEXT STEP

API Invoke-RestMethod - Only active device shown

API Invoke-RestMethod - Only active device shown

Hi, in powershell, when i get devices on my premium account, i see device only when Spotify app is opened on them.  How do i get the ID of "another device"?

Thanks!


2023-05-12 09_18_31-Sabaton - Father.png
Reply
2 Replies

Can anyone confirm its still not possible?

Thanks chatGPT for this kind answer, its huh not better then a human that would have took the time to answer right? :

The Spotify Web API does not directly provide access to or store information about a user's local devices because it is primarily designed to interact with Spotify's cloud-based services. The API focuses on providing functionality related to user accounts, playlists, tracks, artists, and other music-related data that can be accessed and managed through Spotify's servers.

Local devices, such as computers, smartphones, or smart speakers, are typically managed and controlled through the Spotify desktop or mobile applications. The Spotify API does not have direct control or visibility over the local devices themselves.

However, the Spotify API does provide endpoints and functionality for controlling playback on active devices. You can use the API to start, pause, or skip tracks on devices that are currently playing music through Spotify's streaming service. This functionality allows you to control the playback experience across different devices connected to a user's Spotify account.

It's worth noting that the Spotify Connect feature, available in the Spotify applications, allows you to seamlessly switch playback between different devices. This feature relies on the Spotify applications communicating with each other and maintaining synchronization across devices. The specific details and mechanisms of this synchronization are not exposed through the public API.

In summary, while the Spotify API provides features for controlling playback on active devices, it does not directly expose or manage information about a user's local devices due to the cloud-centric nature of the API and the way Spotify's architecture is designed.




Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random