Jepser Bernardino
Jepser Bernardino

Reputation: 1372

Spotify web api, get follow playlist's tracks

I want to get the tracks of a playlist that I follow via de new Spotify Web API. The issue is that, if the playlist isn't created by me, I get a 404 Error.

Any ideas how to solve this?

Upvotes: 1

Views: 480

Answers (1)

Michael Thelin
Michael Thelin

Reputation: 4830

For next time, please provide the exact URL that you're calling, along with query parameters or potential body parameters. It makes it a lot easier for people to help you.

My assumption of what's going wrong here is that you're providing your own username instead of the playlist's owner's username as part of the URL.

Endpoint documentation for Get a Playlist's Tracks:

GET https://api.spotify.com/v1/users/{user_id}/playlists/{playlist_id}/tracks

The user_id here is the playlist's owner's user id, and the playlist_id is of course the id of the playlist, e.g. 6sUmrBvbrRDDbaYJmO9DaE.

Upvotes: 3

Related Questions