Spotify

Spotify is a digital music and podcast streaming service with millions of tracks, personalized playlists, and social sharing features

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Add items to playlist

    Add one or more items to a user's playlist.

  • Add item to playback queue

    Add an item to the end of the user's current playback queue. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints. Required scope: user-modify-playback-state Note: Only tracks and episodes can be added to the queue. Albums and playlists cannot be added directly.

  • Change playlist details

    Change a playlist's name and public/private state. The user must own the playlist. This action allows updating the playlist name, description, public/private status, and collaborative mode. At least one of the optional parameters (name, public, collaborative, description) must be provided. Important constraints: - collaborative can only be set to true on non-public playlists (when public is false) - Requires OAuth scope: playlist-modify-public (for public playlists) or playlist-modify-private (for private playlists) - The playlist must be owned by the authenticated user

  • Follow artists or users

    Follow one or more artists or Spotify users by ID for the current authenticated user, adding them to the user's following list. Requires user-follow-modify; up to 50 IDs can be supplied. DEPRECATED: The legacy endpoint is unavailable to affected Development Mode apps; Spotify recommends PUT /me/library with Spotify URIs instead.

  • Follow playlist

    Follow a playlist for the current Spotify user by playlist ID, publicly or privately. Requires playlist-modify-public or playlist-modify-private as appropriate. DEPRECATED: The legacy endpoint is unavailable under updated Development Mode restrictions; use PUT /me/library with a Spotify URI instead. Extended Quota Mode apps are unaffected.

  • Pause playback

    Pause playback on the user's account. Pauses playback on the currently active device or on a specified device. Returns immediately with success when playback is paused. If no device is specified, the currently active device will be paused. Requirements: - Spotify Premium subscription - OAuth scope: user-modify-playback-state - Active playback session Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. If playback is already paused, this action will still succeed (idempotent). Common scenarios: - Pause current playback: Call with no parameters - Pause specific device: Provide device_id parameter Error scenarios: - 403: User does not have Spotify Premium - 404: No active device found

  • Remove playlist items

    Remove one or more items from a user's playlist. This endpoint removes tracks or episodes from a playlist. You can remove items by URI (removes all occurrences) or by URI + positions (removes specific occurrences). Requires 'playlist-modify-public' scope for public playlists or 'playlist-modify-private' scope for private playlists.

  • Remove users saved albums

    Remove one or more albums from the current user's saved library. Removing an album that is not saved does not cause an error. Requires user-library-modify. DEPRECATED: The album-specific endpoint is unavailable to apps subject to updated Development Mode restrictions; use DELETE /me/library with Spotify URIs instead.

  • Remove User's Saved Audiobooks

    Remove one or more saved audiobooks from the current user's Spotify library by ID. Supply up to 50 IDs as a list or comma-separated string; user-library-modify is required. DEPRECATED: This legacy endpoint is unavailable to affected Development Mode apps; use DELETE /me/library with Spotify URIs instead.

  • Remove user's saved episodes

    Remove up to 50 episodes by ID from the current user's Your Episodes library; removing an unsaved episode succeeds. Requires user-library-modify. This action is currently unavailable. DEPRECATED: Spotify replaced the legacy endpoint with DELETE /me/library for affected Development Mode apps; Extended Quota Mode apps are unaffected.

  • Remove user s saved shows

    Remove one or more shows by Spotify ID from the current user's library. Requires the user-library-modify scope. DEPRECATED: This show-specific endpoint is unavailable to affected Development Mode apps; use DELETE /me/library with Spotify URIs instead.

  • Remove user s saved tracks

    Remove one or more tracks by Spotify ID from the current user's library. Requires the user-library-modify scope. DEPRECATED: The track-specific endpoint is unavailable to apps subject to updated Development Mode restrictions; use DELETE /me/library with Spotify URIs instead.

  • Save albums for current user

    Save one or more albums by Spotify ID to the current user's library. Requires the user-library-modify scope; saving an already saved album is idempotent. DEPRECATED: This album-specific endpoint is unavailable to affected Development Mode apps; use PUT /me/library with Spotify URIs instead.

  • Save audiobooks for current user

    Save up to 50 audiobooks by Spotify ID to the current user's library for later access. Requires the user-library-modify scope. DEPRECATED: Spotify removed this audiobook-specific endpoint for apps subject to updated Development Mode restrictions; use PUT /me/library with Spotify URIs instead.

  • Save episodes for current user

    Save up to 50 podcast episodes by Spotify ID to the current user's Your Episodes library for later playback. Saving an already saved episode succeeds; the user-library-modify scope is required. DEPRECATED: This legacy endpoint is unavailable to affected Development Mode apps; use PUT /me/library with Spotify URIs instead. Extended Quota Mode apps retain the legacy endpoint.

  • Save shows for current user

    Save up to 50 shows by Spotify ID to the current user's library. Requires the user-library-modify scope. DEPRECATED: This endpoint is unavailable to affected Development Mode apps; use PUT /me/library with Spotify URIs instead.

  • Save tracks for current user

    Save tracks to the current user's Spotify library using up to 50 track IDs or timestamped IDs. Requires user-library-modify. DEPRECATED: This legacy endpoint is unavailable to affected Development Mode apps; use PUT /me/library with Spotify URIs instead.

  • Seek to position

    Seek to a position in milliseconds in the user's currently playing track, targeting a specified device or the active device by default. A position beyond the track duration skips to the next track. Requires Spotify Premium and the user-modify-playback-state scope; execution order with other Player API commands is not guaranteed.

  • Set playback volume

    Set the volume for the user's current playback device. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.

  • Set repeat mode

    Set the repeat mode for the user's playback. Controls whether playback should repeat the current track, the current context (playlist, album, etc.), or not repeat at all. The change takes effect immediately on the user's active device. Requirements: - Spotify Premium subscription - OAuth scope: user-modify-playback-state - Active playback session Valid repeat modes: - "track": Repeat the current track continuously - "context": Repeat the current context (playlist/album/etc.) - "off": Turn repeat off Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. This action is idempotent - setting the same repeat mode multiple times has the same effect as setting it once. Common scenarios: - Turn off repeat: {"state": "off"} - Repeat current track: {"state": "track"} - Repeat playlist/album: {"state": "context"} - Target specific device: {"state": "off", "device_id": "abc123"} Error scenarios: - 403: User does not have Spotify Premium - 404: No active device found

Page 1 / 2Next