[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [YouTube video search](https://spiral.ai/integrations/muse-code/youtube-video-search)

# How to Use YouTube video search in Muse Code

Finds YouTube videos matching a topic or creator name. Use it to discover relevant videos across channels before examining a specific video's details or discussion.

|  |  |
| --- | --- |
| Model | YouTube video search |
| Available through | Alexandria |
| Category | Social Media |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with YouTube video search in Muse Code

- Use YouTube video search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from YouTube video search and tell me what changed since last week.
- Check YouTube video search and summarize what you find in three bullet points.
- Pull the newest data from YouTube video search and give me the result as a table.
- Check YouTube video search every morning and tell me only when something changed.

## How to set up YouTube video search in Muse Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run YouTube video search**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "youtube-com/videos/search_videos",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds YouTube video search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## YouTube video search tools and prices

- [YouTube · Search videos](https://spiral.ai/tools/alexandria/youtube-com/videos/search_videos) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| sort | relevance, view_count | — | Result order, default relevance. view_count is YouTube's most-viewed order. YouTube no longer honours sort by upload date; use upload_date to bound by time. First page only; the continuation keeps it. |
| query |  | — | Search text. |
| upload_date | hour, today, week, month, year | — | Only videos uploaded within this window: the last hour, today, this week, this month or this year (YouTube's upload-date filter). First page only; the continuation keeps it. |
| continuation |  | — | Continuation token returned by a previous call of this function. |

## What can you do with YouTube video search in Muse Code?

Build a YouTube research view that connects a publisher's channel identity with its videos, collections, and public discussions. Turn the retrieved records into a searchable catalog for comparing topics and planning coverage.

### Audit an educational publisher's catalog

Identify an educational channel, inventory its uploads, Shorts, live streams, and public playlists, then inspect the videos in its course collections. Search for related lessons, check selected video details, and read comments with their replies to collect questions the material could address.

### Prepare a product launch report

Identify the brand's channel and review launch uploads, short clips, broadcasts, and playlist collections. Search for additional launch coverage, check the selected videos, and examine public comments and reply threads for recurring product questions.

### Build a conference viewing guide

Identify the organizer's channel and collect keynotes, Shorts, stream replays, and session playlists. Inspect playlist contents, search for topic-specific sessions, check video details, and use comment discussions and replies to flag questions for further reading.

### Plan follow-up videos from public audience questions

Identify a publisher and review its uploads, Shorts, broadcasts, and playlist contents to see which subjects it covers. Search for related videos, inspect their details, and read comments with their replies to propose follow-up topics grounded in actual discussions.

### Research questions for a product FAQ

Find public product tutorials and announcements, inspect the selected videos, and read comments and reply threads to collect recurring questions without profiling commenters.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## YouTube video search in other agents

- [Amp](https://spiral.ai/integrations/amp/youtube-video-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/youtube-video-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/youtube-video-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/youtube-video-search)
- [Cline](https://spiral.ai/integrations/cline/youtube-video-search)
- [Codex](https://spiral.ai/integrations/codex/youtube-video-search)
- [Cursor](https://spiral.ai/integrations/cursor/youtube-video-search)
- [Devin](https://spiral.ai/integrations/devin/youtube-video-search)
- [dots](https://spiral.ai/integrations/dots/youtube-video-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/youtube-video-search)
- [Gemini](https://spiral.ai/integrations/gemini/youtube-video-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/youtube-video-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/youtube-video-search)
- [goose](https://spiral.ai/integrations/goose/youtube-video-search)
- [Grok](https://spiral.ai/integrations/grok/youtube-video-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/youtube-video-search)
- [Hermes](https://spiral.ai/integrations/hermes/youtube-video-search)
- [Instinct](https://spiral.ai/integrations/instinct/youtube-video-search)
- [Manus](https://spiral.ai/integrations/manus/youtube-video-search)
- [Muse](https://spiral.ai/integrations/muse/youtube-video-search)
- [n8n](https://spiral.ai/integrations/n8n/youtube-video-search)
- [Notion](https://spiral.ai/integrations/notion/youtube-video-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/youtube-video-search)
- [opencode](https://spiral.ai/integrations/opencode/youtube-video-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/youtube-video-search)
- [Raycast](https://spiral.ai/integrations/raycast/youtube-video-search)
- [VS Code](https://spiral.ai/integrations/vscode/youtube-video-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/youtube-video-search)
- [Zapier](https://spiral.ai/integrations/zapier/youtube-video-search)

## More Muse Code guides

- [YouTube video playback links](https://spiral.ai/integrations/muse-code/youtube-video-playback-links)
- [YouTube video sponsor detection](https://spiral.ai/integrations/muse-code/youtube-video-sponsor-detection)
- [YouTube video format details](https://spiral.ai/integrations/muse-code/youtube-video-format-details)
- [YouTube video transcript](https://spiral.ai/integrations/muse-code/youtube-video-transcript)
- [YouTube video details with fallback extraction](https://spiral.ai/integrations/muse-code/youtube-video-details-with-fallback-extraction)
- [Spiral media tools](https://spiral.ai/integrations/muse-code/spiral)

## Questions about YouTube video search in Muse Code

**Can Muse Code use YouTube video search?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run YouTube video search like any built-in tool.

**How much does YouTube video search cost in Muse Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.

**Do I need an Alexandria account to use YouTube video search in Muse Code?**

No. Spiral runs YouTube video search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up YouTube video search in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while YouTube video search runs?**

YouTube video search runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.

**Does a channel's uploads list include every video format?**

YouTube separates long-form videos, Shorts, and live streams into different channel tabs. Review all three when you need a channel's publishing activity across formats.

**Can search reveal every video a channel has published?**

Unlisted videos normally do not appear in YouTube search or the channel's Videos tab. An unlisted video can appear in search if someone adds it to a public playlist.

**How long can a YouTube Short be?**

YouTube Shorts can be up to three minutes long. A review limited to videos under one minute can therefore miss Shorts.

**Why might a channel have no Shorts or Live tab?**

YouTube says the tabs shown depend on the types of videos the channel produces. Videos, Shorts, and Live are possible tabs, rather than a fixed layout for every channel.

**Are all YouTube playlists public?**

Playlist owners can choose public, private, or unlisted visibility. Public playlists are available for anyone to watch and share.

