# Instagram Reels Swipe File: Scripts Ranked by Performance (`reelscriber/reels-swipe-file`) Actor

Every reel's script from any creator, ranked by what performed. Transcript, hook, timestamps, likes, comments and an engagement outlier score per reel (likes vs. the creator's median).

- **URL**: https://apify.com/reelscriber/reels-swipe-file.md
- **Developed by:** [Devin Rasmussen](https://apify.com/reelscriber) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $12.00 / 1,000 reel transcribed

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 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

## Instagram Reels Swipe File

Every reel's script from any creator, ranked by what performed.

Give it Instagram profiles (or single reel links). For each reel it returns the full transcript, the hook (the first sentence spoken), timestamped segments, the caption, likes, comments, the post date and an **engagement outlier score**: how this reel's engagement (likes, or views when available) did against the median of the creator's other reels in the same run. Sort a creator's reels by it and the first rows are the scripts that worked best for them.

Built for short-form ghostwriters, scriptwriters, social media agencies and creators researching a niche before writing next week's scripts.

### What you get per reel

| Field | What it is |
|---|---|
| `url`, `shortcode` | The reel |
| `profile`, `owner` | The profile you asked for, and the account that posted it |
| `postedAt` | Post date (YYYY-MM-DD) |
| `durationSec` | Length of the reel |
| `views`, `likes`, `comments` | As Instagram shows them logged out. `views` is null when the page doesn't carry it (usually) |
| `engagementOutlierScore` | Engagement outlier: this reel's likes over the median likes of the creator's other reels in this run (views are used instead when the page carries them; `engagementOutlierBasis` says which). 3.0 means three times the creator's typical reel. Null for reels under 72 hours old |
| `scoreStatus` | `scored`, `too_new_to_score` (posted under 72 hours before the run, still gathering engagement, so unscored and left out of everyone's median) or `not_enough_data` (fewer than two comparable reels, or no count on the page) |
| `postedAtMs` | Post time in epoch milliseconds, the basis for the 72 hour check |
| `hook` | First sentence of the transcript |
| `transcript` | Full script |
| `segments` | `{ start, end, text }` per spoken line, in seconds |
| `language` | Detected language |
| `caption` | The reel's caption |
| `error`, `errorMessage` | Set only when that reel could not be done: a short code (see Reliability) and a one-line reason. Failed reels are not charged |

Each profile's reels come back best engagement outlier first, unscored reels after them.

### Input example

```json
{
  "profiles": ["hubermanlab", "https://www.instagram.com/theordinary/"],
  "reelUrls": ["https://www.instagram.com/reel/DcwAWXDOXss/"],
  "maxReelsPerProfile": 12,
  "minDate": "2026-09-01"
}
```

### Output example

```json
{
  "url": "https://www.instagram.com/reel/DcwAWXDOXss/",
  "shortcode": "DcwAWXDOXss",
  "profile": "hubermanlab",
  "owner": "hubermanlab",
  "postedAt": "2026-11-20",
  "durationSec": 74.2,
  "views": null,
  "likes": 41200,
  "comments": 610,
  "engagementOutlierScore": 2.4,
  "engagementOutlierBasis": "likes",
  "scoreStatus": "scored",
  "hook": "Most people get morning light completely wrong.",
  "transcript": "Most people get morning light completely wrong. Here's what the research says...",
  "segments": [{ "start": 0, "end": 2.6, "text": "Most people get morning light completely wrong." }],
  "language": "english",
  "caption": "Morning light, explained...",
  "error": null,
  "errorMessage": null
}
```

### Pricing

Pay per result, no subscription:

- **$0.012 per reel transcribed** (covers reels up to 3 minutes), so **$12 per 1,000 reels**
- **$0.002 per extra minute** past 3 minutes, per started minute

A reel that fails (removed, private, or no audio) is returned with an `error` code and costs nothing. Set a maximum charge on the run and it stops before going over.

### Reliability

One reel that cannot be read never ends the run. Every page fetch, audio download and transcription call has its own timeout and is retried with exponential backoff and jitter when the failure is temporary (rate limits, server errors, dropped connections, timeouts), waiting as long as the server's `Retry-After` asks (at least 50 ms between tries, and a retry on a fresh proxy session uses the normal backoff instead). Audio downloads get two tries per route. Missing or private reels are never retried. When Instagram answers with a block (a 429, a login wall or a challenge page; a login wall means a redirect to the login page, a login form or `require_login` in the page data, so private profiles and photo-only codes come back as `no_data` or `not_found` without rotating) the next try goes out on a fresh proxy session, and then on the next proxy provider if that fails too.

A reel that still fails after its retries comes back as an item with `error` set to one of these codes and a short `errorMessage`, and is not charged:

| Code | Meaning |
|---|---|
| `not_found` | Removed, private or never existed |
| `blocked` | Instagram kept blocking every proxy session |
| `no_data` | The page loaded but carried no reel data |
| `timeout` | A fetch or transcription call kept timing out |
| `page_failed` | The reel or profile page could not be read for another reason |
| `audio_failed` | The audio could not be downloaded |
| `stt_failed` | Transcription failed on every engine |
| `too_large` | The media is over the 25 MB transcription cap |
| `before_min_date` | A single reel posted before your `minDate` |
| `charge_limit` | The run's maximum charge was reached |
| `internal` | An unexpected error |

The log has one JSON line per event with fields such as `event`, `reelCode`, `profile`, `attempt`, `status`, `durationMs`, `bytes` and the proxy `session`. Every retry, rotation and failure is an event, so a failed reel can be explained from the log alone. Proxy credentials, API keys and signed URL parameters are redacted. Set the `debug` input (or `LOG_LEVEL=debug`) to also log every fetch.

When the run ends, a `RUN_SUMMARY` record in the key-value store holds the counts by outcome, retries by stage, proxy rotations, bytes, time spent per stage, resumed work, cost and the list of failures. The same figures are logged as a one-line summary.

If Apify migrates or restarts the run, it picks up where it left off. Progress is saved to the `STATE` record after each profile, every few reels, and when Apify sends its persist or migrating event. On start the run skips profiles and reels already in the dataset, reuses reels it finished but had not output yet so they are not transcribed again (a charge made after the last save can repeat, though the idempotency key makes Apify bill it once), and restores the running charge total so the maximum charge holds across migrations.

Pushes are at-most-once. Before each profile or batch goes to the dataset its marker is saved as `pushing`, and a resumed run treats `pushing` as pushed. If the run dies between that save and the push landing, that one group is lost rather than duplicated, and its reels are not output again. Reels charged before such a crash stay charged.

Error messages in items and in `RUN_SUMMARY` have signed URL parameters and proxy credentials redacted. The run closes its connection to Apify's event stream when it ends, so it exits as soon as the work is done.

### Use it with AI agents

Call this actor from Claude, ChatGPT or any MCP client through Apify's hosted MCP server: `https://mcp.apify.com?tools=reelscriber/reels-swipe-file`

Or over REST with `run-sync-get-dataset-items`. The agent guide, with input and output fields, error codes and a curl example, is at https://reelscriber.com/agents.md. A ready-made skill, "niche-hooks", finds the 10 best hooks in a niche this week: https://reelscriber.com/skills/niche-hooks/SKILL.md

More at https://reelscriber.com.

### Limits

- Public profiles only, read logged out. Instagram shows a logged-out visitor a profile's latest 12 posts, so a profile gives at most its 12 latest reels.
- The engagement outlier score compares reels within one run, so pull at least 5 reels per profile for it to mean much. Reels under 72 hours old are marked `too_new_to_score` and skipped when computing the median.
- Reels with only music and no speech come back with an empty or near-empty transcript.

# Actor input Schema

## `profiles` (type: `array`):

Handles (hubermanlab, @hubermanlab) or profile URLs. Each profile's recent reels are transcribed and ranked against each other.

## `reelUrls` (type: `array`):

Single reels to transcribe, as URLs or shortcodes.

## `maxReelsPerProfile` (type: `integer`):

Upper bound per profile. Logged out, Instagram shows a profile's latest 12 posts, so a profile gives at most 12 reels today.

## `minDate` (type: `string`):

Only reels posted on or after this date (YYYY-MM-DD).

## `includeCollabs` (type: `boolean`):

A collab shows on every co-author's grid. Off by default, so a profile's swipe file holds only its own reels.

## `debug` (type: `boolean`):

Also log every page and audio fetch with its status, size, timing and proxy session. Off by default.

## Actor input object example

```json
{
  "profiles": [
    "hubermanlab"
  ],
  "maxReelsPerProfile": 30,
  "includeCollabs": false,
  "debug": false
}
```

# Actor output Schema

## `swipeFile` (type: `string`):

No description

## `runSummary` (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 = {
    "profiles": [
        "hubermanlab"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("reelscriber/reels-swipe-file").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 = { "profiles": ["hubermanlab"] }

# Run the Actor and wait for it to finish
run = client.actor("reelscriber/reels-swipe-file").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 '{
  "profiles": [
    "hubermanlab"
  ]
}' |
apify call reelscriber/reels-swipe-file --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,reelscriber/reels-swipe-file"
        }
    }
}
```

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/9KhnOGqKAqTm5x64t/builds/Pm44eqQ7xbea65tdG/openapi.json
