{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok, Instagram Reels, YouTube & Facebook Transcript Scraper",
    "description": "Get transcripts from TikTok, Instagram Reels, YouTube Shorts & videos and Facebook reels in one run: video to text with captions first, Whisper AI fallback, SRT/VTT subtitles, hook analysis and keywords. Pay only for successful transcripts.",
    "version": "0.1",
    "x-build-id": "WmOItxCU1UohvDkFt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pegton~video-transcripts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pegton-video-transcripts",
        "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/pegton~video-transcripts/runs": {
      "post": {
        "operationId": "runs-sync-pegton-video-transcripts",
        "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/pegton~video-transcripts/run-sync": {
      "post": {
        "operationId": "run-sync-pegton-video-transcripts",
        "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": {
          "videoUrls": {
            "title": "Video URLs",
            "type": "array",
            "description": "Links to public videos. Mix platforms freely: YouTube (watch, Shorts, youtu.be), TikTok (incl. vm.tiktok.com short links), Instagram Reels/posts, Facebook reels/videos/fb.watch.",
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "title": "Profiles / channels",
            "type": "array",
            "description": "Get the latest videos of creators. Use a profile URL (youtube.com/@MrBeast, tiktok.com/@nasa) or the shorthand platform:handle (tiktok:nasa, youtube:@MrBeast). YouTube channels and TikTok profiles are fully supported. Instagram profile listing is experimental (Instagram often rate-limits logged-out profile requests) - pass reel URLs for reliable results. Facebook pages are not supported yet (use video URLs).",
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerProfile": {
            "title": "Max videos per profile",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many of the newest videos to take from each profile/channel.",
            "default": 10
          },
          "youtubeTab": {
            "title": "YouTube channel tab",
            "enum": [
              "shorts",
              "videos",
              "both"
            ],
            "type": "string",
            "description": "Which videos to take from a YouTube channel.",
            "default": "shorts"
          },
          "onlyNewerThan": {
            "title": "Only videos newer than",
            "type": "string",
            "description": "Skip older videos (free). Absolute date (2026-01-31) or relative (7 days, 2 weeks, 3 months). Great for scheduled monitoring."
          },
          "language": {
            "title": "Language hint",
            "type": "string",
            "description": "Optional ISO 639-1 code (en, de, es, fr, pt, ...). Prefers captions in this language and forces speech-to-text to this language. Leave empty for automatic detection (recommended for mixed lists)."
          },
          "outputFormats": {
            "title": "Output formats",
            "type": "array",
            "description": "Plain text is always included. Add timestamped segments, paragraph text (split at pauses, ideal for LLMs/blogs), SRT or WebVTT subtitle files.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "paragraphs",
                "segments",
                "srt",
                "vtt"
              ],
              "enumTitles": [
                "Plain text",
                "Paragraphs",
                "Timestamped segments",
                "SRT subtitles",
                "WebVTT subtitles"
              ]
            },
            "default": [
              "text",
              "segments"
            ]
          },
          "includeHook": {
            "title": "Include hook analysis",
            "type": "boolean",
            "description": "Adds the words spoken in the first seconds plus hook stats (question / number / direct address / story, words per second, silent start). Free.",
            "default": true
          },
          "hookSeconds": {
            "title": "Hook length (seconds)",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "How many opening seconds count as the hook.",
            "default": 3
          },
          "transcriptionMode": {
            "title": "Transcription mode",
            "enum": [
              "auto",
              "captionsOnly",
              "asrOnly"
            ],
            "type": "string",
            "description": "auto = use existing captions first (fast, cheap) and fall back to AI speech-to-text only when a video has none. captionsOnly = never run speech-to-text (cheapest; videos without captions are skipped for free). asrOnly = always run speech-to-text.",
            "default": "auto"
          },
          "asrModel": {
            "title": "Speech-to-text model",
            "enum": [
              "auto",
              "tiny",
              "base",
              "small"
            ],
            "type": "string",
            "description": "Whisper model for videos without captions. auto = 'base' (fast; beam search for non-English for better accuracy). 'small' = higher accuracy for accents/noisy audio, but ~4x slower: billed as 2 units per 2 minutes. 'tiny' = fastest, lowest accuracy.",
            "default": "auto"
          },
          "maxAsrDurationSec": {
            "title": "Max video length for speech-to-text (seconds)",
            "minimum": 10,
            "type": "integer",
            "description": "Longer videos without captions are skipped (free). Speech-to-text is billed per started 2 minutes of audio.",
            "default": 1800
          },
          "maxItems": {
            "title": "Max transcripts",
            "minimum": 0,
            "type": "integer",
            "description": "Hard stop after this many successful transcripts (0 = no limit). Remaining videos are listed as skipped and not charged.",
            "default": 0
          },
          "maxChargeUsd": {
            "title": "Max spend for this run (USD)",
            "type": "string",
            "description": "Optional own cost cap, e.g. 1.50. The actor stops before exceeding it. Also respects the platform's 'Max cost per run' setting."
          },
          "maxConcurrency": {
            "title": "Parallel videos",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "How many videos to process in parallel. 6 is optimal for the default 4 GB memory (below 2 GB the actor uses 2).",
            "default": 6
          },
          "maxRetries": {
            "title": "Retries per video",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Retries with a fresh proxy IP on blocks, rate limits and network errors.",
            "default": 3
          },
          "residentialFallback": {
            "title": "Auto-switch to residential proxy when blocked",
            "type": "boolean",
            "description": "If YouTube/Instagram/TikTok answer a datacenter IP with a bot check, retry that single video through a residential IP. Higher success rate at no extra cost to you.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy is recommended. Choose the RESIDENTIAL group for Instagram profiles and if YouTube or Instagram return 'blocked'.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}