{"library":"spotify-recommender-api","title":"spotify-recommender-api","type":"library","description":"Generates song recommendations for Spotify playlists using K-Nearest-Neighbors and optionally VADER sentiment analysis. Version 5.4.5 is the final release; the library has been deactivated due to Spotify API changes in 2025. No longer maintained.","language":"python","status":"deprecated","last_verified":"Sat May 09","install":{"commands":["pip install spotify-recommender-api==5.4.5"],"cli":null},"imports":["from spotify_recommender_api import SpotifyAPI","from spotify_recommender_api import recommend_songs"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/nikolas-virionis/spotify-api","docs":null,"changelog":null,"pypi":"https://pypi.org/project/spotify-recommender-api/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from spotify_recommender_api import SpotifyAPI\n\napi = SpotifyAPI(\n    client_id='YOUR_CLIENT_ID',\n    client_secret='YOUR_CLIENT_SECRET',\n    redirect_uri='http://localhost:8888/callback'\n)\n\n# Authenticate and get token\napi.authenticate()\n\n# Get recommendations based on a playlist ID\nplaylist_id = 'your_playlist_id'\nrecommendations = api.recommend_songs(playlist_id, count=10)\nfor song in recommendations:\n    print(song['name'], song['artists'])","lang":"python","description":"Authenticate with Spotify and get song recommendations for a given playlist.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}