Asynchronous Python client for the Spotify Web API, built on aiohttp. Current version 2.0.2, requires Python >=3.13. Actively maintained with frequent releases.
pip install spotifyaioNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Quickstart: authenticate and fetch a track by ID.
Upgrade Python to 3.13 or later, or pin spotifyaio to <2.0.0 if Python 3.12 is required.
Upgrade Python accordingly.
Always use `async with SpotifyClient(...) as client:` or explicitly call `await client.close()`.
Use `track.name` safely by checking `if track:` or use `.get()` if available.
Use `async with SpotifyClient(...) as client:` pattern.
Verify credentials from Spotify Developer Dashboard and set environment variables correctly.
Implement your own rate limiting or add delays between requests.