{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram, TikTok & YouTube Transcript Scraper — Hooks & OCR",
    "description": "Bulk video transcript scraper for Instagram Reels, TikTok, YouTube Shorts & Facebook Ads. Extract time-coded spoken transcripts, subtitles, 0-3s viral spoken & visual OCR hooks, scene pacing, and translated UGC ad scripts. Pure HTTP, $0.005/min on Bronze+, $0 on silent videos.",
    "version": "1.0",
    "x-build-id": "61n5SeqPzAyGaERxW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cea_digital~instagram-tiktok-youtube-transcript-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cea_digital-instagram-tiktok-youtube-transcript-scraper",
        "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/cea_digital~instagram-tiktok-youtube-transcript-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cea_digital-instagram-tiktok-youtube-transcript-scraper",
        "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/cea_digital~instagram-tiktok-youtube-transcript-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cea_digital-instagram-tiktok-youtube-transcript-scraper",
        "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": {
          "igOrTiktokDatasetId": {
            "title": "1-Click Chained Dataset ID (Instagram / TikTok Scraper)",
            "type": "string",
            "description": "Paste a Dataset ID from apify/instagram-scraper or clockworks/tiktok-scraper to automatically extract spoken transcripts, 0-3s visual OCR hooks, and UGC briefs from every video."
          },
          "competitorProfileUrls": {
            "title": "Competitor Profile or Ad Library URLs",
            "type": "array",
            "description": "TikTok, Instagram Reels, or Meta Ad Library profile URLs to monitor for breakout viral hooks.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "videoUrls": {
            "title": "Direct Video URLs (TikTok / Reels / Shorts / Ad Library)",
            "type": "array",
            "description": "Direct short-form video URLs to analyze. Leave empty to run the 6-second instant live demo.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "translateTo": {
            "title": "Translate & Localize Ad Script To Language (Optional)",
            "type": "string",
            "description": "Optional ISO language code (e.g. 'es', 'de', 'pt', 'fr') to generate a localized UGC ad script (+$0.05)."
          },
          "generateUgcBrief": {
            "title": "Include 0-3s Visual OCR Hook & Scene Pacing Breakdown",
            "type": "boolean",
            "description": "Extract on-screen burned-in captions during the first 3 seconds plus scene cut pacing (+$0.005 on Bronze+).",
            "default": true
          },
          "monitorMode": {
            "title": "Enable Competitor Breakout Alert Monitor",
            "type": "boolean",
            "description": "Fire real-time Webhook or Telegram alerts whenever a new competitor video with high hook retention is detected.",
            "default": false
          },
          "webhookUrl": {
            "title": "Real-Time Alert Webhook URL (Slack / Discord / n8n / Make)",
            "type": "string",
            "description": "Optional HTTP POST webhook endpoint triggered when monitorMode is true."
          },
          "telegramChatId": {
            "title": "Telegram Alert Chat ID",
            "type": "string",
            "description": "Optional Telegram Chat ID for instant mobile notifications when monitorMode is true."
          },
          "watchlistId": {
            "title": "Recurring Watchlist ID (KV Deduplication)",
            "type": "string",
            "description": "Set a Watchlist ID when running on an hourly/daily Schedule so previously transcribed videos are never billed twice."
          },
          "onlyNew": {
            "title": "Only Process Net-New Videos",
            "type": "boolean",
            "description": "When paired with watchlistId, skips any video URL already transcribed in previous runs ($0.00 charged on duplicates).",
            "default": true
          },
          "feedback": {
            "title": "Request a Custom Platform or Export Schema",
            "type": "string",
            "description": "Need YouTube Community posts, Pinterest Idea Pins, or direct Notion sync? Let us know here."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}