{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Transcript Scraper + Facebook Reels Transcript",
    "description": "TikTok transcript & Facebook Reels transcript scraper (+ Instagram Reels transcript): any username, profile or video link → speech to text with hook, timestamps, SRT/VTT, language, views & likes. Facebook video transcript, TikTok to text. Whisper, 99 languages. Pay only for transcribed videos.",
    "version": "0.1",
    "x-build-id": "ax5c2rzqbxotRh8Jk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tactful_anvil~short-video-transcript/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tactful_anvil-short-video-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/tactful_anvil~short-video-transcript/runs": {
      "post": {
        "operationId": "runs-sync-tactful_anvil-short-video-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/tactful_anvil~short-video-transcript/run-sync": {
      "post": {
        "operationId": "run-sync-tactful_anvil-short-video-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": {
          "handles": {
            "title": "Profiles (username or profile link)",
            "type": "array",
            "description": "Instagram or TikTok creators — <code>@zachking</code>, <code>zachking</code>, <code>https://www.instagram.com/zachking/</code> or <code>https://www.tiktok.com/@zachking</code>. The Actor lists each profile's newest videos and transcribes them. Plain usernames use <b>Platform for usernames</b> below; <code>tiktok:@name</code> / <code>ig:name</code> pick the platform per line.",
            "items": {
              "type": "string"
            }
          },
          "profilePlatform": {
            "title": "Platform for usernames",
            "enum": [
              "instagram",
              "tiktok",
              "both"
            ],
            "type": "string",
            "description": "Where to look up plain usernames (<code>@name</code> / <code>name</code>). Profile links always use their own platform.",
            "default": "instagram"
          },
          "maxVideosPerProfile": {
            "title": "Videos per profile",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Newest videos to transcribe from each profile (after the filters below). Instagram: up to 500 Reels (listed 12 per page without a login); TikTok: up to 500.",
            "default": 10
          },
          "onlyPostsNewerThan": {
            "title": "Only posts newer than",
            "type": "string",
            "description": "A date (<code>2026-10-01</code>) or a period (<code>7 days</code>, <code>24 hours</code>, <code>2 weeks</code>, <code>3 months</code>). Older videos are skipped before download and never charged. Empty = no date filter.",
            "default": ""
          },
          "skipPinned": {
            "title": "Skip pinned videos",
            "type": "boolean",
            "description": "Leave out the videos a creator pinned to the top of the profile (they are often old).",
            "default": false
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Only transcribe videos with at least this many views (0 = all). Videos whose views are not public are kept.",
            "default": 0
          },
          "sortBy": {
            "title": "Which videos per profile",
            "enum": [
              "newest",
              "most_viewed"
            ],
            "type": "string",
            "description": "<b>Newest</b> = the most recent videos. <b>Most viewed</b> = the top videos by views among the latest ones listed (about 3× <i>Videos per profile</i>, at least 36).",
            "default": "newest"
          },
          "urls": {
            "title": "Video URLs (optional)",
            "type": "array",
            "description": "Single TikTok videos, Instagram Reels and Facebook Reels / videos — one link per line. Short links (vm.tiktok.com, fb.watch) work, profile links pasted here are listed like Profiles. Duplicates are skipped automatically.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Dataset ID from another scraper (optional)",
            "type": "string",
            "description": "Transcribe the videos found by another Actor run — paste its dataset ID (e.g. from an Instagram, TikTok or Facebook scraper). The post link is read from <code>url</code>, <code>webVideoUrl</code>, <code>postUrl</code>, <code>shortCode</code> and similar fields; Instagram rows with a <code>videoUrl</code> file are transcribed straight from that file. Photo posts are skipped."
          },
          "datasetItems": {
            "title": "Scraper rows (optional)",
            "type": "array",
            "description": "Same as Dataset ID, but with the rows pasted directly (any shape, e.g. <code>[{\"url\": \"https://www.tiktok.com/@nasa/video/…\"}]</code>)."
          },
          "onlyNew": {
            "title": "Only new videos",
            "type": "boolean",
            "description": "Skip videos that an earlier run of yours already transcribed (remembered in a key-value store named <code>short-video-transcript-seen</code> in your account). Ideal for a daily schedule that watches the same creators.",
            "default": false
          },
          "watchlistId": {
            "title": "Watchlist name (optional)",
            "type": "string",
            "description": "Give a monitoring job its own memory, e.g. <code>competitors</code> or <code>client-acme</code>. Every row then gets <code>isNew</code> and <code>firstSeenAt</code>; with <b>Only new videos</b> on, videos already on this list are skipped. Empty = the shared memory of <b>Only new videos</b>."
          },
          "language": {
            "title": "Spoken language (optional)",
            "type": "string",
            "description": "Two-letter code such as <code>en</code>, <code>es</code>, <code>id</code>, <code>pt</code>. Leave empty to detect the language of every video automatically (99 languages).",
            "default": ""
          },
          "model": {
            "title": "Accuracy",
            "enum": [
              "base",
              "tiny"
            ],
            "type": "string",
            "description": "<b>base</b> = good accuracy, recommended. <b>tiny</b> = fastest, fine for clear English speech. Same price.",
            "default": "base"
          },
          "preferNativeCaptions": {
            "title": "Use the platform's own captions when available",
            "type": "boolean",
            "description": "Some TikToks carry captions published by the creator / TikTok. When on, those are returned instead of running speech recognition (faster). Off = always transcribe the audio.",
            "default": true
          },
          "includeSegments": {
            "title": "Timestamped segments",
            "type": "boolean",
            "description": "Add a <code>segments</code> array (start, end, text) for subtitles, clipping and hooks.",
            "default": true
          },
          "includeSrt": {
            "title": "SRT subtitles",
            "type": "boolean",
            "description": "Add a ready-to-use <code>srt</code> subtitle string to every row.",
            "default": false
          },
          "includeVtt": {
            "title": "WebVTT subtitles",
            "type": "boolean",
            "description": "Add a ready-to-use <code>vtt</code> (WebVTT) subtitle string to every row — the web/HTML5 subtitle format.",
            "default": false
          },
          "wordTimestamps": {
            "title": "Per-word timestamps",
            "type": "boolean",
            "description": "Add <code>words</code> [{start, end, word}] inside every segment — for karaoke captions, precise clipping and word search. Uses speech recognition even when the platform has captions.",
            "default": false
          },
          "chunkWords": {
            "title": "Chunks for AI / RAG (words per chunk)",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Also cut each transcript into <code>chunks</code> of about this many words, each with start / end seconds — ready for embeddings and retrieval. 0 = off.",
            "default": 0
          },
          "translateToEnglish": {
            "title": "Translate to English",
            "type": "boolean",
            "description": "Add <code>translationEn</code>: the spoken words translated to English by Whisper itself (non-English videos only; English videos get their transcript). Same price.",
            "default": false
          },
          "maxComments": {
            "title": "Top comments (TikTok)",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Add the most-liked comments of every transcribed TikTok (pinned first) as <code>topComments</code>. 0 = off. Instagram and Facebook do not show comments without a login.",
            "default": 0
          },
          "maxVideos": {
            "title": "Max videos",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many unique videos in total (links + all profiles).",
            "default": 100
          },
          "maxDurationSec": {
            "title": "Max video length (seconds)",
            "minimum": 10,
            "maximum": 600,
            "type": "integer",
            "description": "Audio after this point is not transcribed and the row is marked <code>truncated</code>. Reels and TikToks are almost always shorter than 3 minutes.",
            "default": 180
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Not needed for most runs. If a platform starts blocking downloads (status <code>blocked</code>), a residential proxy can help.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}