{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Reels & TikTok Transcript: Hooks + Subtitles",
    "description": "Transcribe Instagram Reels and TikTok videos with Whisper: full transcript, the first-3-seconds hook, language, timestamps and SRT/VTT subtitles. From profiles, links or your scraper datasets. Pay per video.",
    "version": "0.1",
    "x-build-id": "l0NWc8HAQnPSTobe6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/benexe~reels-tiktok-transcript/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-benexe-reels-tiktok-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/benexe~reels-tiktok-transcript/runs": {
      "post": {
        "operationId": "runs-sync-benexe-reels-tiktok-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/benexe~reels-tiktok-transcript/run-sync": {
      "post": {
        "operationId": "run-sync-benexe-reels-tiktok-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": {
          "instagram": {
            "title": "Instagram reels or profiles",
            "type": "array",
            "description": "Reel URLs, profile URLs or usernames (e.g. natgeo). For profiles, the latest reels are transcribed. Collected with Apify's official Instagram Reel Scraper in your account (billed by that Actor, about $0.0026 per reel).",
            "items": {
              "type": "string"
            }
          },
          "tiktok": {
            "title": "TikTok videos or profiles",
            "type": "array",
            "description": "Video URLs (incl. vm.tiktok.com short links), profile URLs or @usernames. Collected with the TikTok Scraper by Clockworks in your account (billed by that Actor, about $0.005 per video incl. download).",
            "items": {
              "type": "string"
            }
          },
          "datasetIds": {
            "title": "Datasets from a previous scraper run",
            "type": "array",
            "description": "Already scraped? Pick datasets produced by Instagram Reel Scraper, Instagram Scraper or TikTok Scraper (with video download on). No scraping cost. Run this right after scraping: platform video links expire within hours."
          },
          "videoUrls": {
            "title": "Direct video or audio URLs",
            "type": "array",
            "description": "Direct links to MP4, MOV, WebM, M4A, MP3, WAV, OGG or FLAC files.",
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerProfile": {
            "title": "Videos per profile",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Latest videos to transcribe for each profile.",
            "default": 10
          },
          "newerThan": {
            "title": "Only videos newer than",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional date (YYYY-MM-DD). Older videos from profiles are skipped."
          },
          "maxVideos": {
            "title": "Max videos in total",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap for the whole run.",
            "default": 200
          },
          "maxMinutesPerVideo": {
            "title": "Max minutes per video",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Longer videos are transcribed up to this length.",
            "default": 15
          },
          "transcriptionLanguage": {
            "title": "Language",
            "enum": [
              "en",
              "es",
              "ca",
              "fr",
              "de",
              "it",
              "pt",
              "nl",
              "pl",
              "ru",
              "uk",
              "ar",
              "zh",
              "ja",
              "ko",
              "hi",
              "tr",
              "sv",
              "da",
              "no",
              "fi",
              "cs",
              "ro",
              "hu",
              "el",
              "he",
              "id",
              "vi",
              "th"
            ],
            "type": "string",
            "description": "Leave empty to detect the language automatically (99+ languages). Set it only if detection struggles."
          },
          "hookSeconds": {
            "title": "Hook length (seconds)",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "The hook is what is said in the first N seconds.",
            "default": 3
          },
          "includeSegments": {
            "title": "Timestamped segments",
            "type": "boolean",
            "description": "Sentence-level segments with start/end seconds.",
            "default": true
          },
          "includeSubtitles": {
            "title": "Subtitles (SRT + VTT)",
            "type": "boolean",
            "description": "Ready-to-upload subtitle files in each record.",
            "default": false
          },
          "groqApiKey": {
            "title": "Your Groq API key (optional, cheaper)",
            "type": "string",
            "description": "Use your own free Groq key (console.groq.com) for the lower price per video and no free-plan cap. Groq bills you for the transcription itself."
          },
          "healthCheck": {
            "title": "Health check mode",
            "type": "boolean",
            "description": "Internal. Never charged.",
            "default": false
          },
          "healthProfile": {
            "title": "Health check profile",
            "type": "string",
            "description": "Internal. Used only together with health check mode."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}