{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Reels Transcript API: Video to Text",
    "description": "Instagram Reel URLs, profiles, sounds or a scraper dataset in; transcript, language, hook, stats out. Failed, private and deleted reels are free. Any-language translation, word timestamps, AI summary/hook/CTA, comments, SRT/VTT. Free estimateOnly quote.",
    "version": "0.1",
    "x-build-id": "O4YWwaEgx011xJXb0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/verbatim-labs~instagram-reels-transcript/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-verbatim-labs-instagram-reels-transcript",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/verbatim-labs~instagram-reels-transcript/runs": {
      "post": {
        "operationId": "runs-sync-verbatim-labs-instagram-reels-transcript",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/verbatim-labs~instagram-reels-transcript/run-sync": {
      "post": {
        "operationId": "run-sync-verbatim-labs-instagram-reels-transcript",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "urls": {
            "title": "Reel URLs",
            "type": "array",
            "description": "Instagram reel/post URLs (/reel/, /reels/, /p/, /tv/) or bare shortcodes. Tracking params are stripped and duplicates are charged once. Provide urls, items or datasetId (any combination).",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "Instagram profiles (optional)",
            "maxItems": 50,
            "type": "array",
            "description": "Usernames (@handle, handle) or profile URLs. Transcribes each profile's latest reels and videos; no separate scraper needed. Private or missing profiles come back as one free row each. Up to 50 per run.",
            "items": {
              "type": "string"
            }
          },
          "reelsPerProfile": {
            "title": "Reels per profile",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many of each profile's most recent videos to transcribe (pinned posts included).",
            "default": 12
          },
          "sounds": {
            "title": "Sounds / audio (optional)",
            "maxItems": 50,
            "type": "array",
            "description": "Instagram audio page URLs (instagram.com/reels/audio/<id>/) or audio ids: transcribes reels that use this sound. Every transcribed row carries music.audioId, so you can chain from any reel to its sound. Up to 50 per run.",
            "items": {
              "type": "string"
            }
          },
          "reelsPerSound": {
            "title": "Reels per sound",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many reels to take from each sound page (12 per Instagram request).",
            "default": 12
          },
          "topics": {
            "title": "Popular topics (optional)",
            "maxItems": 50,
            "type": "array",
            "description": "Instagram popular-topic pages (instagram.com/popular/<topic>/), e.g. \"andrew huberman\". Up to 24 top reels each. Works mostly for people, brands and shows; generic keywords and hashtags usually have no logged-out page and return a free NOT_FOUND row. Up to 50 per run.",
            "items": {
              "type": "string"
            }
          },
          "reelsPerTopic": {
            "title": "Reels per topic",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "How many reels to take from each topic page (Instagram returns at most 24).",
            "default": 24
          },
          "newerThan": {
            "title": "Only posts newer than (optional)",
            "type": "string",
            "description": "Skip reels posted before this date (YYYY-MM-DD or ISO). Applies to every input: profile listings are cut before transcription, URL/dataset reels are skipped free once their post date is known. Combine with onlyNew to never pay twice."
          },
          "datasetId": {
            "title": "Chain a dataset (optional)",
            "type": "string",
            "description": "ID or name of a dataset from any Instagram scraper. Items with url, inputUrl, shortCode, videoUrl or videoUrlHd are picked up automatically and all their fields are passed through. Declared as a dataset resource so it works under limited permissions."
          },
          "items": {
            "title": "Scraper items inline (optional)",
            "type": "array",
            "description": "Upstream scraper rows passed directly (Make, n8n, AI agents), e.g. [{\"url\": \"https://www.instagram.com/reel/ABC/\", \"likesCount\": 10}] or [{\"videoUrl\": \"https://scontent.cdninstagram.com/...mp4\"}] (Instagram CDN links only; others are re-resolved from the reel URL or rejected). Same field detection and passthrough as datasetId. Plain URL strings also work."
          },
          "datasetField": {
            "title": "Dataset URL field (optional)",
            "type": "string",
            "description": "Override which field of the dataset/items rows holds the reel URL or shortcode."
          },
          "estimateOnly": {
            "title": "Estimate price only",
            "type": "boolean",
            "description": "Return a price quote instead of transcribing: one row with status=estimate, reel count, minutes of audio and the maximum cost. Only the $0.002 run start is charged. Useful for agents that confirm cost before running.",
            "default": false
          },
          "translateToEnglish": {
            "title": "Also translate to English",
            "type": "boolean",
            "description": "Shortcut for targetLanguage=en: adds textEnglish/textTranslated (and segmentsEnglish) for non-English reels. Same price.",
            "default": false
          },
          "targetLanguage": {
            "title": "Translate to language (optional)",
            "type": "string",
            "description": "ISO-639-1 code of any language, e.g. en, es, de, ja, hi. Adds textTranslated, translatedTo and translatedFrom (segmentsTranslated with includeSegments). Same price. Overrides translateToEnglish."
          },
          "wordTimestamps": {
            "title": "Word-level timestamps",
            "type": "boolean",
            "description": "Adds words: [{start, end, word}] in seconds for karaoke captions, clipping and search. Always transcribes the audio (Instagram's own captions have no word timings). Same price.",
            "default": false
          },
          "vocabulary": {
            "title": "Custom vocabulary (optional)",
            "type": "array",
            "description": "Brand names, products, jargon and people's names to spell correctly, e.g. [\"Ozempic\", \"HIIT\", \"Gymshark\"]. Fed to Whisper as a glossary. Same price.",
            "items": {
              "type": "string"
            }
          },
          "accuracy": {
            "title": "Accuracy",
            "enum": [
              "fast",
              "best"
            ],
            "type": "string",
            "description": "fast = Whisper large-v3 turbo (included). best = full Whisper large-v3, better on accents, noisy audio and rare words; +$0.002 per transcribed reel, charged only when it ran. Covers reels up to 2 min; longer reels are transcribed with fast, not charged the best fee, and flagged accuracyDowngraded=true.",
            "default": "fast"
          },
          "analysis": {
            "title": "AI analysis (optional, +$0.002/reel)",
            "type": "array",
            "description": "Adds analysis: {summary, hook, cta, structure, keywords, topics, sentiment, chapters} (only the kinds you pick) from one LLM pass over the transcript. +$0.002 per transcribed reel, charged only when the analysis succeeded. viralScore is always included on transcribed rows.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "summary",
                "hook",
                "cta",
                "structure",
                "keywords",
                "topics",
                "sentiment",
                "chapters"
              ],
              "enumTitles": [
                "All of the below",
                "Summary",
                "Hook (text, type, strength 1-5)",
                "Call to action",
                "Structure / beats",
                "Keywords",
                "Topics",
                "Sentiment",
                "Chapters (timed)"
              ]
            }
          },
          "includeMediaUrls": {
            "title": "Include video/audio download links",
            "type": "boolean",
            "description": "Adds videoUrl and audioUrl (fresh Instagram CDN links; they expire at mediaUrlsExpireAt, usually within a day). No extra charge; transcribed (ok) rows only.",
            "default": false
          },
          "includeComments": {
            "title": "Latest comments per reel",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Adds comments: the N newest comments (max 20) [{text, username, createdAt, likeCount, replyCount}]. No extra charge; transcribed (ok) rows only. Newest first (logged-out Instagram can't rank by likes).",
            "default": 0
          },
          "includeSegments": {
            "title": "Include timestamped segments",
            "type": "boolean",
            "description": "Adds segments: [{start, end, text}] in seconds (and segmentsEnglish when translating). Off by default for API/MCP calls to keep rows small; the Console form turns it on. SRT/VTT and hook work either way.",
            "default": false
          },
          "subtitleFormat": {
            "title": "Subtitles",
            "enum": [
              "none",
              "srt",
              "vtt",
              "both"
            ],
            "type": "string",
            "description": "Also return ready-to-use subtitle files as text fields.",
            "default": "none"
          },
          "includeOnScreenText": {
            "title": "Read on-screen text",
            "type": "boolean",
            "description": "Adds onScreenText: burned-in titles, captions and labels read from 4 frames of the video. Works on music-only reels too. No extra charge; null if it couldn't be read.",
            "default": false
          },
          "language": {
            "title": "Spoken language hint (optional)",
            "type": "string",
            "description": "ISO-639-1 code such as en, es, pt. Leave empty to auto-detect."
          },
          "maxReels": {
            "title": "Max reels",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many unique reels. 0 = no limit. The run also stops cleanly at your max-charge-per-run limit.",
            "default": 0
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Reels processed in parallel.",
            "default": 10
          },
          "useNativeCaptions": {
            "title": "Use Instagram's own captions when available",
            "type": "boolean",
            "description": "If an upstream dataset item already carries Instagram's caption file (video_subtitles_uri), use it instead of speech recognition. Falls back to speech recognition otherwise.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new reels (skip ones already processed)",
            "type": "boolean",
            "description": "For scheduled runs: skip reels this account already got a final result for (ok or permanently unavailable), so you're never charged twice. History is kept in a named key-value store in your own account (ig-reels-transcript-history).",
            "default": false
          },
          "historyKey": {
            "title": "History name (optional)",
            "type": "string",
            "description": "Separate histories for separate monitors, e.g. one per client. Default: one shared history."
          },
          "minViews": {
            "title": "Min views (filter)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip reels with fewer views. Free: filtered reels return status=skipped, errorCode=FILTERED and are never charged. Reels whose view count Instagram hides are kept."
          },
          "minLikes": {
            "title": "Min likes (filter)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip reels with fewer likes (free, status=skipped). Reels with hidden likes are kept."
          },
          "maxDurationSec": {
            "title": "Max length in seconds (filter)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip reels longer than this, before any transcription spend (free, status=skipped). 0 = no limit."
          },
          "strictFilters": {
            "title": "Strict filters",
            "type": "boolean",
            "description": "Logged-out Instagram sometimes hides view/like counts. Off (default): such reels pass minViews/minLikes/maxDurationSec/newerThan and carry filtersNotApplied naming the unchecked filters. On: they're skipped as free FILTERED rows instead.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}