Skip to content
Documentation
Documentation
Products
Web API
Web Playback SDK
Ads API
iOS
Android
Embeds
Commercial Hardware
Guidelines
Design
Accessibility
Community
Documentation
Documentation
Products
Web API
Web Playback SDK
Ads API
iOS
Android
Embeds
Commercial Hardware
Guidelines
Design
Accessibility
Community
Build with Spotify’s 100 million songs,
5 million podcasts and much more
See it in action
Build with Spotify’s 100 million songs,
5 million podcasts and much more
See it in action
Code tutorial
1
Get your top 5 tracks from the last 30 days
2
Recommend 5 songs based on your top 5 tracks
3
Save the 10 songs in a playlist
4
Listen to the songs right here right now
Code
JS
JavaScript
Result
Step 1:
Get your top 5 tracks from the last 30 days