# Twitch VOD Clip & Highlight Finder (Beta) (`stacklark/twitch-vod-highlight-finder`) Actor

Find Twitch VOD clip candidates and highlight timestamps from chat spikes. Compare existing clips, export review points and link moments across co-streams.

- **URL**: https://apify.com/stacklark/twitch-vod-highlight-finder.md
- **Developed by:** [Stacklark](https://apify.com/stacklark) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 87.5% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Twitch VOD Clip & Highlight Finder (Beta)

Find Twitch VOD highlight timestamps and clip candidates from Twitch chat reactions. Paste recording URLs and get ranked timestamps, suggested clip context, existing clip matches and optional links across streamer perspectives.

### First run

1. Paste a public recording into **Twitch VOD URL**, or enter up to five URLs in **Multiple VOD URLs**. The list takes priority if both are filled.
2. Choose the maximum candidates per recording. Optionally enable **Compare existing Twitch clips**, or **Synchronize streamer perspectives** for two or more recordings of the same event. Leave advanced settings at their defaults.
3. Start the Actor, then open **Open moment review** in Output. Click a timestamp to watch; use the ranked dataset for filtering and exports.

### Reading the results

The review page groups ranked suggestions by recording and displays timestamp links, context boundaries, reaction scores, clip overlaps and review notes. Scores compare reactions within one recording; they are not confidence percentages. CSV, WebVTT review cues and activity graphs are linked when exports are enabled.

**Existing clips:** open the linked clips to compare them with a suggestion. Zero means no overlap in the fetched clips, not proof of an original moment. Unknown means the lookup was not requested or could not complete. Optional Twitch Client ID and app access token inputs are available for clip comparison. Where shared credentials are available, you can leave overrides empty. Missing or expired tokens leave clip counts unknown.

**Paired perspectives:** each shared moment links into every recording covering that time. “Detected spike” means that recording had a qualifying chat reaction. “Timeline match” means it covers the moment without its own qualifying spike. Creation-time alignment is approximate and may leave a co-stream delay. Optional recording start offsets correct known delays; for example `[0,60]` means the second recording starts 60 seconds after the first.

### Real example

With **Multiple VOD URLs** set to these recordings and synchronization enabled:

```json
{
  "vodUrls": [
    "https://www.twitch.tv/videos/2929388789",
    "https://www.twitch.tv/videos/2929417412"
  ],
  "maxHighlights": 3,
  "synchronizePerspectives": true
}
```

A saved-data check linked [BLAST at 02:10:51](https://www.twitch.tv/videos/2929388789?t=2h10m51s) with [fl0m at 01:02:39](https://www.twitch.tv/videos/2929417412?t=1h2m39s), showing the same Ancient round at 12–11. Both chats reacted. A small stream delay remained visible. Other suggestions included the opening arena show: a reaction spike can be interesting without being a gameplay highlight. These are observed examples, not guaranteed outputs for a later run; replay availability and candidate limits can change the results.

For a single-recording example, use `https://www.twitch.tv/videos/2928076508`, maximum 3, and clip comparison enabled. The verified run analyzed 3,728 messages and returned three candidates with 1, 3 and 0 existing clip overlaps.

### If a result needs adjustment

- Too much opening/countdown content: set **Ignore opening seconds** to its known ending time.
- Too few suggestions: lower activity thresholds slightly, or try a relevant keyword.
- No candidates: no chat spikes passed your settings. This does not prove nothing interesting happened.
- Missing recording or chat: check Run summary. Deleted, restricted or unavailable replay can fail; all-recording failures mark the run failed.

The default limit is 90 seconds per recording, four chat-download connections, five recordings, and at most 20 suggestions per recording. Video is not downloaded or edited. Numeric voting bursts are suppressed by default. Candidate quality, chat completeness and clip boundaries need editorial review.

### Pricing

#### Is the Twitch VOD highlight finder free?

During the free beta, Stacklark charges no developer fee per recording or candidate. Apify platform usage charges still apply and depend on runtime, memory and storage. There is no guaranteed number of free recordings: your available Apify credits and recording size determine the cost. Start with one VOD and a small candidate limit. Beta pricing may change; check the Pricing tab before running.

### FAQ

#### Does this create or download video clips?

No. It returns candidate timestamps, context boundaries, review links and optional exports. Open the recording to verify a moment, then use your editing tool to cut it.

#### Can I run this through an API?

Yes. Use the Actor's API tab for Python, JavaScript or curl examples. Save inputs as an Apify task for reuse. Use a fresh public VOD URL each time; expired recordings may fail.

#### Does every chat spike mean a good highlight?

No. Voting, countdowns and unrelated reactions can also cause spikes. Adjust the opening exclusion or thresholds and review the actual footage. Scores are relative reaction measures, not accuracy probabilities.

#### Do I need Twitch credentials?

Chat-based candidate finding does not require your Twitch account login. Optional existing-clip comparison uses app credentials where configured; missing or expired credentials leave clip counts unknown. Never put secrets in support reports.

### More Stacklark tools

| Tool | Use it for |
|---|---|
| [Twitch VOD Clip & Highlight Finder](https://apify.com/stacklark/twitch-vod-highlight-finder) | Candidate timestamps from Twitch chat reactions, clip comparison and co-stream review |
| [Baltic & Latvian Bookmaker Odds](https://apify.com/stacklark/baltic-bookmaker-odds) | Pre-match odds snapshots, structured exports and cross-book comparisons |

# Actor input Schema

## `vodUrl` (type: `string`):

Paste a public Twitch recording URL. For several recordings, use the list below instead.

## `vodUrls` (type: `array`):

Up to five URLs. This list takes priority over the single URL. For paired perspectives, use recordings of the same event.

## `maxHighlights` (type: `integer`):

Maximum nonoverlapping candidate windows per recording; fewer may qualify.

## `compareExistingClips` (type: `boolean`):

Show existing clip overlaps beside each candidate. Optional credentials can be entered below. Missing or expired credentials leave counts unknown.

## `synchronizePerspectives` (type: `boolean`):

Link moments across two to five recordings of the same event. Enable this when using Multiple VOD URLs. Timing is approximate.

## `skipIntroSeconds` (type: `integer`):

Optional: exclude a known starting-soon/countdown section. This is a manual boundary, not automatic video detection.

## `detectionMode` (type: `string`):

Select activity spikes, literal keyword matches, or either.

## `keywords` (type: `array`):

Optional literal phrases, required for keyword or either mode.

## `minMultiplier` (type: `number`):

Required activity relative to the guarded local median. Lower values are more sensitive.

## `minZ` (type: `number`):

Minimum deviation from a guarded local activity baseline.

## `reactionLagSeconds` (type: `integer`):

Estimate how many seconds chat reacts after the underlying event.

## `preRollSeconds` (type: `integer`):

Context before the estimated candidate timestamp.

## `postRollSeconds` (type: `integer`):

Context after the estimated candidate timestamp.

## `suppressVoteBursts` (type: `boolean`):

In activity mode, suppress groups where at least 60% of eight or more messages are one- or two-digit votes. Keyword modes retain them with a warning.

## `perspectiveStartOffsetsSeconds` (type: `array`):

One number per distinct Batch VOD URL: when its recording starts relative to shared time zero, for example \[0,60]. Without offsets, recording creation timestamps give an approximate alignment.

## `synchronizationToleranceSeconds` (type: `integer`):

Maximum time difference for grouping candidate reactions across recordings.

## `exportArtifacts` (type: `boolean`):

Save portable candidate CSV, review cues, activity CSV and SVG graph.

## `downloadTimeoutSeconds` (type: `integer`):

Stop a single replay download after this many seconds.

## `downloadThreads` (type: `integer`):

One to four upstream downloader connections. Higher concurrency may be faster but can hit platform limits.

## `twitchClientId` (type: `string`):

Your Twitch application Client ID. Optional environment alternative: TWITCH_CLIENT_ID.

## `twitchAccessToken` (type: `string`):

Twitch app access token, encrypted by Apify. Optional environment alternative: TWITCH_ACCESS_TOKEN. Never returned in results.

## Actor input object example

```json
{
  "vodUrl": "https://www.twitch.tv/videos/2928076508",
  "maxHighlights": 5,
  "compareExistingClips": false,
  "synchronizePerspectives": false,
  "skipIntroSeconds": 0,
  "detectionMode": "activity",
  "keywords": [],
  "minMultiplier": 3,
  "minZ": 4,
  "reactionLagSeconds": 5,
  "preRollSeconds": 15,
  "postRollSeconds": 30,
  "suppressVoteBursts": true,
  "synchronizationToleranceSeconds": 15,
  "exportArtifacts": true,
  "downloadTimeoutSeconds": 90,
  "downloadThreads": 4
}
```

# Actor output Schema

## `review` (type: `string`):

No description

## `highlights` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `synchronizedMoments` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "vodUrl": "https://www.twitch.tv/videos/2928076508"
};

// Run the Actor and wait for it to finish
const run = await client.actor("stacklark/twitch-vod-highlight-finder").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "vodUrl": "https://www.twitch.tv/videos/2928076508" }

# Run the Actor and wait for it to finish
run = client.actor("stacklark/twitch-vod-highlight-finder").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "vodUrl": "https://www.twitch.tv/videos/2928076508"
}' |
apify call stacklark/twitch-vod-highlight-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,stacklark/twitch-vod-highlight-finder"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/QsgyhDPR2abAqOqYo/builds/BLbGigb4dDYMNfCI4/openapi.json
