{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Breakdown AI — Hook Analysis, Shot List, Script & Pacing",
    "description": "Break down TikTok, YouTube, Shorts, Instagram Reels or MP4 videos with AI: hook and why it works, beats, shot list with a frame image per shot, measured cuts and pacing, transcript, on-screen text, products, CTA, script template. No login. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "lzbFnA8hkNgtH6xi9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apimy~video-breakdown-ai/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apimy-video-breakdown-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/apimy~video-breakdown-ai/runs": {
      "post": {
        "operationId": "runs-sync-apimy-video-breakdown-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/apimy~video-breakdown-ai/run-sync": {
      "post": {
        "operationId": "run-sync-apimy-video-breakdown-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": {
          "videoUrls": {
            "title": "Video URLs",
            "type": "array",
            "description": "TikTok videos, YouTube videos and Shorts, Instagram Reels, Facebook / X videos or direct MP4 links. Channel, playlist and TikTok profile links take their newest videos (see 'Max videos per source'). Private, deleted or too long videos are skipped and not charged.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "YouTube search terms",
            "type": "array",
            "description": "Optional. E.g. 'skincare routine', 'ugc ad'. Each search takes the top videos (up to 'Max videos per source').",
            "items": {
              "type": "string"
            }
          },
          "searchSortBy": {
            "title": "Search order",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "Relevance (YouTube's default) or newest uploads first.",
            "default": "relevance"
          },
          "searchShortVideosOnly": {
            "title": "Search: short videos only",
            "type": "boolean",
            "description": "Keep only results under 4 minutes (Shorts and short videos) — YouTube's own duration filter.",
            "default": true
          },
          "datasetId": {
            "title": "Videos from another Actor's dataset",
            "type": "string",
            "description": "Optional. A dataset from a TikTok / YouTube / Instagram scraper run. Video links are read from the fields url, webVideoUrl, videoUrl or postUrl. Read-only access to this one dataset is requested."
          },
          "datasetSortBy": {
            "title": "Which dataset videos first",
            "enum": [
              "views",
              "original"
            ],
            "type": "string",
            "description": "Most viewed first (uses views / playCount when the dataset has them) or the dataset's own order.",
            "default": "views"
          },
          "maxVideosPerSource": {
            "title": "Max videos per source",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "For channels, playlists, TikTok profiles, searches and datasets: how many videos to take from each. Single video links are not affected.",
            "default": 5
          },
          "maxVideos": {
            "title": "Max videos in total",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on the number of videos analysed in one run.",
            "default": 50
          },
          "outputLanguage": {
            "title": "Output language",
            "enum": [
              "English",
              "Same as video",
              "Spanish",
              "Portuguese",
              "French",
              "German",
              "Italian",
              "Dutch",
              "Polish",
              "Russian",
              "Ukrainian",
              "Turkish",
              "Arabic",
              "Hindi",
              "Indonesian",
              "Vietnamese",
              "Thai",
              "Japanese",
              "Korean",
              "Chinese"
            ],
            "type": "string",
            "description": "Language of the analysis (summary, hook explanation, notes, template). 'Same as video' follows the video's language.",
            "default": "English"
          },
          "translateQuotes": {
            "title": "Translate quotes and transcript too",
            "type": "boolean",
            "description": "Off: spoken words and on-screen text stay in their original language. On: they are translated into the output language.",
            "default": false
          },
          "briefContext": {
            "title": "Your brief (optional)",
            "type": "string",
            "description": "One or two sentences the AI should keep in mind, e.g. 'We sell a vegan protein bar to Gen Z — focus on what we can reuse'. Shapes 'what to copy' and 'improvements'."
          },
          "maxVideoMinutes": {
            "title": "Max video length (minutes)",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Longer videos are skipped and not charged. The first 60 seconds are included in the price; each further started minute is billed as 'Extra video minute'.",
            "default": 20
          },
          "includeTranscript": {
            "title": "Include transcript",
            "type": "boolean",
            "description": "Adds 'transcript' (plain text) and 'timestampedTranscript' (lines with start/end seconds).",
            "default": true
          },
          "includeShotFrames": {
            "title": "Frame image for every shot",
            "type": "boolean",
            "description": "Saves one still (480 px JPG) per shot and puts its link in shots[].frameUrl — a visual storyboard. Free.",
            "default": true
          },
          "includeLlmBrief": {
            "title": "LLM-ready brief",
            "type": "boolean",
            "description": "Adds 'llmBrief': the whole breakdown as Markdown, ready to paste into ChatGPT or Claude.",
            "default": true
          },
          "crossVideoInsights": {
            "title": "Cross-video insights",
            "type": "boolean",
            "description": "When 2+ videos are analysed, adds one 'insights' row: hook patterns, formats, pacing, content pillars, best performer and a playbook with 3 new video ideas. Billed once per run as 'Cross-video insights'.",
            "default": false
          },
          "proxyMode": {
            "title": "Network route",
            "enum": [
              "auto",
              "direct",
              "residential"
            ],
            "type": "string",
            "description": "Auto: direct first, residential proxy only when the site blocks it (YouTube always needs it). Residential traffic is billed per MB only when it was used.",
            "default": "auto"
          },
          "maxConcurrency": {
            "title": "Videos in parallel",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many videos are processed at the same time.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}