Playlists are a curated list of songs.
Attributes
Attribute | Type | Description |
---|---|---|
description | string | Playlist description |
duration | number | The combined length of all songs in the playlist in seconds |
image | string | Playlist image URL. The w and h query string parameters (both 450px by default) can be updated to change the width and height of the image, respectively. Removing these parameters will return the full-resolution image. |
name | string | Playlist name |
Example
{
"id": "1",
"type": "playlists",
"attributes": {
"name": "Staff Picks",
"description": "Personal favorites chosen by the smiling staffers at Soundstripe.",
"image": "https://soundstripe-production.imgix.net/uploads/playlist/3510/pic/665be1aafc.png?w=450&h=450",
"duration": 190226.0
},
"relationships": {
"songs": {
"data": [
{
"id": "12516",
"type": "songs"
},
{
"id": "12419",
"type": "songs"
}
]
},
"playlist_categories": {
"data": [
{
"id": "7",
"type": "playlist_categories"
}
]
}
}
}