DEV Community

Aurelix Solutions
Aurelix Solutions

Posted on

Instagram reel to text in Python: transcripts, hooks and captions, no login

Content marketers, agencies and creators study reels that work: what is said in the first seconds, how the script is built, which call to action closes it. Watching reels and typing out what they say does not scale past a few, and the caption rarely holds the script.

This post turns Instagram reel links into transcripts in Python, lines up the hooks of the most-liked reels, and sets up a daily run that transcribes only reels it has not seen before.

Disclosure: I'm Aurelix, and I built Instagram Reel to Text, the tool used here. It's a paid tool (prices below).

What each row holds

One row per reel link, with a status: ok, partial (stopped at your minute cap, your maximum charge or the run timeout), or why there is no transcript (no_speech, no_audio, not_video, not_found, not_accessible, refused, invalid_input, ...).

  • Transcript: text, segments (start, end, text in seconds), hook (what is said in the first 3 seconds), language, word_count, optional srt, optional English translation.
  • Reel: url, code, username, profile_url, caption, hashtags, posted_at, duration_seconds, like_count, comment_count, audio_title, original_audio.
  • Billing: transcribed_seconds, minutes_charged.

Emails, phone numbers and other people's @handles in captions and transcripts are masked; the creator's own username is kept.

Reels to transcripts

pip install apify-client
Enter fullscreen mode Exit fullscreen mode
import os

from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("aurelix/instagram-reels-transcripts").call(
    run_input={"reelUrls": [
        "https://www.instagram.com/reel/DfhyUf-vhkA/",
        "https://www.instagram.com/reel/DfxzS-tBQCB/",
    ]}
)
rows = list(client.dataset(run["defaultDatasetId"]).iterate_items())

for r in rows:
    if r["status"] in ("ok", "partial"):
        print(f"@{r['username']:14} {r['duration_seconds']:>6.0f}s {r['language']}  {r['text'][:80]}")
    else:
        print(f"{r['input']:45} {r['status']}: {r['error']}")
Enter fullscreen mode Exit fullscreen mode

Links in any common form work: /reel/<code>/, /reels/<code>/, /p/<code>/, /<user>/reel/<code>/, with tracking parameters, or the bare code. Speech to text runs inside the tool with the open-source Whisper model, so a one-minute reel comes back in about 20 seconds.

How the most-liked reels open

ok = [r for r in rows if r["status"] == "ok"]
for r in sorted(ok, key=lambda r: r["like_count"] or 0, reverse=True)[:10]:
    print(f"{r['like_count'] or 0:>9,}  {r['hook']!r}")
Enter fullscreen mode Exit fullscreen mode

The hook column is the speech in the first 3 seconds. Lined up by likes, it shows how the reels that travel start, which is what most script research is after.

Reels with only music

Many reels have no speech: dance, product shots, silent comedy. They come back as no_speech rows instead of an empty transcript, so you can tell "nothing was said" from "something failed":

from collections import Counter

print(Counter(r["status"] for r in rows))
Enter fullscreen mode Exit fullscreen mode

The first reel without a transcript in a run is free; after that each costs $0.003 for reading and listening to it.

Only new reels, every day

Keep your reel list in one place (a sheet, a file) and add links as you find them:

run_input = {
    "reelUrls": reel_links,
    "incremental": True,
    "stateKey": "competitor-reels",
    "slackWebhookUrl": "https://hooks.slack.com/services/...",
}
Enter fullscreen mode Exit fullscreen mode

The first run transcribes every link and remembers it. Later runs transcribe only links earlier runs did not return, so each reel is billed once. Keep stateKey set so the memory stays the same while the list grows. Save the input as a task in the Apify Console and schedule it daily; Slack gets a short digest when there is something new.

Why this tool

  • Billed per audio minute actually transcribed; refused or failed pages are free.
  • The hook in its own column, next to the caption, likes and comments.
  • Every link gets a row: a transcript, or a status that says why not.
  • Timestamped segments, SRT subtitles and translation to English on request.
  • No login, cookies or account: it reads public reel pages as a logged-out visitor does.

Limits

  • Reel links only. This tool doesn't cover creator profiles, hashtags or search; open the reels you want and give their links.
  • No view counts: a logged-out reel page shows likes and comments, not plays.
  • No speaker labels, and Whisper base mishears some names, accents and speech over loud music.
  • Reels from private accounts, removed reels and reels Instagram shows only to logged-in users get a status row.
  • If Instagram refuses several reels in a row, the run stops with a BLOCKED status rather than retrying without end.

Cost

$12.00 per 1,000 audio minutes ($0.012 per started minute) on the free plan and the same on paid Apify plans (no tier discount), plus a start fee of $0.006 per run: a 40-second reel costs $0.012, a 2-minute reel $0.024. Reels without a transcript are free for the first one in a run, then $0.003 each. The current prices are on the Store page; Apify's free plan includes $5 of credit a month, enough for about 410 audio minutes.

Use it from an AI assistant

The tool also works through Apify's hosted MCP server, so Claude, ChatGPT or Cursor can run it from a request like "transcribe these 5 Instagram reels and list the hook of each one". Server URL: https://mcp.apify.com/?tools=aurelix/instagram-reels-transcripts.

Links

Top comments (0)