Skip to content

Services

Each service wraps a portion of the Spotify Web API. Services are exposed as attributes on the client instance.

Auto-generated API details

Each service page includes an auto-generated API section rendered from the async implementation, which is the canonical source for the SDK.

from spotify_sdk import SpotifyClient

with SpotifyClient(access_token="your-access-token") as client:
    album = client.albums.get("7ycBtnsMtyVbbwTfJwRjSP")
import asyncio
from spotify_sdk import AsyncSpotifyClient

async def main() -> None:
    async with AsyncSpotifyClient(access_token="your-access-token") as client:
        album = await client.albums.get("7ycBtnsMtyVbbwTfJwRjSP")

asyncio.run(main())

Service list

Service Description
Albums Album details, tracks, and new releases
Audiobooks Audiobook details and chapter lookups
Artists Artist profiles, albums, and top tracks
Playlists Playlist details, items, and images
Tracks Track details and bulk lookups