Spotify SDK for Python
A type-safe Python SDK for the Spotify Web API with full async support, automatic retries, and comprehensive error handling
Quick start
Get up and running with the Spotify SDK in minutes
Explore the SDK
Discover all the features and services available
Authentication
Learn about access tokens, client credentials, and authorization code flows
Async support
Use AsyncSpotifyClient for concurrent requests and better performance
Error handling
Handle rate limits, authentication errors, and server failures gracefully
Context managers
Manage resources cleanly with with and async with support
API services
Access all Spotify Web API endpoints with type-safe methods
Albums
Get albums, tracks, and discographies
Artists
Fetch artist details and top tracks
Playlists
Create and manage playlists
Tracks
Search and retrieve track information
Users
Access user profiles and preferences
Search
Search across all content types