{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Creative Center Top Ads & Hook Analyzer Pro",
    "description": "Extract TikTok Creative Center Top Ads with 3-second hook retention index (0-100 scale), peak CTR seconds, landing pages, HD MP4 links & B2B brand summaries — no login cookies, $0 default proxy, from $1.50/1k base ads ($4.00/1k with deep details, $2.50/1k brands, +$1.00/1k cloud assets).",
    "version": "1.2",
    "x-build-id": "spIzchgLAfDd2ZrfD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/voxatools~tiktok-creative-center-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-voxatools-tiktok-creative-center-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/voxatools~tiktok-creative-center-scraper/runs": {
      "post": {
        "operationId": "runs-sync-voxatools-tiktok-creative-center-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/voxatools~tiktok-creative-center-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-voxatools-tiktok-creative-center-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": {
          "resultType": {
            "title": "1. Output Mode (Video Ads Spy vs. B2B Brand & Advertiser Lead-Gen)",
            "enum": [
              "ads",
              "advertisers",
              "brands"
            ],
            "type": "string",
            "description": "Select 'ads' (default) to extract individual TikTok Creative Center video ads with 3-second relative hook retention index, CTR top bracket, landing pages, direct MP4 links, and AI script prompts (from $1.50/1k base ads; optional add-ons: detail +$2.50/1k [$4.00/1k total], asset +$1.00/1k saved files). Select 'advertisers' (or 'brands') to consolidate results across the run into 1 B2B lead summary row per unique brand/domain ($2.50/1k brands effective total: $1.50/1k base dataset item + $1.00/1k advertiser event delta).",
            "default": "ads"
          },
          "keywords": {
            "title": "2. Target Niche Industries, Sub-Industries, Verified Keywords, or 19-Digit Ad IDs",
            "type": "array",
            "description": "List of queries resolved via 3 explicit modes: (1) NICHE_INDUSTRY_RESOLUTION — maps niche categories (e.g., 'skincare', 'beauty', 'gaming', 'fitness', 'supplements', 'fashion', 'ecommerce') to all 258 official TikTok industries & sub-industries; (2) DIRECT_MATERIAL_ID_LOOKUP — 19-digit TikTok material_id; (3) KEYWORD_OR_BRAND_SEARCH — sends keyword=<query> to upstream and strictly verifies brandName/adTitle/landingPageUrl match (note: unauthenticated Creative Center primarily indexes by industry).",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "3. Single Niche / Keyword / Material ID Query (Optional Alias for API/MCP)",
            "type": "string",
            "description": "Optional single niche industry, keyword, or 19-digit TikTok material ID (e.g., 'skincare') merged automatically with 'keywords' for single-query API and MCP calls."
          },
          "country": {
            "title": "4. Target Country / Ad Market",
            "enum": [
              "ALL",
              "US",
              "GB",
              "CA",
              "AU",
              "DE",
              "FR",
              "SG",
              "VN",
              "JP",
              "KR",
              "ID",
              "TH",
              "MY",
              "PH",
              "BR",
              "MX",
              "AE",
              "SA",
              "ES",
              "IT",
              "NL",
              "PL",
              "SE"
            ],
            "type": "string",
            "description": "Filter TikTok Top Ads served in a specific target market (ISO-2 country code such as US, GB, CA, AU, DE, FR, VN, SG, ID, TH, JP, KR, BR) or select 'ALL' for global showcase ads.",
            "default": "US"
          },
          "industry": {
            "title": "5. Official TikTok Industry / Sub-Industry Filter (Optional)",
            "type": "string",
            "description": "Optional industry name or 11-digit TikTok industry code from the 258 official industries & sub-industries (e.g., 'Beauty & Personal Care', 'Skincare', 'E-Commerce (Non-app)', 'Games', 'Dietary Supplements', or '14103000000'). Leave empty to auto-resolve from your keywords.",
            "default": ""
          },
          "expandSubIndustryToParent": {
            "title": "5b. Expand Specific Sub-Industry to Parent Industry When Needed (Optional)",
            "type": "boolean",
            "description": "When false (default), a specific sub-industry query (e.g., 'Oral Care' [14100000000] or 'Skincare' [14103000000]) strictly queries only that exact sub-industry and never mixes in sibling sub-industries. Set to true only when you want the engine to expand to the 11-digit parent industry if the sub-industry has fewer results than maxResults (records filled from the parent will be marked with expandedFromSubIndustryToParent=true).",
            "default": false
          },
          "objective": {
            "title": "6. Campaign Marketing Objective Filter",
            "enum": [
              "ALL",
              "CONVERSIONS",
              "PRODUCT_SALES",
              "LEAD_GENERATION",
              "TRAFFIC",
              "APP_INSTALLS",
              "VIDEO_VIEWS",
              "REACH"
            ],
            "type": "string",
            "description": "Filter ads by their declared TikTok Ads Manager campaign objective: All Objectives, Conversions, Product Sales (TikTok Shop), Lead Generation, Traffic, App Installs, Video Views, or Reach.",
            "default": "ALL"
          },
          "period": {
            "title": "7. Time Period Window (Last 7, 30, or 180 Days)",
            "enum": [
              "7",
              "30",
              "180"
            ],
            "type": "string",
            "description": "Timeframe for TikTok Creative Center showcase metrics: '7' (Last 7 days), '30' (Last 30 days), or '180' (Last 180 days — Default).",
            "default": "180"
          },
          "orderBy": {
            "title": "8. Primary Ranking & Sort Metric",
            "enum": [
              "for_you",
              "ctr",
              "like",
              "play_2s_rate",
              "play_6s_rate"
            ],
            "type": "string",
            "description": "Primary metric used to rank top ads: 'for_you' (TikTok Relevance Score), 'ctr' (Top CTR Bracket Leaders), 'like' (Most Likes), 'play_2s_rate' (2-Second Relative Retention Index), or 'play_6s_rate' (6-Second Relative Retention Index).",
            "default": "ctr"
          },
          "adLanguage": {
            "title": "9. Ad Spoken / Caption Language (Optional)",
            "type": "string",
            "description": "Optional ISO language code filter for the video ad's spoken audio or captions (e.g., 'en', 'es', 'vi', 'ja', 'de', 'fr', 'pt'). Leave empty for all languages.",
            "default": ""
          },
          "maxResults": {
            "title": "10. Max Ads per Keyword / Niche Query",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of unique TikTok ads to extract per query (1 to 1,000; default 25). Overcomes the ~5-ad unauthenticated web UI preview wall and 20-ad single-page API limit via multi-page/sub-industry pagination. Also accepts aliases 'maxAdsPerQuery' and 'maxItems' in API/MCP calls.",
            "default": 25
          },
          "includeHookRetention": {
            "title": "11. 🪝 Extract 3-Second Relative Hook Retention Index & Peak CTR Second (Included in Base Tier)",
            "type": "boolean",
            "description": "When enabled (default true), extracts upstream relative retention indices scaled 0-100 from play_retain_cnt (hookRetention3s, play2sRate, play6sRate, rawPlayRetain3s), steepest drop-off second (hookDropoffSecond / maxDropoffSecond), and peak CTR second strictly from retain_ctr (hookPeakSecond / peakCtrSecond; null when retain_ctr is absent) at $0 extra add-on cost.",
            "default": true
          },
          "onlyWinners": {
            "title": "12. 🏆 Only Top Heuristic CTR & Hook Candidates",
            "type": "boolean",
            "description": "When enabled, filters output strictly to creatives classified by our prioritization heuristic as '🏆 TOP_5_PCT_CTR_HOOK_LEADER' (Top 1%-5% CTR bracket + 3s hook retention index >= 10) or '🔥 TOP_20_PCT_HOOK_CANDIDATE' (Top <=20% CTR bracket + 3s hook retention index >= 8).",
            "default": false
          },
          "deduplicateSparkClones": {
            "title": "13. 📈 Deduplicate Same-Advertiser Spark & Material Clones (Zero Double-Charging)",
            "type": "boolean",
            "description": "When enabled (default true; alias 'deduplicateVisualClones'), merges duplicate material_id records belonging to the SAME advertiser identity (landingDomain/brandName) that share the same video or caption into 1 representative record while outputting 'materialClusterSize' (alias 'campaignScaleCount') and 'clonedMaterialIds' (where materialClusterSize === clonedMaterialIds.length includes the representative adId).",
            "default": true
          },
          "includeDetails": {
            "title": "14. 📊 Full Un-Truncated 5-Metric Keyframe Curves, 5 Industry Percentiles & Similar Ads Add-On (+$2.50 / 1,000 ads)",
            "type": "boolean",
            "description": "Note: 3s Hook Retention Index, Peak CTR Second, Landing Pages & MP4 URLs are ALREADY included in the $1.50/1k base tier! Enable this add-on (+$2.50/1k, bringing Base + Detail to $4.00/1k) only when you need all 5 full un-truncated second-by-second keyframe arrays (deepKeyframes), all 5 industry percentile benchmarks (industryPercentiles), and up to 6 recommended similar ads (recommendedSimilarAds). Charged only when detailVerified=true.",
            "default": false
          },
          "downloadAssets": {
            "title": "15. 💾 Archive MP4 Video Assets to Apify Key-Value Store (+$1.00 / 1,000 files)",
            "type": "boolean",
            "description": "Because TikTok CDN video links (tiktokcdn.com) contain 'x-expires' signatures that expire after ~6 hours, enable 'downloadAssets' to save binary .mp4 video files into your Apify Key-Value Store ('savedAssetUrl'; retained according to your Apify plan's Key-Value Store retention window [7-31+ days on default store, or indefinitely in a named store]).",
            "default": false
          },
          "downloadPreviews": {
            "title": "16. 🖼️ Archive Cover Thumbnail JPGs to Apify Key-Value Store (+$1.00 / 1,000 files)",
            "type": "boolean",
            "description": "When enabled, downloads and saves binary cover thumbnail images (.jpg) into your Apify Key-Value Store ('savedPreviewUrl') so thumbnails do not expire when TikTok CDN signatures rotate.",
            "default": false
          },
          "maxAssetSizeKb": {
            "title": "17. Max Downloaded Video / Image Size Limit (KB)",
            "minimum": 100,
            "maximum": 102400,
            "type": "integer",
            "description": "Maximum allowed file size in Kilobytes (KB) per downloaded MP4 video or JPG cover when 'downloadAssets' or 'downloadPreviews' is enabled (Default: 20480 KB = 20 MB).",
            "default": 20480
          },
          "onlyNewAds": {
            "title": "18. 📡 Scoped Delta Radar: Only Output Newly Observed or Updated Ads",
            "type": "boolean",
            "description": "When enabled on scheduled runs, isolates state by full filter scope (query + country + industry + period + orderBy + objective + adLanguage) in 'monitorStoreName', commits only after Dataset & Summary delivery, and emits only newly observed ('NEWLY_OBSERVED') or content/metric-updated ('CONTENT_OR_METRIC_UPDATED') creatives within the sampled window ($0.00 cost when 0 delta ads appear).",
            "default": false
          },
          "monitorStoreName": {
            "title": "19. Monitor Key-Value Store Name",
            "type": "string",
            "description": "Named Apify Key-Value Store used to persist scoped Delta Radar state (material IDs and deterministic content hashes) across scheduled runs when 'onlyNewAds' is enabled.",
            "default": "tiktok-creative-center-monitor"
          },
          "proxyConfiguration": {
            "title": "20. Proxy Configuration (Optional — $0 Direct Engine Works by Default)",
            "type": "object",
            "description": "Our Zero-Browser HTTP engine runs directly with $0 proxy cost by default (~280-450ms per list RPC call). Optional Apify Proxy configuration is available as a fallback for high-volume bulk workloads."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}