[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [YouTube Video comments Alexandria](https://spiral.ai/integrations/opencode/youtube-video-comments-alexandria)

# How to Use YouTube Video comments Alexandria in opencode

Reads the public comments on a video. Use it to find audience questions and reactions, then inspect individual reply threads when a discussion needs more context.

|  |  |
| --- | --- |
| Model | YouTube Video comments Alexandria |
| 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 comments Alexandria in opencode

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

## How to set up YouTube Video comments Alexandria in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 comments Alexandria**: 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/video_comments",
    "input": {
      "video_id": "<video_id>"
    }
  }'
```

Then paste one of the prompts above: opencode finds YouTube Video comments Alexandria on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## YouTube Video comments Alexandria tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | A youtube.com watch or youtu.be URL; the video id is taken from it. |
| sort | top, newest | top | Comment ordering for the first page. |
| video_id |  | — | YouTube video id, 11 URL-safe characters. Pattern: ^[A-Za-z0-9_-]{11}$. |
| continuation |  | — | Continuation token returned by a previous call of this function. |

## What can you do with YouTube Video comments Alexandria in opencode?

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 opencode guides](https://spiral.ai/integrations/opencode)

## YouTube Video comments Alexandria in other agents

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

## More opencode guides

- [YouTube Shorts search results](https://spiral.ai/integrations/opencode/youtube-shorts-search-results)
- [YouTube Video details Alexandria](https://spiral.ai/integrations/opencode/youtube-video-details-alexandria)
- [YouTube Search Typeahead](https://spiral.ai/integrations/opencode/youtube-search-typeahead)
- [YouTube Web Get channel short videos](https://spiral.ai/integrations/opencode/youtube-web-get-channel-short-videos)
- [YouTube Playlist](https://spiral.ai/integrations/opencode/youtube-playlist)
- [YouTube Web Get related videos](https://spiral.ai/integrations/opencode/youtube-web-get-related-videos)

## Questions about YouTube Video comments Alexandria in opencode

**Can opencode use YouTube Video comments Alexandria?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run YouTube Video comments Alexandria like any built-in tool.

**How much does YouTube Video comments Alexandria cost in opencode?**

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

**Do I need an Alexandria account to use YouTube Video comments Alexandria in opencode?**

No. Spiral runs YouTube Video comments Alexandria 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 comments Alexandria in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while YouTube Video comments Alexandria runs?**

YouTube Video comments Alexandria runs in the background. opencode 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.

