[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Twitch channel videos](https://spiral.ai/integrations/codex/twitch-channel-videos)

# How to Use Twitch channel videos in Codex

Fetch a Twitch channel’s videos with titles, publication dates, durations, view counts, thumbnails, and game details. Use it to build a replay list or compare available broadcasts by topic, length, and views.

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

## Prompts to try with Twitch channel videos in Codex

- Use Twitch channel videos for riotgames to add a replay table to this project with title, publication date, game, duration in minutes, and view count.
- Use Twitch channel videos for esl_cs to create a report in this project that totals returned video duration by game category.
- Use Twitch channel videos for gamesdonequick to build a thumbnail gallery ordered by publication date, with titles and durations.
- Use Twitch channel videos for ninja to add a comparison view showing the 10 most-viewed returned videos, their publication dates, and their durations.
- Use Twitch channel videos for playhearthstone to build a title search in this project and show matching video IDs, dates, and view counts.

## How to set up Twitch channel videos in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

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

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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 channel videos**: 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-user-videos",
    "input": {
      "handle": "ishowspeed"
    }
  }'
```

Then paste one of the prompts above: Codex finds Twitch channel videos on Spiral, shows the price and runs it.

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

## Twitch channel videos tools and prices

- [Twitch · User Videos](https://spiral.ai/tools/scrapecreators/scrapecreators/twitch-user-videos) (ScrapeCreators): Up to $0.0013 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| sort_by | TIME, VIEWS | — | Sort by |
| filter_by | HIGHLIGHT, ARCHIVE, UPLOAD | — | Filter by |

## What can you do with Twitch channel videos in Codex?

Build a Twitch replay browser with game categories, durations, thumbnails, and view counts. Use video IDs to update existing entries and publication dates to organize the available catalog.

### Replay index

Turn an esports channel’s returned videos into a replay index with titles, publication dates, durations, and thumbnails.

### Weekly editorial shortlist

Find newly published videos from a public gaming channel and give an editor a shortlist organized by game and duration.

### Video performance comparison

Compare view counts for videos published during the same period, keeping game categories and durations visible beside each result.

### Game coverage report

Count returned videos by game and total their durations to describe a channel’s available coverage of each title.

### Campaign title review

Search returned video titles for a campaign name and compile matching IDs, publication dates, and view counts for manual review.

### New replay alerts

Compare successive video lists by ID and report newly seen replays with their titles, game categories, and durations.

### Viewing shortlist

Select available videos that fit a viewer’s preferred game and maximum viewing time using game labels and video durations.

## Overview

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

## Twitch channel videos in other agents

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

## More Codex guides

- [Twitch channel schedule](https://spiral.ai/integrations/codex/twitch-channel-schedule)
- [Twitch clip details and video](https://spiral.ai/integrations/codex/twitch-clip-details-and-video)
- [Twitch Profile](https://spiral.ai/integrations/codex/twitch-profile)
- [Twitch clip transcript](https://spiral.ai/integrations/codex/twitch-clip-transcript)
- [Truth Social profile](https://spiral.ai/integrations/codex/truth-social-profile)
- [Twitch creator connected accounts](https://spiral.ai/integrations/codex/twitch-creator-connected-accounts)

## Questions about Twitch channel videos in Codex

**Can Codex use Twitch channel videos?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Twitch channel videos like any built-in tool.

**How much does Twitch channel videos cost in Codex?**

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 Codex plan is separate.

**Do I need a ScrapeCreators account to use Twitch channel videos in Codex?**

No. Spiral runs Twitch channel videos 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 channel videos in Codex?**

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

**Does Codex wait while Twitch channel videos runs?**

Twitch channel videos runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**How many Twitch videos can a page contain?**

ScrapeCreators documents up to 100 videos per page and pagination. A single page should not be described as a channel’s complete video history.

**How far back can Twitch past broadcasts go?**

Twitch retains past broadcasts for 60 days for Partners, Prime, and Turbo users, and 14 days for Affiliates. Available broadcast history therefore depends on Twitch’s retention window.

**Do Highlights and Uploads have the same limits as past broadcasts?**

Twitch gives Highlights and Uploads a combined 100-hour storage limit. Past broadcasts instead have retention periods based on the channel’s status.

**How fresh is the video list?**

ScrapeCreators says it fetches the latest available Twitch video information when a request is made. That describes request-time retrieval, rather than a daily or weekly dataset update.

**What information can I compare across videos?**

The provider documents titles, dates, durations, view counts, thumbnails, and broadcaster data. Its response example also includes game categories and measures video duration in seconds.

