[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [YouTube channel search](https://spiral.ai/integrations/gemini-cli/youtube-channel-search)

# How to Use YouTube channel search in Gemini CLI

Returns matching YouTube channels with names, IDs, handles, subscriber count text, descriptions, and URLs. Use it to discover public publishers by brand or topic, with pagination beyond the first results.

|  |  |
| --- | --- |
| Model | YouTube channel search |
| Available through | TikHub |
| Category | Social Media |
| Price | $0.0013 per request. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with YouTube channel search in Gemini CLI

- Use YouTube channel search for 'NASA' and build a publisher picker in this project showing returned names, handles, descriptions, and channel URLs.
- Use YouTube channel search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from YouTube channel search and tell me what changed since last week.
- Check YouTube channel search and summarize what you find in three bullet points.
- Pull the newest data from YouTube channel search and give me the result as a table.

## How to set up YouTube channel search in Gemini CLI

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

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI 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 channel 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": "tikhub",
    "model": "tikhub/youtube-web-v2-search-channels",
    "input": {
      "keyword": "Rick Astley"
    }
  }'
```

Then paste one of the prompts above: Gemini CLI finds YouTube channel search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini-cli

## YouTube channel search tools and prices

- [YouTube Web V2 · Search channels](https://spiral.ai/tools/tikhub/tikhub/youtube-web-v2-search-channels) (TikHub): $0.0013 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| keyword |  | — | Search keyword |
| need_format |  | true | Whether to format data |
| continuation_token |  | — | Pagination token |

## What can you do with YouTube channel search in Gemini CLI?

Build a YouTube reference table or media format inspector from returned channel, video, or stream records. A coding agent can map those records into the project's UI and handle empty titles, paginated channel results, and expiring media links.

### Build an educational video catalog

Find public educational publishers, enrich a supplied list of lesson URLs with video descriptions and attribution, and record available media formats for lessons approved for reuse.

### Prepare a campaign reference pack

Find brand and public creator channels, document supplied campaign videos, and compare stream formats for footage the production team has permission to use.

### Create a public publisher directory

Search topics such as astronomy, cooking, or software education and collect matching channel names, descriptions, handles, and URLs across result pages.

### Check publisher attribution

Compare channel candidates found by brand name with the channel identity returned for supplied video URLs. Give an editor the evidence needed to review attribution.

## Overview

- [TikHub](https://spiral.ai/providers/tikhub)
- [All Gemini CLI guides](https://spiral.ai/integrations/gemini-cli)

## YouTube channel search in other agents

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

## More Gemini CLI guides

- [YouTube channel profile](https://spiral.ai/integrations/gemini-cli/youtube-channel-profile)
- [YouTube channel uploads](https://spiral.ai/integrations/gemini-cli/youtube-channel-uploads)
- [YouTube channel playlists](https://spiral.ai/integrations/gemini-cli/youtube-channel-playlists)
- [YouTube channel videos](https://spiral.ai/integrations/gemini-cli/youtube-channel-videos)
- [YouTube channel live streams](https://spiral.ai/integrations/gemini-cli/youtube-channel-live-streams)
- [YouTube channel videos ScrapeCreators](https://spiral.ai/integrations/gemini-cli/youtube-channel-videos-scrapecreators)

## Questions about YouTube channel search in Gemini CLI

**Can Gemini CLI use YouTube channel search?**

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run YouTube channel search like any built-in tool.

**How much does YouTube channel search cost in Gemini CLI?**

$0.0013 per request. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.

**Do I need a TikHub account to use YouTube channel search in Gemini CLI?**

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

**How long does it take to set up YouTube channel search in Gemini CLI?**

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

**Does Gemini CLI wait while YouTube channel search runs?**

YouTube channel search runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.

**Does YouTube expose private videos publicly?**

Private videos and playlists are visible only to the owner and people the owner chooses. They do not appear in YouTube search results.

**How much does one YouTube channel search page cover?**

TikHub documents roughly 10–20 channels per page. Results exclude videos and playlists, and YouTube determines their order and quantity.

**How quickly do YouTube engagement counts appear?**

YouTube says metrics can take time to appear during the first few hours after publication. A newly published video's public counts may therefore lag its activity.

**Is a public YouTube video available in every country?**

No. Video owners can restrict availability to particular countries or regions, usually because of licensing rights.

**Are YouTube playback links permanent?**

TikHub documents a typical playback link lifetime of about six hours. An expired link needs to be generated again.

