# Spotify + URL Shortener by Zapier Integrations: Connect with Zapier MCP
> zapier.com/apps/spotify/integrations/url-shortener
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Spotify and URL Shortener by Zapier in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · shortenUrl`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "url-shortener", owner: "me" });

const { data } = await zapier.runAction({
  app: "url-shortener",
  actionType: "write",
  action: "shortenUrl",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action url-shortener write shortenUrl \
  --inputs '{}'
```

## Spotify

### Identity
Spotify is a music streaming service that provides digital content from record labels and media companies.

- App slug: spotify
- Operations published here: 22 (5 events, 12 functions, 5 queries)

### Authentication
Zapier connects to Spotify via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection spotify
```

### Capabilities

#### Events (5)

Events fire when something happens in Spotify. Use them to start a run.

##### New Played Track
Triggers when a track finishes playing. Use with a Filter step to only trigger when particular song/s plays. 

- Type: read · Key: `get_recently_played`
- Requires: nothing
- SDK: `runAction({ app: "spotify", actionType: "read", action: "get_recently_played" })`
- CLI: `npx zapier-sdk run-action spotify read get_recently_played`

##### New Saved Track
Triggers when a new track is "Liked". 

- Type: read · Key: `get_saved_tracks`
- Requires: nothing
- SDK: `runAction({ app: "spotify", actionType: "read", action: "get_saved_tracks" })`
- CLI: `npx zapier-sdk run-action spotify read get_saved_tracks`

##### New Podcast Episode
Triggers when a new episode is added to the selected show.

- Type: read · Key: `new_episode`
- Requires: id
- SDK: `runAction({ app: "spotify", actionType: "read", action: "new_episode" })`
- CLI: `npx zapier-sdk run-action spotify read new_episode`

##### New Playlist
Triggers when a new playlist is created. 

- Type: read · Key: `new_playlist`
- Requires: nothing
- SDK: `runAction({ app: "spotify", actionType: "read", action: "new_playlist" })`
- CLI: `npx zapier-sdk run-action spotify read new_playlist`

##### New Track Added to Playlist
Triggers when a new track is added to one of your playlists.

- Type: read · Key: `new_track_added_to_playlist`
- Requires: nothing
- Optional: ID
- SDK: `runAction({ app: "spotify", actionType: "read", action: "new_track_added_to_playlist" })`
- CLI: `npx zapier-sdk run-action spotify read new_track_added_to_playlist`

#### Functions (12)

Functions change something in Spotify.

##### Add Items to Playlist
Add one or more items to your playlist. Only available for tracks and episodes. 

- Type: write · Key: `add_items_to_playlist`
- Requires: playlist_id, uris
- Optional: position
- SDK: `runAction({ app: "spotify", actionType: "write", action: "add_items_to_playlist" })`
- CLI: `npx zapier-sdk run-action spotify write add_items_to_playlist`

##### Create Playlist
Create a new playlist. 

- Type: write · Key: `create_playlist`
- Requires: name
- Optional: description, public, collaborative
- SDK: `runAction({ app: "spotify", actionType: "write", action: "create_playlist" })`
- CLI: `npx zapier-sdk run-action spotify write create_playlist`

##### Find Top Tracks for Artist
Retrieve the top tracks for an artist, by market. Returned as an array of line items. 

- Type: write · Key: `find_top_tracks_create`
- Requires: id
- SDK: `runAction({ app: "spotify", actionType: "write", action: "find_top_tracks_create" })`
- CLI: `npx zapier-sdk run-action spotify write find_top_tracks_create`

##### Get Currently Playing Track
Retrieve the item currently being played on the user's Spotify account.

- Type: write · Key: `get_current_track`
- Requires: nothing
- SDK: `runAction({ app: "spotify", actionType: "write", action: "get_current_track" })`
- CLI: `npx zapier-sdk run-action spotify write get_current_track`

##### Get Show Details
Get Spotify catalog information for a single Saved Show.

- Type: write · Key: `get_show`
- Requires: nothing
- Optional: id
- SDK: `runAction({ app: "spotify", actionType: "write", action: "get_show" })`
- CLI: `npx zapier-sdk run-action spotify write get_show`

##### Get Show Episodes
Retrieves list of 5 most recent episodes in an array of line items.

- Type: write · Key: `get_show_episodes`
- Requires: id
- SDK: `runAction({ app: "spotify", actionType: "write", action: "get_show_episodes" })`
- CLI: `npx zapier-sdk run-action spotify write get_show_episodes`

##### Get Track's Audio Features
Get audio feature information for a single track identified by its unique Spotify ID.

- Type: write · Key: `get_track_audio_features`
- Requires: id
- Optional: feature_definitions
- SDK: `runAction({ app: "spotify", actionType: "write", action: "get_track_audio_features" })`
- CLI: `npx zapier-sdk run-action spotify write get_track_audio_features`

##### Save Album
Save one or more albums to Your Library.

- Type: write · Key: `save_album`
- Requires: ids
- SDK: `runAction({ app: "spotify", actionType: "write", action: "save_album" })`
- CLI: `npx zapier-sdk run-action spotify write save_album`

##### Save Episode to My User
Add Episode to Your Episodes.

- Type: write · Key: `save_episode`
- Requires: id
- SDK: `runAction({ app: "spotify", actionType: "write", action: "save_episode" })`
- CLI: `npx zapier-sdk run-action spotify write save_episode`

##### Save Track(s)
Save one or more tracks to Your Library.

- Type: write · Key: `save_tracks`
- Requires: ids
- SDK: `runAction({ app: "spotify", actionType: "write", action: "save_tracks" })`
- CLI: `npx zapier-sdk run-action spotify write save_tracks`

##### Start/Resume Playback
Start or resume current playback on an active device.

- Type: write · Key: `start_playback`
- Requires: playback_copy
- Optional: context_uri, uris, offset, device_id
- SDK: `runAction({ app: "spotify", actionType: "write", action: "start_playback" })`
- CLI: `npx zapier-sdk run-action spotify write start_playback`

##### Update Playlist
Edit the playlist name, description or private/public state.

- Type: write · Key: `update_playlist`
- Requires: playlist_id
- Optional: name, description, public, collaborative
- SDK: `runAction({ app: "spotify", actionType: "write", action: "update_playlist" })`
- CLI: `npx zapier-sdk run-action spotify write update_playlist`

#### Queries (5)

Queries read from Spotify and return data. They change nothing.

##### Find Episode
Get Spotify catalog information for a single show episode.

- Type: search · Key: `find_episode`
- Requires: id
- SDK: `runAction({ app: "spotify", actionType: "search", action: "find_episode" })`
- CLI: `npx zapier-sdk run-action spotify search find_episode`

##### Find Top Track for Artist
Get Spotify catalog information about an artist's top track, by market. 

- Type: search · Key: `find_top_tracks`
- Requires: id
- SDK: `runAction({ app: "spotify", actionType: "search", action: "find_top_tracks" })`
- CLI: `npx zapier-sdk run-action spotify search find_top_tracks`

##### Find Track
Get Spotify catalog information for a single track.

- Type: search · Key: `find_track`
- Requires: id
- SDK: `runAction({ app: "spotify", actionType: "search", action: "find_track" })`
- CLI: `npx zapier-sdk run-action spotify search find_track`

##### Get Saved Shows
Get a list of the current user’s saved shows as array of line items. Maximum of 50 shows. 

- Type: search · Key: `get_tracks`
- Requires: nothing
- Optional: get_saved_shows_copy
- SDK: `runAction({ app: "spotify", actionType: "search", action: "get_tracks" })`
- CLI: `npx zapier-sdk run-action spotify search get_tracks`

##### Search for Item
Get Spotify catalog information about an album, artist, playlist, track, show or episode that match a keyword string.

- Type: search · Key: `search_item`
- Requires: type, q
- Optional: search_copy
- SDK: `runAction({ app: "spotify", actionType: "search", action: "search_item" })`
- CLI: `npx zapier-sdk run-action spotify search search_item`

## URL Shortener by Zapier

### Identity
Create ready-to-share links on the fly. Zapier's URL Shortener spits out a simplified version of any link you throw its way. Pass that link to Twitter, drop it in an email, or send it along to any Zapier-connected app.

- App slug: url-shortener
- Operations published here: 1 (1 function)

### Capabilities

#### Functions (1)

Functions change something in URL Shortener by Zapier.

##### Shorten URL
Shorten a long URL using zpr.io (Intended to provide convenience, not security).

- Type: write · Key: `shortenUrl`
- Requires: url
- SDK: `runAction({ app: "url-shortener", actionType: "write", action: "shortenUrl" })`
- CLI: `npx zapier-sdk run-action url-shortener write shortenUrl`

## Frequently asked questions about automating with Spotify and URL Shortener by Zapier

### How do I set up the integration between Spotify and URL Shortener by Zapier?

To set up the integration, you need to create a new Zap in your Zapier account. Choose Spotify as your trigger app and select a trigger event, such as "New Playlist" or "New Track Added to Playlist." Then, choose URL Shortener by Zapier as the action app and select 'Shorten URL.' Follow the prompts to complete the integration.

### Can I shorten URLs of my Spotify playlists automatically?

Yes, by using our integration, you can automatically shorten URLs of new Spotify playlists. Set the trigger event to "New Playlist" in Spotify and use the 'Shorten URL' action with URL Shortener by Zapier.

### What types of triggers can I use with Spotify in this integration?

For this integration, you can use triggers like "New Playlist," "New Track Added to Playlist," or "New Saved Track" from your Spotify account. Choose a trigger that fits your need for automation.

### Is it possible to create short URLs for individual tracks on my Spotify account?

Yes, you can create short URLs for individual tracks by setting the trigger in Spotify as 'New Track Added to Playlist' or 'New Saved Track.' The corresponding action will shorten these track URLs using our URL Shortener.

### Do I need technical skills to integrate Spotify with a URL shortener using Zapier?

No technical skills are required. Our platform guides you through step-by-step instructions to set up triggers in Spotify and actions in URL Shortener without any coding.

### Can I customize when my links are shortened based on specific criteria?

While setting up your Zap, you can use filters provided by our platform to ensure links are only shortened if certain conditions are met within your Spotify account activities.

### What happens if there is an error during the execution of my zap involving Spotify and URL Shortener?

If there's an error during execution, our platform provides detailed logs and troubleshooting steps. You will be notified via email about any errors so you can take immediate action to resolve them.

## Links
- Spotify integrations: zapier.com/apps/spotify/integrations.md
- URL Shortener by Zapier integrations: zapier.com/apps/url-shortener/integrations.md
- Full page: zapier.com/apps/spotify/integrations/url-shortener
- SDK: npmjs.com/package/@zapier/zapier-sdk