{
  "openapi": "3.0.1",
  "info": {
    "title": "Reels & TikTok Transcript API",
    "description": "Any short-form video in, one clean transcript out: Instagram Reels, TikTok, YouTube Shorts and Facebook Reels, by URL or whole account, no login anywhere. Captions first, AI when there are none. Timestamped segments, SRT/VTT/JSON, plus caption, hashtags and engagement.",
    "version": "0.1",
    "x-build-id": "Cu3W5zUhr4GCTGIV8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/codepoetry~short-form-transcript-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-codepoetry-short-form-transcript-api",
        "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/codepoetry~short-form-transcript-api/runs": {
      "post": {
        "operationId": "runs-sync-codepoetry-short-form-transcript-api",
        "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/codepoetry~short-form-transcript-api/run-sync": {
      "post": {
        "operationId": "run-sync-codepoetry-short-form-transcript-api",
        "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": "Video URLs",
            "type": "array",
            "description": "Direct links to transcribe: Instagram Reels, TikTok videos, YouTube Shorts and Facebook Reels. Share shortlinks (vm.tiktok.com, fb.watch, youtu.be) are followed to the video they name. Mix platforms freely in one run; every platform is read logged-out, public content only.",
            "items": {
              "type": "string",
              "pattern": "^https?://"
            }
          },
          "handles": {
            "title": "Handles",
            "type": "array",
            "description": "Instagram or TikTok accounts to transcribe recent videos from: @name, a bare name (read as Instagram), or a profile URL. Each account's latest reels are listed (the profile's own tiles, no login), then transcribed like any URL, up to Max videos per handle.",
            "items": {
              "type": "string"
            }
          },
          "max_per_handle": {
            "title": "Max videos per handle",
            "minimum": 1,
            "type": "integer",
            "description": "How many recent videos each handle contributes. One listing request walks the account; the count caps how far it walks.",
            "default": 10
          },
          "max_items": {
            "title": "Max items per run",
            "minimum": 1,
            "type": "integer",
            "description": "Ceiling on items processed in the whole run, across URLs and handles. Items past the ceiling are each returned as a skipped row naming the ceiling, so nothing disappears silently.",
            "default": 1000
          },
          "max_total_charge_usd": {
            "title": "Max total charge (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Spend guard: the run stops before its delivered transcripts would cost more than this. Rows past the guard come back as charge_limit_skipped and are not billed. 0 disables the guard; the flat USD 0.010 per delivered transcript is the number the guard counts.",
            "default": 5
          },
          "languages": {
            "title": "Transcript languages",
            "maxItems": 20,
            "type": "array",
            "description": "Preferred transcript languages, in priority order, as ISO 639-1 codes (the dropdown lists the languages transcription and platform captions commonly serve). Native captions are used when they exist in one of these languages; otherwise the audio is transcribed. Empty means: use the video's own captions if any exist, else transcribe the audio.",
            "items": {
              "type": "string",
              "enum": [
                "ar",
                "bn",
                "cs",
                "da",
                "de",
                "el",
                "en",
                "es",
                "fa",
                "fi",
                "fr",
                "he",
                "hi",
                "hr",
                "hu",
                "id",
                "it",
                "ja",
                "ko",
                "ms",
                "nl",
                "no",
                "pl",
                "pt",
                "ro",
                "ru",
                "sk",
                "sv",
                "sw",
                "th",
                "tr",
                "uk",
                "ur",
                "vi",
                "zh"
              ],
              "enumTitles": [
                "Arabic",
                "Bengali",
                "Czech",
                "Danish",
                "German",
                "Greek",
                "English",
                "Spanish",
                "Persian",
                "Finnish",
                "French",
                "Hebrew",
                "Hindi",
                "Croatian",
                "Hungarian",
                "Indonesian",
                "Italian",
                "Japanese",
                "Korean",
                "Malay",
                "Dutch",
                "Norwegian",
                "Polish",
                "Portuguese",
                "Romanian",
                "Russian",
                "Slovak",
                "Swedish",
                "Swahili",
                "Thai",
                "Turkish",
                "Ukrainian",
                "Urdu",
                "Vietnamese",
                "Chinese"
              ]
            },
            "default": []
          },
          "transcription_language": {
            "title": "Force transcription language",
            "enum": [
              "",
              "ar",
              "bn",
              "cs",
              "da",
              "de",
              "el",
              "en",
              "es",
              "fa",
              "fi",
              "fr",
              "he",
              "hi",
              "hr",
              "hu",
              "id",
              "it",
              "ja",
              "ko",
              "ms",
              "nl",
              "no",
              "pl",
              "pt",
              "ro",
              "ru",
              "sk",
              "sv",
              "sw",
              "th",
              "tr",
              "uk",
              "ur",
              "vi",
              "zh"
            ],
            "type": "string",
            "description": "Force the transcription language and skip detection (ISO 639-1 code), or leave blank to detect each video's language from its audio. Applies to audio transcription; native captions keep their own language.",
            "default": ""
          },
          "transcribe_audio": {
            "title": "Transcribe audio without captions",
            "type": "boolean",
            "description": "Transcribe the audio of videos that carry no readable captions, with the resident AI model. Off means captions-only: videos without captions come back failed with the reason on the row and are not billed, and the run needs no transcription capacity.",
            "default": true
          },
          "output_formats": {
            "title": "Transcript formats",
            "type": "array",
            "description": "Which transcript renderings each row carries: plain text, timestamped segments (json), SubRip, WebVTT, and llm (text cleaned of music markers and annotations). Timestamped segments always back every rendering.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "json",
                "srt",
                "vtt",
                "llm"
              ],
              "enumTitles": [
                "Plain text",
                "Timestamped JSON",
                "SRT subtitles",
                "VTT subtitles",
                "LLM-cleaned text"
              ]
            },
            "default": [
              "text"
            ]
          },
          "word_timestamps": {
            "title": "Word-level timestamps",
            "type": "boolean",
            "description": "Attach per-word start and end times inside each segment, where the source provides them. Roughly triples segment payload size.",
            "default": false
          },
          "max_ai_minutes": {
            "title": "Max AI transcription minutes",
            "minimum": 1,
            "type": "integer",
            "description": "Ceiling on audio minutes transcribed from scratch per run. Videos past the ceiling fail with the reason on their row; nothing past it is billed.",
            "default": 30
          },
          "geo": {
            "title": "Country to read from",
            "enum": [
              "at",
              "au",
              "br",
              "ca",
              "de",
              "dk",
              "es",
              "fr",
              "gb",
              "gr",
              "ie",
              "in",
              "it",
              "jp",
              "kr",
              "mx",
              "nl",
              "pl",
              "pt",
              "ru",
              "se",
              "sg",
              "tr",
              "us"
            ],
            "type": "string",
            "description": "Which country the run reads platforms from (ISO 3166-1 alpha-2). The platforms localize and gate by the reader's address, so pinning it keeps results and access consistent; the client's language and locale headers match the exit.",
            "default": "us"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}