spotifyaio
Asynchronous Python client for Spotify.
What it is and what it does
spotifyaio is an async Python wrapper around Spotify's API, built on aiohttp for non-blocking I/O. It lets you query Spotify data—tracks, artists, playlists, and more—using Python's async/await syntax, making it suitable for concurrent applications, bots, and services that need to fetch Spotify metadata without blocking. The package depends on aiohttp for HTTP requests, mashumaro and orjson for efficient serialization, and yarl for URL handling.
The library targets Python 3.13+ and is actively maintained. It uses semantic versioning and publishes releases via GitHub. The MIT license places no restrictions on commercial or private use. With low install friction and no known vulnerabilities, it's a straightforward choice for developers building async Spotify integrations.
Use it for:
- Build a Discord bot or Telegram bot that queries Spotify for track info, artist details, or playlist data asynchronously.
- Create a web service that aggregates Spotify metadata for multiple users concurrently without blocking.
- Fetch Spotify data in a background task or scheduled job within an async application.
- Integrate Spotify search and recommendation endpoints into an async music recommendation engine.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Asynchronous Python client for fetching data from Spotify's API using modern async/await patterns.
Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and requires only common async dependencies. Install friction is low and Python 3.13+ support is current. Install it if you need to query Spotify's API from async Python code; the only gotcha is the Python 3.13+ requirement.
Install
spotifyaio on PyPI
pip
pip install spotifyaiouv
uv add spotifyaiopoetry
poetry add spotifyaioInstalling spotifyaio
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained as of 2026-08-13 with recent releases; requires Python 3.13 or later.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions, provided you retain the license notice.
Quickstart
pip install spotifyaio
import asyncio
from spotifyaio import SpotifyClient
async def main():
async with SpotifyClient(token='your_token') as client:
data = await client.get_track('track_id')
asyncio.run(main())
Requires Python 3.13 or later; you must provide valid Spotify API credentials (token or client ID/secret).
Verify before relying
- Exact API endpoints and methods available in version 2.0.2 are not detailed in the fact sheet.
- Whether the package handles Spotify authentication flows (OAuth, client credentials) or requires pre-obtained tokens.
- Rate limiting and error handling behavior for Spotify API responses.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.13) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — aiohttp, mashumaro, orjson, yarl |
| Maintenance | actively maintained — 163 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 93,970/month — #13,354 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: spotifyaio-2.0.2-py3-none-any.whl
Keywords: Spotify, api, async, client
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
aiosyncthingAsynchronous Python client for the Syncthing…
permissive · top 15,000 on PyPI
aiowithingsAsynchronous Python client for fetching data…
permissive · top 15,000 on PyPI
todoist_api_pythonOfficial Python SDK for the Todoist API,…
permissive · top 15,000 on PyPI
radiosAn async Python client for querying the Radio…
permissive · top 15,000 on PyPI
aiogithubapiAsynchronous Python client library for…
permissive · top 15,000 on PyPI
pysmartthingsAsynchronous Python client for fetching data…
permissive · top 15,000 on PyPI
open-meteoProvides an asynchronous Python client for…
permissive · top 15,000 on PyPI
devo-sdkSend events and files to Devo, query data via…
permissive · top 15,000 on PyPI
pylibrespot-javaProvides a Python interface to communicate with…
permissive · top 15,000 on PyPI
newsapi-pythonA Python client library that wraps the News…
permissive · top 15,000 on PyPI