Help Wizard

Step 1


Spotify recently played web api

Spotify recently played web api

I'm trying to get my most recent songs to display on my website and can't wrap my head around it. Has anyone figured this out?


From what I've found it requires a user to login with tokens expiring after 1 hour.


I'm using Vue (or specifically Nuxt) if that helps.


But ideally any JS way of doing this would be great.

1 Reply



That is correct! You need to login to get an access token which you can use to make API calls (basically it is for the API to know that you is really you so to speak 🙂 ). Spotify API provides several different authorization flows but most of them require a backend as well. If you want to do it only on the client in Vue, i would suggest the "Implicit Grant Flow" which you can read about more here:

If you need any more help, post here!

What's a Spotify Rock Star, and how do I become one?

Check album availability here

Suggested posts