Use this command to poll for metadata changes. This command returns a metadataStatus
object for the target group.
Endpoint
GET
1 |
groups/{groupId}/playbackMetadata |
Request Parameters
There are no request parameters in the body, all of the request parameters are in the header.
This command requires a groupId
to determine the target of the command. See the Control documentation for details.
Response
Returns a metadataStatus
object for the target group.
In the event of a failure, returns a globalError
.
Examples
Request
1 |
GET https://api.ws.sonos.com/control/api/v1/groups/{{groupId}}/playbackMetadata |
Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
{ "container": { "name": "Sample playlist", "type": "playlist", "id": { "serviceId": "255", "objectId": "playlist:ABC", "accountId": "Z123" }, "service": { "name": "ACME Music", "id": "204" }, "imageUrl": "http://acme.example.com/image/thumb/ABC/400x400image.jpeg" }, "currentItem": { "track": { "type": "track", "name": "Sample track", "imageUrl": "http://0.0.0.0:1400/getaa?ABC123", "album": { "name": "Sample album" }, "artist": { "name": "Sample artist" }, "id": { "serviceId": "255", "objectId": "track:DEF", "accountId": "Z123" }, "service": { "name": "ACME Music", "id": "255" }, "durationMillis": 570000 } } } |