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.

  • 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.

  • Search for item

    Search Spotify's catalog for albums, artists, playlists, tracks, shows, episodes or audiobooks matching a keyword. The default limit is 20; affected Development Mode apps must specify a limit of at most 10 and can paginate using offset. Audiobooks are available only in the US, UK, Canada, Ireland, New Zealand and Australia markets.

  • 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

  • Skip to next

    Skips to next track in the user's 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.

  • Skip to previous

    Skips to the previous track in the user's queue. Requirements: - Spotify Premium subscription - Active playback (user must be currently playing music) - Requires 'user-modify-playback-state' scope Note: The order of execution is not guaranteed when you use this API with other Player API endpoints.

  • Start resume playback

    Start playback of a context or list of tracks, or resume playback on a Spotify device. Requires Spotify Premium and the user-modify-playback-state scope; execution order relative to other Player API endpoints is not guaranteed.

  • Toggle playback shuffle

    Toggle shuffle on or off for user's playback. 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 OAuth scope: user-modify-playback-state Note: This endpoint returns 204 No Content on success, 404 if no active device is found, and 403 if the user does not have an active Spotify Premium subscription.

PreviousPage 4 / 5Next