skillfed

spotifyaio

Asynchronous Python client for Spotify.

spotifyaio v2.0.2 94.0K downloads/30d#13,354 on PyPI8
Permissive license MIT Active released

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 spotifyaio

uv

uv add spotifyaio

poetry

poetry add spotifyaio

Installing 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

Development Status :: 5 - Production/StableFramework :: AsyncIOIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python Modules

Tags

spotify api client asyncasync spotify data fetchingpython spotify aiohttpspotify api wrapper asyncspotify client library python
async-httpmusic-api

More Python Modules packages