skip_track
Skip to the next or previous track on the active Spotify device. Use direction to control playback.
Instructions
Skip to the next or previous track on the active Spotify device.
Parameters
direction : str, optional
"next" (default) to skip forward, "previous" to go back.
Returns
dict
{"status": "skipped_next" | "skipped_previous" | "no_active_device"}
Raises
ValueError
If direction is not "next" or "previous".
spotipy.SpotifyException
Propagated if the Spotify API returns a non-2xx response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | next |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||