{"id":28232,"library":"spotipy-anon","title":"spotipy-anon","description":"An extension to Spotipy that enables anonymous access to the Spotify Web API without requiring a Spotify developer account. Version 1.5.7 uses TOTP-based token generation via external secrets. Active development with frequent releases.","status":"active","version":"1.5.7","language":"python","source_language":"en","source_url":"https://github.com/dieser-niko/spotipy-anon","tags":["spotify","api","anonymous","spotipy","totp"],"install":[{"cmd":"pip install spotipy-anon","lang":"bash","label":"pip"}],"dependencies":[{"reason":"Core library for Spotify API interactions","package":"spotipy","optional":false},{"reason":"TOTP secret handling","package":"pyotp","optional":false},{"reason":"HTTP requests","package":"requests","optional":false}],"imports":[{"note":"Class is named SpotlightAnon, not Spotify.","wrong":"from spotipy_anon import Spotify","symbol":"SpotifyAnon","correct":"from spotipy_anon import SpotifyAnon"},{"note":"Wrong class name.","wrong":"import spotipy_anon; spotipy_anon.Spotify()","symbol":"SpotifyAnon","correct":"from spotipy_anon import SpotifyAnon"}],"quickstart":{"code":"from spotipy_anon import SpotifyAnon\n\nsp = SpotifyAnon()\nresults = sp.search(q='Never Gonna Give You Up', type='track', limit=1)\nprint(results['tracks']['items'][0]['name'])","lang":"python","description":"Initialize a SpotifyAnon client and perform a search without authentication."},"warnings":[{"fix":"pip install --upgrade spotipy-anon","message":"Version 1.4 introduced TOTP-based token generation. Old versions without TOTP stopped working. Upgrade to >=1.4.","severity":"breaking","affected_versions":"<1.4"},{"fix":"Remove 'spotify_secrets' argument when creating SpotifyAnon instance.","message":"The 'spotify_secrets' parameter in initialization is deprecated. TOTP secrets are now fetched automatically.","severity":"deprecated","affected_versions":">=1.5.4"},{"fix":"Consider using spotipy with client credentials flow.","message":"Anonymous access may be rate-limited or blocked by Spotify at any time. Tokens are shared and could be revoked. For production, use official authentication.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Update to latest version: pip install --upgrade spotipy-anon","cause":"TOTP secret changed or outdated library version.","error":"spotipy_anon.exceptions.TokenError: Unable to retrieve token"},{"fix":"Use: from spotipy_anon import SpotifyAnon","cause":"Using wrong class name or import path.","error":"AttributeError: module 'spotipy_anon' has no attribute 'SpotifyAnon'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}