Skip to content

API Reference ​

Internal API docs generated by TypeDoc. For contributors and developers extending the CLI.

Modules ​

ModuleDescription
api/clientHTTP client for Spotify Web API
api/playerPlayback control endpoints
api/tracksTrack and saved-track endpoints
api/albumsAlbum and saved-album endpoints
api/playlistsPlaylist CRUD and track management
api/searchSearch across Spotify's catalog
api/userUser profile and top items

Auth ​

ModuleDescription
auth/flowOAuth 2.0 PKCE login flow
auth/token-storeToken persistence and refresh
auth/pkcePKCE challenge/verifier generation
auth/serverLocal OAuth callback server

Schemas ​

Zod schemas used for Spotify API response validation.

ModuleDescription
schemas/trackTrack objects
schemas/albumAlbum objects
schemas/playerPlayer state and device objects
schemas/playlistPlaylist and playlist-track objects
schemas/searchSearch result objects
schemas/userUser profile objects
schemas/artistArtist objects
schemas/commonShared types (pagination, images)

Utilities ​

ModuleDescription
errorsStructured error codes and error classes
configCLI configuration and paths
outputJSON output formatting
parseArgument parsing utilities

MIT Licensed. Not affiliated with or endorsed by Spotify AB.