Help Wizard

Step 1

NEXT STEP

Are Tokens Required?

Are Tokens Required?

Hey Everyone,

 

I am currently creating a website that uses Spotify API to search for tracks

https://api.spotify.com/v1/search?q=${track}%20${artist}&type=track is the url

I have been able to do this successfully using code that prompts the user to sign in, ask for permission,etc.

Heres my question: I am simply searching spotify's database of tracks, so do I need to have a token and authorization to search for a track even though it has nothing to do with the user?

 

 

Reply
1 Reply

Yes! Spotify's api is not public (for obvious reasons). You're currently authenticating based on a user but you can also authenticate by app. For details: https://developer.spotify.com/documentation/general/guides/authorization-guide/#client-credentials-f...

Suggested posts