Skip to content

The moment it happens

Queue, skip or pause Spotify from a link

Calling a link adds a track to your queue, skips to the next song or pauses playback.

Runs
The moment it happens
Apps
Spotify
AI
Not needed
Access
user-modify-playback-state

Send this to your assistant

Create a ClickRuntime automation: give me one link that adds the Spotify track I send to my queue, one that skips to the next song, and one that pauses.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

Spotify's controls live inside its app, which is awkward when the person who wants to control the music is not holding the phone. A host wants guests to suggest songs without sharing a login. A stream deck, a smart home button or a barcode on the wall should skip the track. A shortcut on a watch should pause. Without something in between, each of these needs a custom integration, and Spotify's own remote options are limited.

Press a button or open a link, and the request goes to ClickRuntime with an action and, when relevant, a track. It reads what you asked for, such as add to queue, skip or pause, and calls the matching Spotify player endpoint on your account. The playback changes on whichever device you are currently using.

It is practical for parties, shared offices, cafes, workshops and home setups with a physical button.

What you get out of it

  • Guests can add songs without a login

    Share a link or a QR code, and anyone can queue a song while your account stays private. Your party's music reflects the crowd's taste instead of one person's phone.

  • Physical buttons become possible

    A stream deck key, a smart home button or an NFC tag can pause or skip, which is much easier than unlocking a phone when your hands are full while cooking or setting up. Setup is a one-time job, and then a single press does the work.

  • It works across devices

    Playback commands go to Spotify's player API, so they control the active device, whether that is a speaker, a laptop or a TV, without needing to be near it. One link can serve every room, which suits households with several speakers.

  • Simple shortcuts replace app switching

    A single tap on a phone shortcut or a watch can skip a song without opening anything, which is useful while driving a car, running or on a call. Hands stay on the wheel, the treadmill or the keyboard.

  • Shared spaces get shared control

    An office or a cafe can let staff add to a queue from a web page, and the owner decides who knows the link. There is no need to pass around a password.

How it works

What happens, step by step

  1. When you call your automation's link, ClickRuntime reads what you asked for: queue a song, skip or pause.

  2. It tells Spotify to do that on the device you're listening on.

  3. A queued song plays next, a skip moves straight to the next track, and a pause stops playback.

Before it runs live

  • Connect Spotify
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Queue, skip or pause Spotify from a linkjust nowSucceeded
Spotify · QueueQueued: Northwind Avenue by Acme Quartet (played next on your phone)

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Act only on the items that match your own rules, and skip the rest
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other Spotify steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
control_playback_or_queue_a_song_from_a_link.pyexample
from clickruntime import on_event, credentials, http

API = "https://api.spotify.com/v1/me/player"

@on_event
def handle(event):
    body = event.json or {}
    action = body.get("action", "queue")
    h = {"Authorization": f"Bearer {credentials.connection('spotify', 'personal')}"}
    if action == "queue":
        track = body["track"]  # a track link or spotify:track:... uri
        uri = track if track.startswith("spotify:") else "spotify:track:" + track.rstrip("/").split("/")[-1].split("?")[0]
        resp = http.post(f"{API}/queue", headers=h, params={"uri": uri})
    elif action == "next":
        resp = http.post(f"{API}/next", headers=h)
    elif action == "pause":
        resp = http.put(f"{API}/pause", headers=h)
    else:
        return {"error": f"unknown action {action}"}
    resp.raise_for_status()
    return {"done": action}

FAQ

Common questions

Does this need Spotify Premium?
Yes. Spotify's playback control endpoints, including skip, pause and add to queue, only work for accounts with Premium. Searching and playlist creation do not carry that requirement, but remote control of playback does. Check your plan first.
Does something need to be playing already?
The commands act on an active Spotify device. If nothing has played recently, open Spotify on a speaker or phone and start any track, and from then on the link will control that device. It does not have to be in the foreground.
Can anyone who finds the link control my music?
Anyone with the link can call it, so share it only with people you trust, or ask for a secret value in the request. You can also remove the link at any time to stop all access.
What permissions does it need?
user-modify-playback-state. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run for each event the app sends.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Queue, skip or pause Spotify from a link” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.