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

# How to Use YouTube Shorts search results in opencode

Returns a cleaned Shorts list with video IDs, titles, views, channels, thumbnails, and URLs. Use it for research tables and shortlists without parsing YouTube's raw response; non-Shorts content is filtered out.

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

## Prompts to try with YouTube Shorts search results in opencode

- Use YouTube Shorts search results for 'NASA Artemis' and add a table of returned titles, channels, view counts, and video links to this project's research page.
- Use YouTube Shorts search results to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from YouTube Shorts search results and tell me what changed since last week.
- Check YouTube Shorts search results and summarize what you find in three bullet points.
- Pull the newest data from YouTube Shorts search results and give me the result as a table.

## How to set up YouTube Shorts search results 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 Shorts search results**: 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-shorts-search-v2",
    "input": {
      "keyword": "coding tips"
    }
  }'
```

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

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

## YouTube Shorts search results tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| keyword |  | — | Search keyword (required for first request) |
| sort_by | relevance, upload_date, view_count, rating | — | Sort by |
| upload_date | last_hour, today, this_week, this_month, this_year | — | Upload date filter |
| continuation_token |  | — | Continuation token for next page |

## What can you do with YouTube Shorts search results in opencode?

Build a YouTube research view that turns retrieved text, content links, and public engagement data into reviewable records. A coding agent can adapt the project's parser and presentation to the specific YouTube data you choose.

### Plan a tutorial from audience questions

Combine autocomplete phrases, Shorts examples, community announcements, related videos, and comment discussions to choose a tutorial topic and outline the questions it should answer.

### Review a public product launch

Compare a brand's community announcement, launch-video captions, audience questions, Shorts coverage, related videos, and autocomplete phrases. Separate what the brand announced from what viewers asked about.

### Draft a product education FAQ

Collect recurring questions from comments and replies, compare them with tutorial captions and community posts, and use search suggestions and Shorts examples to identify gaps in the explanation.

### Build a course viewing list

Find lesson candidates through Shorts searches, autocomplete, and related videos. Review available captions and educators' community posts to write a viewing list with a clear purpose for each selection.

## Overview

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

## YouTube Shorts search results in other agents

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

## More opencode guides

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

## Questions about YouTube Shorts search results in opencode

**Can opencode use YouTube Shorts search results?**

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

**How much does YouTube Shorts search results cost in opencode?**

$0.0026 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 Shorts search results in opencode?**

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

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

**Does opencode wait while YouTube Shorts search results runs?**

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

**Can public YouTube search reveal private videos?**

Private videos do not appear in YouTube search results. Unlisted videos generally stay out of search, with an exception when someone adds one to a public playlist.

**How fresh are YouTube engagement counts?**

YouTube says metrics may take time to appear during the first few hours after publication. Counts can also slow down, freeze, or change while YouTube verifies engagement.

**Why can YouTube recommendations differ between viewers?**

YouTube uses viewing habits and other signals to personalize recommendations. For Up Next, the video currently being watched is the main recommendation signal.

**Does language or region affect YouTube's suggested search terms?**

Yes. TikHub documents different autocomplete suggestions by language and region, typically returning 10–20 phrases for a query.

**Are YouTube's automatic captions accurate enough to quote?**

YouTube warns that automatic captions can misrepresent speech because of accents, mispronunciations, dialects, or background noise. Check the relevant passage before using it as a direct quote.

