{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Video Analyzer AI: Reels Breakdown, Hook & Scenes",
    "description": "TikTok video analyzer & Instagram/Facebook Reels breakdown AI: transcript (script), hook analysis (type, strength, 3 new hooks), timed scene breakdown / shot list from real cuts, pacing, CTA and summary. Any username or video link. Pay per analysed video.",
    "version": "0.1",
    "x-build-id": "jghCQow8VnnZZnqyP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tactful_anvil~tiktok-video-analyzer-ai/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tactful_anvil-tiktok-video-analyzer-ai",
        "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~tiktok-video-analyzer-ai/runs": {
      "post": {
        "operationId": "runs-sync-tactful_anvil-tiktok-video-analyzer-ai",
        "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~tiktok-video-analyzer-ai/run-sync": {
      "post": {
        "operationId": "run-sync-tactful_anvil-tiktok-video-analyzer-ai",
        "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": "TikTok videos, Instagram Reels and Facebook Reels / videos to break down — 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"
            }
          },
          "handles": {
            "title": "Profiles (username or profile link)",
            "type": "array",
            "description": "Break down the newest videos of TikTok or Instagram creators — <code>@zachking</code>, <code>https://www.tiktok.com/@zachking</code> or <code>https://www.instagram.com/zachking/</code>. 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": "tiktok"
          },
          "maxVideosPerProfile": {
            "title": "Videos per profile",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Newest videos to break down from each profile (after the filters below). Up to 500 per profile.",
            "default": 5
          },
          "analyze": {
            "title": "AI analysis: hook, structure beats, CTA + 3 new hooks",
            "type": "boolean",
            "description": "Claude AI reads each transcribed video: the hook with its type and strength (1-10) and why it works, structure beats with timestamps, call to action, format, topics, summary, key takeaways, tone, audience and 3 alternative hooks you can reuse. <b>$0.012 per analysed video</b> (event <code>ai-analysis</code>), charged only when the analysis is delivered. Apify free plan: the first 10 videos per run.",
            "default": true
          },
          "describeVideo": {
            "title": "AI scene breakdown: shot list, what is shown, pacing",
            "type": "boolean",
            "description": "Claude AI looks at frames taken at every real shot cut: timed scenes (shot list with shot type and on-screen words), a description of what the video shows, a summary for someone who cannot watch, setting, subjects, visual style, visible brands, plus pacing (shot count, cuts per minute) and what is heard (speech share, music track). Silent and music-only videos are described too. <b>$0.005 per described video</b> (event <code>video-description</code>), charged only when the description is delivered. Apify free plan: the first 10 videos per run.",
            "default": true
          },
          "analysisLanguage": {
            "title": "Language of the AI breakdown",
            "type": "string",
            "description": "Write the analysis and scene breakdown in this language — a code like <code>en</code>, <code>es</code>, <code>pt</code>, <code>id</code>. Empty = each video's own language. Quoted hooks, CTAs and on-screen words stay as they are."
          },
          "includeOnScreenText": {
            "title": "Read on-screen text",
            "type": "boolean",
            "description": "Also read the words shown on the video (burned-in captions, titles, text-only videos with music) into <code>onScreenText</code> + timed <code>onScreenTextSegments</code>. <b>+$0.002 per video where text was found</b> (event <code>on-screen-text</code>); also works on music-only videos that have no transcript.",
            "default": false
          },
          "translateTo": {
            "title": "AI translation into…",
            "type": "string",
            "description": "Translate every transcript into this language with the timestamps kept (translated segments, plus SRT / VTT when those are on): a code like <code>es</code>, <code>de</code>, <code>pt-BR</code>, <code>ja</code> or a name like <code>Spanish</code>. <b>+$0.004 per translated video</b> (event <code>translation</code>); videos already in that language are skipped for free. For English only, <i>Translate to English</i> below is free."
          },
          "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"
          },
          "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": 1800,
            "type": "integer",
            "description": "Audio after this point is not transcribed and the row is marked <code>truncated</code>. Up to 30 minutes: the first 10 minutes of every video are included, each started minute past 10 minutes costs $0.003 (event <code>extra-minute</code>).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}