Registry / http-networking / spotipy-anon

spotipy-anon

JSON →
library1.5.7pypypi✓ verified 84d ago

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.

pip install spotipy-anon
INSTALL
IMPORT
SIG · SPOTIPY-ANON
S
spotipy-anon
http-networkingpythonv1.5.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SpotifyAnon
from spotipy_anon import SpotifyAnon
from spotipy_anon import Spotify
Class is named SpotlightAnon, not Spotify.
SpotifyAnon
from spotipy_anon import SpotifyAnon
import spotipy_anon; spotipy_anon.Spotify()
Wrong class name.

Initialize a SpotifyAnon client and perform a search without authentication.

from spotipy_anon import SpotifyAnon sp = SpotifyAnon() results = sp.search(q='Never Gonna Give You Up', type='track', limit=1) print(results['tracks']['items'][0]['name'])
Debug
Known issues
breakingVersion 1.4 introduced TOTP-based token generation. Old versions without TOTP stopped working. Upgrade to >=1.4.
fix
pip install --upgrade spotipy-anon
affects: <1.4
deprecatedThe 'spotify_secrets' parameter in initialization is deprecated. TOTP secrets are now fetched automatically.
fix
Remove 'spotify_secrets' argument when creating SpotifyAnon instance.
affects: >=1.5.4
gotchaAnonymous access may be rate-limited or blocked by Spotify at any time. Tokens are shared and could be revoked. For production, use official authentication.
fix
Consider using spotipy with client credentials flow.
affects: all
Errors
Common errors & fixes
spotipy_anon.exceptions.TokenError: Unable to retrieve token
TOTP secret changed or outdated library version.
fix
Update to latest version: pip install --upgrade spotipy-anon
AttributeError: module 'spotipy_anon' has no attribute 'SpotifyAnon'
Using wrong class name or import path.
fix
Use: from spotipy_anon import SpotifyAnon
Upgrade
Version history
1.5.7latest on PyPI · released Nov 7, 2025
Audit
Dependencies
spotipyrequiredCore library for Spotify API interactions
pyotprequiredTOTP secret handling
requestsrequiredHTTP requests
Agent activity
22 hits · last 30 days
node
20
OpenAI (training)
1
Resources
spotipy-anon — pip install spotipy-anon · libregistry