How to Retrieve Playlist Name from source_uri in Spotify Streams API Data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
We're currently working with the Spotify Streams API and are trying to retrieve the playlist name associated with a playlist ID provided in the source_uri field of the stream data.
Here’s a sample entry from the dataset:
{
"message": "APIStreamData",
"version": 4,
"user_id": "a57aca09bef0f8adff1784c9f7c22d5f76c86651d20d338687e87ec1564xxxxx",
"track_id": "22e9d4a56c304b62855b173a6056b856",
"country": "US",
"timestamp": "20250415T04:17:00",
"source": "others_playlist",
"source_uri": "spotify:playlist:37i9dQZF1DWXe9gFZP0gtP",
...
}
As you can see, we receive the playlist ID via the source_uri field (in this case, spotify:playlist:37i9dQZF1DWXe9gFZP0gtP), but not the playlist name.
We’ve attempted to retrieve playlist metadata (e.g. name/title) using the Web API endpoint:
GET https://api.spotify.com/v1/playlists/{playlist_id}
However, for some playlists — particularly editorial ones or playlists not owned by the authenticated user — this returns a 404 or is inaccessible even with a valid user access token.
Our question:
How can we reliably retrieve the playlist name from a given source_uri (e.g. spotify:playlist:{id}), even if the playlist is not user-owned or is editorial?
Any insights, workarounds, or API alternatives would be greatly appreciated.
Thanks in advance!
- Labels:
-
Question
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page