# Spotify + YouTube Integrations: Connect with Zapier MCP
> zapier.com/apps/spotify/integrations/youtube
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Spotify and YouTube 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 · add_video_to_playlist`.
- **SDK**:

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action youtube write add_video_to_playlist \
  --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`

## YouTube

### Identity
YouTube allows billions of people to discover, watch and share originally-created videos. YouTube provides a forum for people to connect, inform, and inspire others across the globe and acts as a distribution platform for original content creators and advertisers large and small.

- App slug: youtube
- Operations published here: 11 (5 events, 3 functions, 3 queries)

### Authentication
Zapier connects to YouTube 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 youtube
```

### Capabilities

#### Events (5)

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

##### New Comment on Video
Triggers when a new comment is posted on a specific YouTube video.

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

##### New Live Stream
Triggers when a new live stream is created or becomes active for a specific YouTube channel.

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

##### New Video in Channel
Triggers when a new video is published to a specific YouTube channel.

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

##### New Video in Playlist
Triggers when a new video is added to a specific playlist.  Note  does not work for your "watch later" playlist.

- Type: read · Key: `video_in_playlist`
- Requires: playlist_id
- Optional: privacy_status
- SDK: `runAction({ app: "youtube", actionType: "read", action: "video_in_playlist" })`
- CLI: `npx zapier-sdk run-action youtube read video_in_playlist`

##### New Video by Search
Triggers when a new video is uploaded that matches a specific search string.

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

#### Functions (3)

Functions change something in YouTube.

##### Add Video to Playlist
Add a video to one of your playlists

- Type: write · Key: `add_video_to_playlist`
- Requires: playlist_id, video_id
- Optional: quota_copy, position, note
- SDK: `runAction({ app: "youtube", actionType: "write", action: "add_video_to_playlist" })`
- CLI: `npx zapier-sdk run-action youtube write add_video_to_playlist`

##### Upload Video
Post a video to your channel

- Type: write · Key: `upload_video`
- Requires: title, description, video
- Optional: quota_copy, upload_size_copy, thumbnail, privacy_status, publish_at, tags, language_section, default_language, default_audio_language, localizations_help_text, language_code, localized_title, localized_description, recording_section, recording_date, recording_location, advanced_section, license, embeddable, public_stats_viewable, category_id_help_text, category_id, made_for_kids, notify_subscribers
- SDK: `runAction({ app: "youtube", actionType: "write", action: "upload_video" })`
- CLI: `npx zapier-sdk run-action youtube write upload_video`

##### Update Video Thumbnail
Updates the thumbnail image for a video. You must have verified your phone number in order to update a video's thumbnail image

- Type: write · Key: `upload_video_thumbnail`
- Requires: video_id, thumbnail
- Optional: thumbnail_size_copy
- SDK: `runAction({ app: "youtube", actionType: "write", action: "upload_video_thumbnail" })`
- CLI: `npx zapier-sdk run-action youtube write upload_video_thumbnail`

#### Queries (3)

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

##### Find Channel
Finds YouTube channels by channel ID or handle, or lists the channels of the connected account, with their details and statistics.

- Type: search · Key: `find_channel`
- Requires: nothing
- Optional: quota_copy, channel_ids, handle, parts
- SDK: `runAction({ app: "youtube", actionType: "search", action: "find_channel" })`
- CLI: `npx zapier-sdk run-action youtube search find_channel`

##### Find Video
Search for videos on YouTube using various criteria like keywords, channel, date range, and more.

- Type: search · Key: `find_video`
- Requires: nothing
- Optional: query, channel_id, order, published_after, published_before, video_duration, video_definition, video_dimension, video_caption, video_license, safe_search, region_code, relevance_language, video_category_id, max_results
- SDK: `runAction({ app: "youtube", actionType: "search", action: "find_video" })`
- CLI: `npx zapier-sdk run-action youtube search find_video`

##### Get Report
Creates a report on specified data from your owned and managed channels.

- Type: search · Key: `get_report`
- Requires: report_type, start_date, end_date, metrics
- Optional: report_breakdown
- SDK: `runAction({ app: "youtube", actionType: "search", action: "get_report" })`
- CLI: `npx zapier-sdk run-action youtube search get_report`

## Frequently asked questions about automating with Spotify and YouTube

### How can I automatically update a YouTube playlist with my new Spotify discoveries?

By using our integration platform, you can set a trigger for when you add a new track to a specific Spotify playlist. This will prompt an action to add the track to a designated YouTube playlist, keeping your music collections in sync.

### Is it possible to pause Spotify when I start watching a video on YouTube?

Yes, you can create a workflow where starting a video on YouTube triggers an action to pause your Spotify playback. This ensures your music doesn't interrupt your video sessions.

### Can I share my liked songs on Spotify as videos on YouTube automatically?

Our integration allows you to automate this process. Whenever you like a song on Spotify, it triggers an action that searches and shares the corresponding video on your YouTube channel.

### How do I ensure that my YouTube channel reflects my current favorite tracks from Spotify?

We offer an automated solution where any addition of tracks to your 'Favorites' playlist on Spotify triggers updates or additions to a selected playlist on your YouTube channel.

### Can I save my favorite YouTube videos as playlists in Spotify?

Yes, by setting up the right triggers and actions, when you mark a video as 'liked' or add it to a 'favorites' playlist on YouTube, it can automatically create or update playlists in your Spotify account.

### Is there an integration that lets me comment on YouTube using information from what I'm listening to on Spotify?

You can configure our integration tools so that playing certain tracks or albums triggers pre-set comments or messages containing this information for use in the comment section of specific YouTube videos.

### How do I synchronize my workout playlists between Spotify and YouTube Music?

Through an automated workflow setup, any updates made to your workout playlists in Spotify—like adding or removing songs—can trigger alterations in corresponding playlists within your connected YouTube Music account.

### My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

### Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

### Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

## Links
- Spotify integrations: zapier.com/apps/spotify/integrations.md
- YouTube integrations: zapier.com/apps/youtube/integrations.md
- Full page: zapier.com/apps/spotify/integrations/youtube
- SDK: npmjs.com/package/@zapier/zapier-sdk