---
agent:
  instructions: "Use this search API to find a ready-to-deploy Next Gen Zap for what the user wants to automate, with keywords or a natural-language description, instead of reading every zap. Results are returned in Markdown, each with the zap's SKILL.md install guide."
  endpoint: "https://zapier.sh/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://zapier.sh/developers/"
---

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

Integrate Pathwright 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).

## 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** (default for AI clients — self-contained for OAuth clients; no further docs needed):
  - Endpoint: `https://mcp.zapier.com/api/v1/connect` (Streamable HTTP only; SSE is not supported).
  - Auth: OAuth 2.0 + PKCE + Dynamic Client Registration. Do not create a server at `mcp.zapier.com` or ask for an API token; Zapier auto-provisions the server during browser sign-in.
  - Client setup: Claude Code `claude mcp add --transport http zapier https://mcp.zapier.com/api/v1/connect`; Cursor `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; VS Code and other clients `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; OpenCode `opencode.json` `{ "type": "remote", "url": "https://mcp.zapier.com/api/v1/connect" }`; Terminal auto-installer `npx @zapier/install-zapier`.
  - Setup guides: Claude https://docs.zapier.com/mcp/get-started/connect/claude.md; Claude Code https://docs.zapier.com/mcp/get-started/connect/claude-code.md; ChatGPT https://docs.zapier.com/mcp/get-started/connect/chatgpt.md; Cursor https://docs.zapier.com/mcp/get-started/connect/cursor.md; Codex https://docs.zapier.com/mcp/get-started/connect/codex.md.
  - After sign-in: call `discover_zapier_actions` for `pathwright` and `youtube`, then `enable_zapier_action`. If Pathwright or YouTube isn't connected in Zapier yet, running an action returns a browser OAuth link for the user.
- **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**: once Add Video to Playlist is enabled, call `youtube_add_video_to_playlist`. Each operation below lists its MCP tool name.
- **SDK**:

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

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

const { data } = await zapier.runAction({
  app: "youtube",
  actionType: "write",
  action: "add_video_to_playlist",
  connection: connection.id,
  inputs: {
    playlist_id: "", // Playlist
    video_id: "", // Video ID
  },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action youtube write add_video_to_playlist \
  --inputs '{"playlist_id":"","video_id":""}'
```

## Pathwright

### Identity
Design step-by-step learning paths for anyone. With Pathwright you can create learning paths that guide students, employees, or anyone in the world to a new level of skill.

- App slug: pathwright
- Operations published here: 12 (10 events, 2 functions)

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

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.130.2 and @zapier/zapier-sdk-cli v0.93.2; 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 pathwright
```

### Capabilities

#### Events (10)

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

##### New Learning Activity
Triggers when a student performs a learning activity in your school. Examples include participating in discussions and completing steps.

- Type: read · Key: `learning_activity`
- Requires: type
- MCP tool: `pathwright_new_learning_activity` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "pathwright", actionType: "read", action: "learning_activity" })`
- CLI: `npx zapier-sdk run-action pathwright read learning_activity`

##### New Cohort
Triggers whenever a new cohort is created in a resource in your Pathwright school, whether that be by a staff member, or a learner creating their own member-created cohort.

- Type: read · Key: `new_cohort`
- Requires: nothing
- MCP tool: `pathwright_new_cohort` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "pathwright", actionType: "read", action: "new_cohort" })`
- CLI: `npx zapier-sdk run-action pathwright read new_cohort`

##### Student Course Completion
Triggers when a student completes a course.

- Type: read · Key: `new_course_completion_v1`
- Requires: nothing
- MCP tool: `pathwright_student_course_completion` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "pathwright", actionType: "read", action: "new_course_completion_v1" })`
- CLI: `npx zapier-sdk run-action pathwright read new_course_completion_v1`

##### New School Member
Triggers when a new member joins your school.

- Type: read · Key: `new_member_joined_v1`
- Requires: nothing
- MCP tool: `pathwright_new_school_member` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "pathwright", actionType: "read", action: "new_member_joined_v1" })`
- CLI: `npx zapier-sdk run-action pathwright read new_member_joined_v1`

##### New Registration
Triggers when a new registration happens in your Pathwright school.

- Type: read · Key: `new_registration`
- Requires: nothing
- MCP tool: `pathwright_new_registration` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "pathwright", actionType: "read", action: "new_registration" })`
- CLI: `npx zapier-sdk run-action pathwright read new_registration`

##### New Student Subscription
Triggers when a student subscribes to your school.

- Type: read · Key: `new_student_subscription_v1`
- Requires: nothing
- MCP tool: `pathwright_new_student_subscription` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "pathwright", actionType: "read", action: "new_student_subscription_v1" })`
- CLI: `npx zapier-sdk run-action pathwright read new_student_subscription_v1`

##### School Membership Updated
Triggers when a member of your school updates their membership.

- Type: read · Key: `school_membership_updated_v1`
- Requires: nothing
- MCP tool: `pathwright_school_membership_updated` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "pathwright", actionType: "read", action: "school_membership_updated_v1" })`
- CLI: `npx zapier-sdk run-action pathwright read school_membership_updated_v1`

##### Step Review Status Change
Triggers when a step's review status may have changed. This could be either the result of a step being automatically assigned a score, or from a teacher manually reviewing a submission. Additionally, other lifecycle events that affect the score or review status of a student's step will trigger this to be sent, such as skips or resets performed either by or on behalf of a student.

- Type: read · Key: `step_reviewed`
- Requires: nothing
- MCP tool: `pathwright_step_review_status_change` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "pathwright", actionType: "read", action: "step_reviewed" })`
- CLI: `npx zapier-sdk run-action pathwright read step_reviewed`

##### Student Unsubscription
Triggers when a user's subscription is canceled.

- Type: read · Key: `student_unsubscription_v1`
- Requires: nothing
- MCP tool: `pathwright_student_unsubscription` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "pathwright", actionType: "read", action: "student_unsubscription_v1" })`
- CLI: `npx zapier-sdk run-action pathwright read student_unsubscription_v1`

##### User Email Updated
Triggers when a user changes the email address on their account.

- Type: read · Key: `user_email_updated`
- Requires: nothing
- MCP tool: `pathwright_user_email_updated` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "pathwright", actionType: "read", action: "user_email_updated" })`
- CLI: `npx zapier-sdk run-action pathwright read user_email_updated`

#### Functions (2)

Functions change something in Pathwright.

##### Create Registration Invitation
Creates a registration invitation to a Pathwright offering and optionally automatically creates a user.

- Type: write · Key: `create_reg_invitation_v2`
- Requires: offering_id, to_email, auto_create_user
- Optional: invitation_subject, invitation_message, first_name, last_name, send_email
- MCP tool: `pathwright_create_registration_invitation` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "pathwright", actionType: "write", action: "create_reg_invitation_v2" })`
- CLI: `npx zapier-sdk run-action pathwright write create_reg_invitation_v2`

##### Update Step Completion
Updates a step completion for a learner. Allows the step to be reset, skipped, or completed.

- Type: write · Key: `update_step_completion`
- Requires: action, user_identifier_type, step_source_id
- Optional: cohort_id
- MCP tool: `pathwright_update_step_completion` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "pathwright", actionType: "write", action: "update_step_completion" })`
- CLI: `npx zapier-sdk run-action pathwright write update_step_completion`

## 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.130.2 and @zapier/zapier-sdk-cli v0.93.2; 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
- MCP tool: `youtube_new_comment_on_video` (before it's enabled, `execute_zapier_read_action` runs it)
- 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
- MCP tool: `youtube_new_live_stream` (before it's enabled, `execute_zapier_read_action` runs it)
- 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
- MCP tool: `youtube_new_video_in_channel` (before it's enabled, `execute_zapier_read_action` runs it)
- 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
- MCP tool: `youtube_new_video_in_playlist` (before it's enabled, `execute_zapier_read_action` runs it)
- 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
- MCP tool: `youtube_new_video_by_search` (before it's enabled, `execute_zapier_read_action` runs it)
- 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
- MCP tool: `youtube_add_video_to_playlist` (before it's enabled, `execute_zapier_write_action` runs it)
- 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
- MCP tool: `youtube_upload_video` (before it's enabled, `execute_zapier_write_action` runs it)
- 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
- MCP tool: `youtube_update_video_thumbnail` (before it's enabled, `execute_zapier_write_action` runs it)
- 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
- MCP tool: `youtube_find_channel` (before it's enabled, `execute_zapier_read_action` runs it)
- 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
- MCP tool: `youtube_find_video` (before it's enabled, `execute_zapier_read_action` runs it)
- 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
- MCP tool: `youtube_get_report` (before it's enabled, `execute_zapier_read_action` runs it)
- 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 Pathwright and YouTube

### 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
- Pathwright integrations: zapier.com/apps/pathwright/integrations.md
- YouTube integrations: zapier.com/apps/youtube/integrations.md
- Full page: zapier.com/apps/pathwright/integrations/youtube
- MCP quickstart (non-OAuth / connection-token clients): docs.zapier.com/mcp/get-started/quickstart.md
- SDK: npmjs.com/package/@zapier/zapier-sdk