$npx skillfedfor your agent

spotipy

A light weight Python library for the Spotify Web API

Worth itPyPI WWW/HTTPReleased Mar 2026476.3K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — spotipy-2.26.0-py3-none-any.whl
v2.26.0 · released 2026-03-03 · Python >3.8 · 3 runtime deps: redis, requests, urllib3

Yes. Spotipy is actively maintained, has no known vulnerabilities, installs with low friction, and is widely used. It's the standard choice for Python developers who need programmatic access to Spotify's API. Install it if you're building any application that needs to query or manipulate Spotify data.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a Spotify Developer account with app credentials (client ID and secret) obtained from https://developer.spotify.com/dashboard
  • Low friction install with a pure-Python wheel distribution.
  • The project is actively maintained with recent commits and a large community following (5467 stars), suggesting stable, well-tested code.

License · maintenance · safety

MIT (permissive) — MIT license is permissive—you can use, modify, and distribute this library freely in commercial or private projects with minimal restrictions.

last release 2026-03-03 (164 days) · last repo commit 2026-06-29 · 5,467 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 476,276 downloads/mo, #6,448 on PyPI

Verify before relying

pip install spotipy

import spotipy
from spotipy.oauth2 import SpotifyClientCredentials

sp = spotipy.Spotify(auth_manager=SpotifyClientCredentials(
    client_id="YOUR_CLIENT_ID",
    client_secret="YOUR_CLIENT_SECRET"
))
results = sp.search(q='weezer', limit=20)
  • Whether redis is required at runtime or only for optional caching features
  • Specific Spotify API endpoints and scopes supported beyond the general 'full access' claim
  • Rate limiting behavior and retry strategies when hitting Spotify API quotas
Same gist for agents: .md · .json

What it is and what it does

Spotipy wraps the Spotify Web API in a lightweight Python library, letting you search for tracks and artists, retrieve metadata, manage playlists, and access user library data without building HTTP requests by hand. It handles OAuth2 authentication for both application-level and user-level access, and depends on requests and urllib3 for HTTP communication, with optional redis support for caching.

The library is designed for developers who want to build Python applications that interact with Spotify's music catalog and user accounts. It abstracts away API endpoint details and response parsing, so you can focus on your application logic rather than REST mechanics.

Use it for

  • Build a music discovery app that searches Spotify's catalog and displays track details programmatically
  • Sync a user's saved tracks or playlists to a local database or external service
  • Create a recommendation engine that analyzes user listening history via the Spotify API
  • Automate playlist creation or management based on external data or user preferences
  • Integrate Spotify data into a web or desktop application without writing raw HTTP code

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Spotipy is actively maintained, has no known vulnerabilities, installs with low friction, and is widely used. It's the standard choice for Python developers who need programmatic access to Spotify's API. Install it if you're building any application that needs to query or manipulate Spotify data.

Install

spotipy on PyPI

Before you install

Low friction install with a pure-Python wheel distribution. The project is actively maintained with recent commits and a large community following (5467 stars), suggesting stable, well-tested code.

Requires a Spotify Developer account with app credentials (client ID and secret) obtained from https://developer.spotify.com/dashboard

License in practice

MIT license is permissive—you can use, modify, and distribute this library freely in commercial or private projects with minimal restrictions.

Quickstart

pip install spotipy

import spotipy
from spotipy.oauth2 import SpotifyClientCredentials

sp = spotipy.Spotify(auth_manager=SpotifyClientCredentials(
    client_id="YOUR_CLIENT_ID",
    client_secret="YOUR_CLIENT_SECRET"
))
results = sp.search(q='weezer', limit=20)

Verify before relying

  • Whether redis is required at runtime or only for optional caching features
  • Specific Spotify API endpoints and scopes supported beyond the general 'full access' claim
  • Rate limiting behavior and retry strategies when hitting Spotify API quotas

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
redisrequestsurllib3
MaintenanceActively maintained 164 days since the last release
Last repo commit
First released
Downloads476,276 / month, #6,448 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: spotipy-2.26.0-py3-none-any.whl

Tags

Capabilities
spotify api python clientspotify web api wrapperaccess spotify music dataspotify search and playbackspotify user authenticationspotify track metadataspotify playlist management
Topics
music-apioauth2rest-client

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “spotify web api wrapper”

  • spotipySpotipy is a Python client library for the Spotify Web API that…
  • spotifywebapipythonA Python library that wraps the Spotify Web API, enabling retrieval…
  • spotifyaioAsynchronous Python client for fetching data from Spotify's API using…

Give your agent the search over MCP, or paste the wish link into any chat.

More WWW/HTTP packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.

Install it if you are building new projects or modernizing existing ones that rely on HTTP.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.

Install it if you need async HTTP client or server capabilities in asyncio-based applications.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also spotapi · spotifywebapipython · LucoPy · spotipyFree · spotdl · pylibrespot-java · ytmusicapi · youtube-search-python · pylast · shazamio