{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Ad 3-Second Visual Hook Analyzer & Cloner",
    "description": "TikTok Ad 3-Second Visual Hook Analyzer & Cloner. Powered by Gemini 3.8 Flash & Gemini 4 Argon Vision. Built for TikTok Shop Sellers, Dropshippers & Performance Ad Agencies.",
    "version": "1.0",
    "x-build-id": "D91TqKwQsBEfbtb3Y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/w80757983~tiktok-ad-3s-visual-hook-analyzer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-w80757983-tiktok-ad-3s-visual-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/w80757983~tiktok-ad-3s-visual-hook-analyzer/runs": {
      "post": {
        "operationId": "runs-sync-w80757983-tiktok-ad-3s-visual-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/w80757983~tiktok-ad-3s-visual-hook-analyzer/run-sync": {
      "post": {
        "operationId": "run-sync-w80757983-tiktok-ad-3s-visual-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": {
          "videoUrl": {
            "title": "🎬 Target Short Video URL (TikTok / Reels / Shorts / MP4)",
            "type": "string",
            "description": "Paste any public short video URL or direct MP4 link. Pre-filled with a real 15s commercial video stream for 1-click live AI testing!",
            "default": "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4"
          },
          "niche": {
            "title": "🎯 Your Content / Ad Niche",
            "enum": [
              "ecommerce_dtc",
              "ai_short_drama",
              "beauty_skincare",
              "mobile_game_ua",
              "saas_tech_tool",
              "local_service_leadgen"
            ],
            "type": "string",
            "description": "Helps the multimodal AI calibrate its retention benchmarks and clone prompts to your exact industry.",
            "default": "ecommerce_dtc"
          },
          "language": {
            "title": "🌍 Output Report Language",
            "enum": [
              "en",
              "zh"
            ],
            "type": "string",
            "description": "Choose English for global teams or Simplified Chinese (简体中文) for Feishu/Douyin/Kling workflows.",
            "default": "en"
          },
          "llmModel": {
            "title": "🧠 Multimodal Vision Model (Default: Gemini 3.8 Flash)",
            "enum": [
              "gemini-3.8-flash",
              "gemini-4-argon",
              "gemini-3.5-flash-lite",
              "gpt-4o-mini",
              "qwen2.5-vl-72b-instruct"
            ],
            "type": "string",
            "description": "Automatically uses the Actor's built-in high-speed model pool with automatic fallback.",
            "default": "gemini-3.8-flash"
          },
          "llmApiKey": {
            "title": "🔐 Custom LLM API Key (Optional BYOK for Unlimited Concurrency)",
            "type": "string",
            "description": "Leave BLANK to use our built-in cloud vision pool out-of-the-box! Or paste your own Gemini/OpenAI/DashScope key here."
          },
          "includeDeAiRealism": {
            "title": "✨ Generate 'De-AI Plastic Look' Realism Prompts (Kling / Sora / Runway)",
            "type": "boolean",
            "description": "When enabled, outputs concrete micro-texture, lighting, and handheld camera prompts to eliminate the fake AI look.",
            "default": true
          },
          "maxVideos": {
            "title": "🔢 Max Videos per Run",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of videos to process in a single batch run.",
            "default": 5
          },
          "licenseKey": {
            "title": "🔑 Self-Service VIP License Key (Optional for Direct Webhook Users)",
            "type": "string",
            "description": "Leave as FREE_TRIAL on Apify Store (Apify handles PPE billing automatically). Used only for external Feishu/Coze webhook users.",
            "default": "FREE_TRIAL"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}