Skip to main content

Another client for the Spotify Web API

Project description

Another wrapper for the Spotify Web API, built on top of requests and requests_oauthlib.

I wrote this package as a kind of “code generation experiment”: the code (and doc) of Spotify class was almost entirely generated using a script that scrapes the official Spotify Web API documentation.

For scripts and desktop apps, this package (optionally) includes a flask server (meant to be run locally) to handle user authorization without requiring the user to manually copy and paste the OAuth2 callback URL (containing the token) from the browser to your app.

  • Free software: MIT license


If you don’t need the authorization flask app:

pip install spotipie


pip install spotipie[auth-app]


You first need to create an OAuth2 session and obtain an authorization token for it. There’s a different OAuth2 session class for each of the three OAuth2 authorization flows supported by the Spotify API (see Authorization Flows):

  • ClientCredentialsSession
  • AuthorizationCodeSession
  • ImplicitGrantSession

Then you can wrap the session with a Spotify object.


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for spotipie, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size spotipie-0.1.1-py2.py3-none-any.whl (34.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size spotipie-0.1.1.tar.gz (43.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page