Skip to main content
First month 50% off for new accounts, in their first 48 hoursStart free

Read the script

Returns what is said in a video right now as numbered lines with timestamps, along with its version and layers. Before the script is ready, it reports whether the video is still preparing, needs a transcript or is transcribing.

MCP toolget_script
APIGET /api/v1/videos/{clipId}/script
CreditsFree

When to use it

Parameters

NameTypeRequiredWhat it is
clipIdstringYesThe clipId from open_video, or a clip ID from list_clips.

Call it from an AI agent

{
  "name": "get_script",
  "arguments": {
    "clipId": "f8669b08"
  }
}

Call it from your code

curl "https://pogclip.com/api/v1/videos/f8669b08/script" \
  -H "Authorization: Bearer $POGCLIP_API_KEY"

What you get back

Before there is a transcript:

{
  "clipId": "f8669b08",
  "name": "Why I started filming again",
  "pageUrl": "https://pogclip.com/dashboard/projects/8e4ed643?clip=f8669b08",
  "downloadPageUrl": "https://pogclip.com/dashboard/projects/8e4ed643?download=f8669b08",
  "status": "needs_transcript",
  "durationSeconds": 510,
  "transcriptCredits": 9,
  "next": "Transcribing this video uses 9 credits: today's 10 free transcripts are used up."
}

With a transcript:

{
  "clipId": "f8669b08",
  "name": "Why I started filming again",
  "pageUrl": "https://pogclip.com/dashboard/projects/8e4ed643?clip=f8669b08",
  "downloadPageUrl": "https://pogclip.com/dashboard/projects/8e4ed643?download=f8669b08",
  "status": "ready",
  "version": 0,
  "durationSeconds": 510,
  "script": [
    {
      "line": 1,
      "start": 0.1,
      "end": 2,
      "text": "Okay, here's the deal."
    },
    {
      "line": 2,
      "start": 2.3,
      "end": 8.1,
      "text": "I want to show you what I got wrong."
    }
  ],
  "next": "Cuts name these line numbers and this version. Cutting uses no credits."
}

The example above shows only the first two lines of script.

  • status:
    • preparing: poll again in about 30 seconds.
    • needs_transcript: when transcriptCredits is 0 (free: 10 videos a day), call transcribe_video straight away; otherwise ask the user to confirm the price first.
    • transcribing: poll again in about 20 seconds.
    • ready: script and version are ready for edits.
    • failed: fetching failed and nothing was charged.
  • version: send this exact number in cut_video, edit_captions or edit_layers.
  • script: numbered lines with start and end seconds as the video plays now; empty when no speech was heard.
  • layers: present when media, music or graphics are on the video, listing each layer's id for removal.
  • next: tells you the next action and wait time.

Errors

CodeWhat it means
not_foundThere is no video with this ID on the account, or it has expired.
unauthorizedThe API key or sign-in is missing, wrong or revoked.
rate_limitedMore than 60 requests in a minute. Wait for retryAfterSeconds.