spotify-api / spotify-api.js

A complete wrapper for spotify web api for deno, node.js and the browser.
https://spotify-api.js.org
MIT License
211 stars 19 forks source link

Recommendations Feature request #58

Closed naxey closed 3 years ago

naxey commented 3 years ago

addition of the /recommendations api

scientific-dev commented 3 years ago

This feature will come in v9. #56

scientific-dev commented 3 years ago

This feature has been added in v9 (Not published) right now. Spotify-api.js v9 will be released sometime near the end of the month.

scientific-dev commented 3 years ago

And finally v9 has been published. You can use this api through [BrowseManager.getRecommendations]. View documentation of the function here. If any bugs or doubts, create a new issue!

Example:

const genres = await client.browse.getRecommendations({
    seed_artists: 'artists_id',
    seed_genre: 'genre',
    seed_tracks: 'tracks
});