Need help? Check out Spotify Answers for solutions to a wide range of topics. |
Plan - Premium
Country - GB
Device - Desktop
Operating System - Windows 10
My Question or Issue:
Hey!
Whilst developing some personal automation to sort a playlist, I've found several empty tracks in one of them.
To replicate perform the following equivalent request in Postman or Curl:
If you do the above request from the Spotify developer pages, the track is not null... So I presume somethings gone amiss, but wanted to raise here.
Example response;
{
"href": "https://api.spotify.com/v1/playlists/0nDLk7zdM3kPvyxpdUe3yL/tracks?offset=183&limit=1&market=GB",
"items": [
{
"added_at": "2010-11-08T20:46:05Z",
"added_by": {
"external_urls": {
"spotify": "https://open.spotify.com/user/"
},
"href": "https://api.spotify.com/v1/users/",
"id": "",
"type": "user",
"uri": "spotify:user:"
},
"is_local": false,
"primary_color": null,
"track": null,
"video_thumbnail": {
"url": null
}
}
],
"limit": 1,
"next": "https://api.spotify.com/v1/playlists/0nDLk7zdM3kPvyxpdUe3yL/tracks?offset=184&limit=1&market=GB",
"offset": 183,
"previous": "https://api.spotify.com/v1/playlists/0nDLk7zdM3kPvyxpdUe3yL/tracks?offset=182&limit=1&market=GB",
"total": 2325
}