Cannot retrieve spotify devices with /v1/me/player/devices
Closed this issue · 11 comments
Issue found on February 22nd September 2017.
Endpoint(s):
GET /v1/me/player/devices
Scope(s):
- None (application is not using authentication)
Steps to reproduce:
- Open the API Console
- Call the
Get a User's Available Devices
endpoint
Expected behaviour:
A list of all my Spotify connect devices (several Sonos speakers, mobile clients, et cetera)
Actual behaviour:
Everytime I query the endpoint I only see my web player (Chrome tab) device, none of my other devices that I can see using the official Spotify App on my phone, or the devices I can see using the web player.
{
"devices" : [ {
"id" : "13b1cxxxxxxx7e1c1920cxxxxxxxxf685316c313",
"is_active" : false,
"is_restricted" : false,
"name" : "Web Player (Chrome)",
"type" : "Computer",
"volume_percent" : 100
} ]
}
Certain devices, particularly third party speakers and Sonos units, are not currently controllable through the Web API Connect endpoints. The /v1/me/player/devices endpoint will only return information for devices which are both active and controllable. You can read more in the Working With Web API Connect document.
Ok. Please add support for other devices.
Requesting support for devices like Sonos.
Hi! We will continue to add support for as many devices as possible as we're able to. In some cases, devices are not accessible from our servers and therefore are not shown in the response because they have become inactive.
Please fix your API spotify. This is stupid. Same comment as before:
"will only return information for devices which are both active and controllable" - my Sonos devices, are active, are controllable via the mobile app, the desktop app and the sonos app. Why not via the API?
devices
endpoint does not find my Sonos One pair, even during playback.
player
endpoint does, though with a null id:
"device": {
"id": null,
"is_active": true,
"is_restricted": true,
"name": "Sonos Véranda",
"type": "Speaker",
"volume_percent": 0
}
Not very consistent.
This seems odd to me. I can find my spotify connect devices via the app but not via the API? I can control them from everywhere I log into spotify - any app, any device, but not the API?
devices
endpoint does not find my Sonos One pair, even during playback.
player
endpoint does, though with a null id:"device": { "id": null, "is_active": true, "is_restricted": true, "name": "Sonos Véranda", "type": "Speaker", "volume_percent": 0 }
Not very consistent.
I am also experiencing this, is there a reason behind this?
+1
Why are we able to connect to Sonos devices through the Spotify app but not through the API?
I have a Windows 10 PC with Spotify desktop installed.
I currently have my Spotify desktop app open and I am logged in with my account. When I retrieve the available devices via the API, it returns an empty list. If I start playback on Spotify desktop and call the same API endpoint, it returns my device successfully.
Shouldn't it return my device even when playback is paused?
Any updates on this? This seemed to work for a while, but stopped working some months ago.