{
  "openapi": "3.0.1",
  "info": {
    "title": "Shorts, Reels & TikTok Transcript + Hook Analyzer",
    "description": "Transcripts + hook analysis for YouTube Shorts, Instagram Reels and TikTok. Get transcripts of YouTube Shorts plus hook analysis: first-3-second hook text, hook type, words per second, CTA detection, keywords. Search by keyword, channel or URLs. No API key.",
    "version": "0.0",
    "x-build-id": "IYNIgcsQagryKf6Nq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ariadev~short-video-hook-analyzer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ariadev-short-video-hook-analyzer",
        "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/ariadev~short-video-hook-analyzer/runs": {
      "post": {
        "operationId": "runs-sync-ariadev-short-video-hook-analyzer",
        "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/ariadev~short-video-hook-analyzer/run-sync": {
      "post": {
        "operationId": "run-sync-ariadev-short-video-hook-analyzer",
        "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": "YouTube Shorts or watch URLs, TikTok video URLs, or Instagram Reel URLs. YouTube uses official captions (unchanged). TikTok uses public caption tracks when the page exposes them, otherwise a local Whisper transcript of the public video file. Instagram Reels have no public caption track, so the public video file is transcribed with local Whisper. No login and no paid speech-to-text API.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "YouTube Shorts search keyword",
            "type": "string",
            "description": "Search YouTube for recent Shorts in this niche (e.g. \"morning routine\", \"ai tools\", \"skin care\"). Combined with Max results and the upload-date filter."
          },
          "channel": {
            "title": "YouTube channel",
            "type": "string",
            "description": "A channel URL, @handle or UC… id. The Actor opens the channel's Shorts tab and analyses the most recent ones."
          },
          "uploadedWithin": {
            "title": "Uploaded within (search / channel)",
            "enum": [
              "any",
              "today",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Applied to Shorts discovered via keyword or channel when a publish date is available. Direct URLs are not filtered.",
            "default": "any"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Hard cap on items written to the dataset (and charged). Default is 10 so a Store auto-test stays cheap.",
            "default": 10
          },
          "maxVideosToScan": {
            "title": "Max videos to scan per search / channel",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many Shorts to discover before analysis (default 12, enough for the result cap without a long auto-test). Videos that have no captions can be skipped without being charged when 'Only keep videos with a transcript' is on.",
            "default": 12
          },
          "maxDurationSeconds": {
            "title": "Max duration (seconds)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop search/channel videos longer than this. YouTube Shorts can be up to 3 minutes. 0 = no limit. Direct URLs are still analysed even if they are longer.",
            "default": 180
          },
          "preferredLanguage": {
            "title": "Preferred caption language",
            "type": "string",
            "description": "ISO code such as en, es, id, hi. Manual captions in this language are preferred, then auto-captions, then English, then any available track.",
            "default": "en"
          },
          "onlyWithTranscript": {
            "title": "Only keep videos with a transcript",
            "type": "boolean",
            "description": "When on, videos with no transcript (captions or Whisper) are not saved and not charged. Turn off to also store metadata-only rows.",
            "default": true
          },
          "platforms": {
            "title": "Platforms",
            "uniqueItems": true,
            "type": "array",
            "description": "Limit which platforms are processed. Keyword and channel discovery is YouTube-only.",
            "items": {
              "type": "string",
              "enum": [
                "youtube",
                "tiktok",
                "instagram"
              ],
              "enumTitles": [
                "YouTube",
                "TikTok",
                "Instagram"
              ]
            },
            "default": [
              "youtube",
              "tiktok",
              "instagram"
            ]
          },
          "whisperModel": {
            "title": "Whisper model (Instagram / TikTok fallback)",
            "enum": [
              "tiny",
              "base"
            ],
            "type": "string",
            "description": "Local faster-whisper model used when Instagram has no caption track, or when a TikTok video has no subtitleInfos. Runs on CPU (int8). tiny is enough for hooks and stays well under $0.015 in compute. YouTube never uses Whisper.",
            "default": "tiny"
          },
          "probe": {
            "title": "Fetch-method probe (no results, no charge)",
            "type": "boolean",
            "description": "Diagnostic only. Tries each Instagram and TikTok page method on every connection route (especially Apify RESIDENTIAL) and writes a report to Key-Value Store record PROBE.json. Nothing is pushed to the dataset, so you are not charged $0.015 per item. Use this once after deploy to see which method works on Apify. If videoUrls is empty, built-in public examples are used.",
            "default": false
          },
          "country": {
            "title": "Country (gl)",
            "type": "string",
            "description": "Two-letter country code used for YouTube search, e.g. US, GB, IN, ID, BR.",
            "default": "US"
          },
          "language": {
            "title": "Interface language (hl)",
            "type": "string",
            "description": "Keep \"en\" so numbers and dates are parsed correctly. Captions themselves follow Preferred caption language.",
            "default": "en"
          },
          "maxConcurrency": {
            "title": "Parallel video requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many videos are analysed in parallel.",
            "default": 4
          },
          "autoProxyFallback": {
            "title": "Automatic connection fallback",
            "type": "boolean",
            "description": "If the selected proxy gets blocked, automatically try a direct connection and then Apify RESIDENTIAL proxy.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy (datacenter, default) is tried first. If YouTube bot-checks the player or caption fetch three times, the Actor switches to RESIDENTIAL for the rest of the run and retries alternate Innertube clients. Instagram and TikTok page/HTML fetches also fall back to RESIDENTIAL. Video files are downloaded on a direct or datacenter route first. TikTok media reuses the cookies and User-Agent from the page fetch; if the CDN still returns 403, the file may be retried on the same route that loaded the page (a last-resort exception, to avoid $8/GB residential traffic when possible).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}