Module types

Module types 

Source
Expand description

Typed response structures for Spotify API.

These types mirror the Spotify Web API response formats and provide type-safe access to response data instead of raw JSON.

Structs§

Album
Full album object.
AlbumSimplified
Simplified album object (used in nested contexts).
Artist
Full artist object.
ArtistSimplified
Simplified artist object (used in nested contexts).
ArtistTopTracksResponse
Response for artist’s top tracks.
CategoryPlaylists
Category playlists response.
Copyright
Copyright information.
Cursored
Cursored response wrapper (for endpoints using cursor pagination).
Cursors
Cursor positions for cursor-based pagination.
Device
Device information.
DevicesResponse
Devices response.
ExplicitContent
Explicit content filter settings.
ExternalIds
External IDs (ISRC, EAN, UPC).
ExternalUrls
External URLs for a Spotify object.
FollowedArtistsCursored
Cursor-paginated artists list.
FollowedArtistsResponse
Response wrapper for followed artists (cursor-paginated).
Followers
Follower information.
Image
Image object returned by Spotify.
LinkedFrom
Linked track (relinked due to regional restrictions).
Paginated
Paginated response wrapper.
PlayHistory
Recently played item.
PlaybackActions
Available playback actions.
PlaybackContext
Playback context (what’s being played from).
PlaybackState
Current playback state.
Playlist
Full playlist object.
PlaylistSimplified
Simplified playlist object.
PlaylistTrack
Track in a playlist (wraps track with metadata).
PlaylistTracksRef
Reference to playlist tracks (used in simplified playlist).
QueueResponse
Queue response.
RecentlyPlayedCursors
Cursors for recently played pagination.
RecentlyPlayedResponse
Recently played response (cursor-paginated).
RelatedArtistsResponse
Response for related artists.
Restrictions
Restriction information.
ResumePoint
Resume point for podcasts/audiobooks.
SavedAlbum
Saved album (wraps album with added_at timestamp).
SavedTrack
Saved track (wraps track with added_at timestamp).
TopArtistsResponse
Top artists response.
TopTracksResponse
Top items response (tracks or artists).
Track
Full track object.
TrackSimplified
Simplified track object (used in album tracks, etc.).
UserPrivate
Private user profile (current user with full details).
UserPublic
Public user profile (limited information).

Enums§

AlbumType
Album type enumeration.