agentleFS
pomexplicapomexplica/pomlabs/skills/video-transcripts/SKILL.md

video-transcripts

Skill0 starsChanged 3 days agoMITView on GitHub

Gets the transcript of a public YouTube, Instagram, TikTok or Facebook video as text, with optional timestamps, subtitle files (SRT/VTT) and translation. Use when the user shares a video, Short or Reel link and wants it summarized, quoted, translated, turned into notes or captions, or when a batch of video URLs needs transcripts for research or RAG. Runs on Apify with the user's own APIFY_TOKEN; pay per transcript, no login to the video platforms.

  • Sends data out

7 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use redo, cleanup and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Scylla23Skill

    redo

    Re-run the last routed task one model tier up (haiku → sonnet → opus → fable). User-invoked escalation when the previous result missed. Pass --dry-run to preview without running.

    Also in 3 projects that use this

  • MicrosoftSkill

    cleanup

    Also in 3 projects that use this

  • VercelSkill

    test-audit

    Invoke whenever writing, changing, reviewing, or sweeping tests in the eve repository. Authoring gate for new tests plus audit workflow for low-value, slow, implementation-coupled, or duplicative tests and the test-only production seams they demand.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    2. API token and curl: When those tools are not available, use the setup and the curl calls below.

    line 28
  2. Distinctive:

    Read the token from the environment.

    line 35
  3. Distinctive:

    If the token is missing, stop and tell the user exactly that.

    line 41

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Video transcripts (YouTube, Instagram, TikTok, Facebook)

Two Apify Actors by Pom Labs return the spoken text of public videos as JSON. This skill is written and maintained by Pom Labs, the author of both Actors.

Quick reference

YouTubeInstagram, TikTok, Facebook
Actorpomlabs~youtube-transcript-scraperpomlabs~social-video-transcript
Source of textThe video's caption tracksPlatform captions when present, otherwise speech-to-text
Price$0.003 per transcript$0.01 per transcript (first minute) + $0.008 per extra minute of speech-to-text
Translation+$0.002 per language+$0.002 per language
AuthAuthorization: Bearer $APIFY_TOKENsame
Typical time5 to 15 s per video10 to 60 s per video

Failed or skipped videos are not charged. Prices are the ones on each Actor's page; check https://apify.com/pomlabs if they matter to the user.

Two ways to run it

1. Apify connector (use this when it is there). If the Apify tools call-actor and get-dataset-items are available (the plugin version of this skill declares the connector https://mcp.apify.com, and Apify is also in Claude's connector directory), call call-actor with actor set to the Actor name from the table, written with / instead of ~ (for example pomlabs/youtube-transcript-scraper), and input set to the same JSON shown in the examples below. call-actor waits up to 45 s (waitSecs); if it answers with status RUNNING, call get-actor-run with the runId until the status is SUCCEEDED. Then call get-dataset-items with the dataset id found at storages.datasets.default.id. To cap what a run can cost, pass callOptions with maxTotalChargeUsd. The user signs in to Apify once in the browser, and no token is handled here.

2. API token and curl. When those tools are not available, use the setup and the curl calls below.

Both ways bill the user's own Apify account at the prices in the table.

Setup for the token path (once)

  1. The user needs an Apify account and an API token from https://console.apify.com/account/integrations.
  2. Read the token from the environment. Never print it and never put it in a URL.
test -n "$APIFY_TOKEN" || echo "APIFY_TOKEN is not set: ask the user to create one at https://console.apify.com/account/integrations"

If the token is missing, stop and tell the user exactly that. Do not fall back to scraping the page yourself.

Get transcripts

Pick the Actor by the link's domain. One call accepts many URLs; keep each call to 25 URLs or fewer so it finishes inside the 300 s sync limit.

# YouTube: watch, youtu.be, Shorts, embed and live links, or the 11-character id
curl -sS -X POST \
  "https://api.apify.com/v2/acts/pomlabs~youtube-transcript-scraper/run-sync-get-dataset-items?timeout=280" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"urls":["https://www.youtube.com/watch?v=jNQXAC9IVRw"],"languages":["en"],"includeTimestamps":false}'
# Instagram Reels and video posts, TikTok videos, Facebook videos and Reels
curl -sS -X POST \
  "https://api.apify.com/v2/acts/pomlabs~social-video-transcript/run-sync-get-dataset-items?timeout=280" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"urls":["https://www.tiktok.com/@scout2015/video/6718335390845095173"],"language":"auto","includeTimestamps":false,"maxDurationSeconds":600}'

The response is a JSON array with one object per URL, in input order.

Input fields

FieldActorMeaning
urls (required)bothArray of video links
languagesYouTubeCaption languages in order of preference, e.g. ["pt","en"]. Manual captions win over auto-generated
languagesocialauto (default) or a code such as en, pt, es to force the speech-to-text language
translateTobothExtra languages to return with the same timestamps, e.g. ["en"]
includeTimestampsbothtrue adds a segments array (start, duration or end, text). Leave false for summaries to save tokens
subtitleFormatbothsrt or vtt adds a ready subtitle file as text; default none
maxDurationSecondssocialLonger videos are skipped and not charged. Set it before a batch so cost is bounded
includeComments, maxCommentssocialAlso return top-level comments ($0.0005 each)

Output fields worth keeping

status (ok or an error code), title, transcript (plain text) and segments when requested. YouTube adds channelName, language, isAutoGenerated, availableLanguages and charCount; the social Actor adds platform, author, durationSeconds and source (speech_to_text or the caption track). Always check status per item before using transcript.

When something fails

What you seeMeaningWhat to do
HTTP 401Token missing or wrongAsk the user for a valid APIFY_TOKEN
HTTP 402 or a message about usage limitsThe Apify account is out of creditTell the user; do not retry
HTTP 408, or the call runs past 280 sBatch too large for a sync callSplit into smaller batches and retry once
Item with status other than okThat video has no captions, is private, or was removedReport it for that URL and continue with the others; it was not charged
Empty transcript on a music or silent videoNothing was spokenSay so; do not invent text

Cost check before big batches

Estimate before running more than 50 videos: YouTube is videos x $0.003; social is videos x $0.01 plus $0.008 per extra minute. Tell the user the estimate and wait for a yes.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.