[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Twitch clip details and video](https://spiral.ai/integrations/opencode/twitch-clip-details-and-video)

# How to Use Twitch clip details and video in opencode

Fetch a Twitch clip's title, view count, broadcaster details, thumbnail, and video links. Use it to inspect a known clip, compare its views over time, or prepare footage you have permission to reuse.

|  |  |
| --- | --- |
| Model | Twitch clip details and video |
| Available through | ScrapeCreators |
| Category | Social Media |
| Price | Up to $0.0013 per run. |
| Returns | video, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Twitch clip details and video in opencode

- Use Twitch clip details and video for https://clips.twitch.tv/CloudySavageMarjoramRuleFive--ErzsYbE7UWvgCMQ and add a review card to this project's existing UI with its thumbnail, title, duration, and views.
- Use Twitch clip details and video for https://clips.twitch.tv/AwkwardHelplessSalamanderSwiftRage and create a JSON fixture from the returned result for our clip preview component.
- Use Twitch clip details and video for https://clips.twitch.tv/CloudySavageMarjoramRuleFive--ErzsYbE7UWvgCMQ and adapt our media selector to display the returned resolutions and frame rates.
- Use Twitch clip details and video for https://clips.twitch.tv/AwkwardHelplessSalamanderSwiftRage and add its reported views to our campaign dashboard using the project's existing storage pattern.
- Use Twitch clip details and video for https://clips.twitch.tv/CloudySavageMarjoramRuleFive--ErzsYbE7UWvgCMQ and check how our clip detail component handles the returned source video and offset.

## How to set up Twitch clip details and video 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 Twitch clip details and video**: 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": "scrapecreators",
    "model": "scrapecreators/twitch-clip",
    "input": {
      "url": "https://clips.twitch.tv/CloudySavageMarjoramRuleFive--ErzsYbE7UWvgCMQ"
    }
  }'
```

Then paste one of the prompts above: opencode finds Twitch clip details and video on Spiral, shows the price and runs it.

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

## Twitch clip details and video tools and prices

- [Twitch clip download](https://spiral.ai/tools/scrapecreators/scrapecreators/twitch-clip) (ScrapeCreators): Up to $0.0013 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| cache_max_age | 1d, 3d, 7d, 14d, 30d | — | Return ScrapeCreators' cached answer when it is at most this old (0 credits, with `cached: true` and `cached_at`). |

## What can you do with Twitch clip details and video in opencode?

Build a Twitch clip review screen populated with real thumbnails, titles, durations, and view counts. A coding agent can connect those results to the project's existing components and add comparisons between saved observations.

### Prepare an editorial clip brief

Turn a supplied public clip link into a brief with its title, broadcaster, category, duration, and thumbnail so an editor can decide whether to review it.

### Measure views after a campaign

Revisit approved campaign clip links and calculate the change in reported views between checks.

### Prepare authorized footage for editing

Inspect the returned video choices for clips you own or have permission to reuse, then select an available resolution for the edit.

### Build a clip review queue

Populate a review queue from supplied Twitch clip links, using thumbnails, titles, broadcasters, and durations to help reviewers choose what to watch.

### Compare submitted highlights

Compare a defined shortlist of tournament or creator highlights by reported views and duration before choosing clips for editorial review.

### Check broadcast references

Inspect source video references and offsets for selected clips. Identify clips whose original broadcast context is unavailable before planning a longer edit.

## Overview

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

## Twitch clip details and video in other agents

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

## More opencode guides

- [Twitch channel videos](https://spiral.ai/integrations/opencode/twitch-channel-videos)
- [Twitch clip transcript](https://spiral.ai/integrations/opencode/twitch-clip-transcript)
- [Twitch channel schedule](https://spiral.ai/integrations/opencode/twitch-channel-schedule)
- [Twitch creator connected accounts](https://spiral.ai/integrations/opencode/twitch-creator-connected-accounts)
- [Twitch Profile](https://spiral.ai/integrations/opencode/twitch-profile)
- [Twitch creator profile](https://spiral.ai/integrations/opencode/twitch-creator-profile)

## Questions about Twitch clip details and video in opencode

**Can opencode use Twitch clip details and video?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Twitch clip details and video like any built-in tool.

**How much does Twitch clip details and video cost in opencode?**

Up to $0.0013 per run. 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 ScrapeCreators account to use Twitch clip details and video in opencode?**

No. Spiral runs Twitch clip details and video on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Twitch clip details and video in opencode?**

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

**Does opencode wait while Twitch clip details and video runs?**

Twitch clip details and video runs in the background. opencode starts the run, checks on it and gives you the video, json when it's ready.

**Does this cover private Twitch content?**

ScrapeCreators describes its source coverage as publicly available data. This supports lookup of public Twitch clips, without establishing access to private or restricted content.

**How fresh are the clip details?**

ScrapeCreators says cache misses fetch live data from Twitch. For a clip created during an ongoing broadcast, Twitch says its source video offset can still take minutes to appear.

**Is every clip available in 1080?**

The documented example includes a 1080 video choice and frame rate information. That example does not establish a minimum resolution for every Twitch clip.

**Can a clip exist without its original broadcast video?**

Yes. ScrapeCreators shows a clip with a null source video and offset, and Twitch documents that the original video identifier can be empty when that video is unavailable.

**What does the view count measure?**

Twitch defines it as the number of times the clip has been viewed. Use that definition when reporting clip performance; it does not establish a count of unique viewers.

