[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [YouTube channel Shorts](https://spiral.ai/integrations/opencode/youtube-channel-shorts)

# How to Use YouTube channel Shorts in opencode

Returns a channel’s Shorts with video IDs, titles, and displayed view counts. Use it to review short-form publishing separately from channel videos, with about 30 Shorts per page.

|  |  |
| --- | --- |
| Model | YouTube channel Shorts |
| 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 Shorts in opencode

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

## How to set up YouTube channel Shorts 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 channel Shorts**: 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-get-channel-shorts",
    "input": {
      "channel_id": "UCuAXFkgsw1L7xaCfnd5JJOw"
    }
  }'
```

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

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

## YouTube channel Shorts tools and prices

- [YouTube Web V2 · Get channel shorts](https://spiral.ai/tools/tikhub/tikhub/youtube-web-v2-get-channel-shorts) (TikHub): $0.0013 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| channel_id |  | — | Channel ID (e.g., UCuAXFkgsw1L7xaCfnd5JJOw) |
| channel_url |  | — | Ignored if channel_id is provided) |
| need_format |  | true | Whether to format data |
| continuation_token |  | — | Pagination token |

## What can you do with YouTube channel Shorts in opencode?

Build a YouTube research report that connects channel references with publishing and community discussion. A coding agent can add the returned data to your project’s tables and implement parsing for raw search responses.

### Compare competing channels

Research NASA and ESA publishing: resolve channel identities, compare descriptions, discover relevant search results, and review videos, Shorts, and community announcements. Read post comments and replies for recurring audience questions, then attach recognizable channel links to the comparison.

### Prepare a product launch briefing

Build a briefing around a Google product announcement. Confirm the publishing channels and their descriptions, find related coverage through search, inventory videos and Shorts, and examine community announcements with their comment threads. Include channel links so editors can check the sources.

### Research creator sponsorship fit

Find public technology channels, reconcile their URLs, and review their descriptions and publishing topics. Compare video titles, Shorts, community posts, and aggregate discussion themes to prepare a sponsorship shortlist with source links. Use raw or structured search according to the research workflow.

### Plan an educational content series

Research Python teaching channels and their public catalogs. Use channel descriptions and identity lookups to organize sources, search for existing lessons, and compare videos with Shorts. Review community posts, comments, and replies for questions worth addressing in a lesson outline.

### Compare Shorts and video topics

Compare the titles in a channel’s Shorts and video listings to identify topics used in both formats. Turn the comparison into an editorial planning table.

## Overview

- [TikHub](https://spiral.ai/providers/tikhub)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## YouTube channel Shorts in other agents

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

## More opencode guides

- [YouTube channel ID lookup](https://spiral.ai/integrations/opencode/youtube-channel-id-lookup)
- [YouTube channel URL lookup](https://spiral.ai/integrations/opencode/youtube-channel-url-lookup)
- [YouTube channel ID from name](https://spiral.ai/integrations/opencode/youtube-channel-id-from-name)
- [YouTube channel community posts](https://spiral.ai/integrations/opencode/youtube-channel-community-posts)
- [YouTube channel ID from URL](https://spiral.ai/integrations/opencode/youtube-channel-id-from-url)
- [YouTube channel content search](https://spiral.ai/integrations/opencode/youtube-channel-content-search)

## Questions about YouTube channel Shorts in opencode

**Can opencode use YouTube channel Shorts?**

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

**How much does YouTube channel Shorts cost in opencode?**

$0.0013 per request. 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 a TikHub account to use YouTube channel Shorts in opencode?**

No. Spiral runs YouTube channel Shorts 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 Shorts in opencode?**

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

**Does opencode wait while YouTube channel Shorts runs?**

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

**Does YouTube search cover private and unlisted videos?**

Private videos do not appear in YouTube search. Unlisted videos also stay out of search unless someone adds them to a public playlist.

**How fresh are YouTube engagement counts?**

YouTube says metrics may take the first few hours after a video is published to appear. Counts on a new upload can therefore be incomplete.

**Is a YouTube handle the same as a channel name?**

Handles are unique identifiers that start with @ and are distinct from channel names. Each channel can have only one handle.

**Do older YouTube custom URLs still work?**

Existing custom URLs continue to work and redirect to the channel’s handle-based URL. YouTube no longer allows new custom URLs or changes to existing custom URLs.

**Is YouTube content available in every country?**

Video owners can restrict availability to certain countries or regions, usually for licensing reasons. YouTube can also block content to comply with local laws.

