Reputation: 269
How can I get user data from Spotify without login?
YouTube Data API, you can get user public data information if you know the Channel ID.
Is i possible to do it in the same way?
I have tried the following link with UserID but it requires authentication. https://api.spotify.com/v1/users/{user_id}/playlists
Upvotes: 2
Views: 4310
Reputation: 3279
If you want to fetch user's public playlists you need to authenticate the request.
The authentication is based on OAuth 2.0 and there are several ways to obtain a token. On of them, the Client Credentials flow doesn't involve a login form and you only need your client_id
and client_secret
to obtain a token.
Upvotes: 1