{
  "openapi": "3.0.1",
  "info": {
    "title": "Tiktok Ultimate Lead Scraper",
    "description": "It downloads video, subtitle, exposes TikTok's internal algorithmic signals, including AI Buyer Intent flags on comments, Creator & contact details of users who leave comments, Visual Quality Scores (VQScore), shadowban/moderation verdicts, and clean plain-text voice transcripts.",
    "version": "0.1",
    "x-build-id": "642e7nBpxetRz1r8e"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ilborso~tiktok-ultimate-lead-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ilborso-tiktok-ultimate-lead-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/ilborso~tiktok-ultimate-lead-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ilborso-tiktok-ultimate-lead-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/ilborso~tiktok-ultimate-lead-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ilborso-tiktok-ultimate-lead-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": {
          "directUrls": {
            "title": "Direct Video URLs",
            "type": "array",
            "description": "List of specific TikTok video URLs to scrape (e.g., https://www.tiktok.com/@zarsus/video/7700316094258564373).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search Queries (Keywords)",
            "type": "array",
            "description": "Free-text search queries to discover and scrape TikTok videos.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "Hashtags to discover and scrape TikTok videos (with or without #).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerSearch": {
            "title": "Max Videos per Query / Hashtag",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of videos to extract for each search query or hashtag.",
            "default": 5
          },
          "profiles": {
            "title": "Creator Profiles / Usernames",
            "type": "array",
            "description": "List of TikTok creator usernames to scrape (e.g. 'garyvee', 'mrbeast', with or without '@').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerProfile": {
            "title": "Max Videos per Profile",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of recent videos to extract from each creator profile.",
            "default": 10
          },
          "oldestPostDate": {
            "title": "Oldest Post Date Filter",
            "enum": [
              "ALL",
              "LAST_1H",
              "LAST_24H",
              "LAST_7DAYS",
              "LAST_MONTH",
              "LAST_3MONTH",
              "LAST_6MONTH",
              "LAST_YEARS"
            ],
            "type": "string",
            "description": "Filter out videos published before the selected timeframe:\n- ALL: Scrape all videos without any date limitation (default).\n- LAST_1H: Scrape only videos published within the last 1 hour.\n- LAST_24H: Scrape only videos published within the last 24 hours.\n- LAST_7DAYS: Scrape only videos published within the last 7 days.\n- LAST_MONTH: Scrape only videos published within the last 30 days (1 month).\n- LAST_3MONTH: Scrape only videos published within the last 90 days (3 months).\n- LAST_6MONTH: Scrape only videos published within the last 180 days (6 months).\n- LAST_YEARS: Scrape only videos published within the last 365 days (1 year).",
            "default": "ALL"
          },
          "crawlLinkInBio": {
            "title": "Deep Link-in-Bio Contact Crawler",
            "type": "boolean",
            "description": "Crawls external link-in-bio landing pages (Linktree, Beacons, Stan Store, Snipfeed, etc.) or websites to extract hidden emails, WhatsApp numbers, and social channels, backfilling missing author emails.",
            "default": false
          },
          "minFollowers": {
            "title": "Minimum Followers Filter",
            "minimum": 0,
            "type": "integer",
            "description": "Filter out creators with fewer followers than this threshold. Useful for filtering out casual personal accounts."
          },
          "maxFollowers": {
            "title": "Maximum Followers Filter",
            "minimum": 0,
            "type": "integer",
            "description": "Filter out creators with more followers than this threshold. Ideal for targeting micro-influencers (<100k)."
          },
          "minEngagementRate": {
            "title": "Minimum Engagement Rate % Filter",
            "minimum": 0,
            "type": "number",
            "description": "Filter out videos/creators whose engagement rate (% on views) is below this threshold (e.g. 3.0 for 3%)."
          },
          "includeTranscripts": {
            "title": "Extract Spoken Transcripts (WebVTT to Text)",
            "type": "boolean",
            "description": "Extracts auto-generated and translated subtitles and converts them into clean, plain-text transcripts ready for AI/LLMs.",
            "default": true
          },
          "subtitleLanguage": {
            "title": "Subtitle Language Filter",
            "type": "string",
            "description": "Specify a language code (e.g., 'en', 'it', 'es', 'ru') or 'all' to extract all available subtitle languages.",
            "default": "all"
          },
          "downloadComments": {
            "title": "Extract Video Comments",
            "type": "boolean",
            "description": "Enables comment extraction including hidden algorithmic scores, user age group predictions, and purchase intent flags.",
            "default": true
          },
          "maxCommentsPerVideo": {
            "title": "Max Comments per Video",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of comments to extract per video (set to 0 for unlimited/all comments).",
            "default": 100
          },
          "onlyHighPurchaseIntentComments": {
            "title": "Only High Purchase Intent Comments (Lead Gen Mode)",
            "type": "boolean",
            "description": "If enabled, filters comments to return ONLY those flagged by TikTok's internal AI as having High Purchase Intent (is_high_purchase_intent = true).",
            "default": false
          },
          "enrichHighIntentCommenters": {
            "title": "Enrich High-Intent Commenters with Contact Data ($)",
            "type": "boolean",
            "description": "When enabled, visits the public TikTok profile of commenters flagged with high purchase intent (is_high_purchase_intent = true) to extract their email, phone, WhatsApp, Instagram, Telegram, and link-in-bio.",
            "default": false
          },
          "maxCommentersToEnrich": {
            "title": "Max High-Intent Commenters to Enrich per Video",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of unique high-purchase-intent commenter profiles to scrape per video. Keeps proxy credit usage controlled.",
            "default": 50
          },
          "unwindComments": {
            "title": "Unwind Comments to Dataset Rows (CSV/Make/Zapier Friendly)",
            "type": "boolean",
            "description": "If enabled, outputs 1 dataset row per comment (with video fields included) instead of nesting comments inside an array.",
            "default": false
          },
          "downloadVideo": {
            "title": "Download Video to Apify Storage (Direct Download Link)",
            "type": "boolean",
            "description": "Downloads the full MP4 video and saves it permanently to Apify Key-Value Store, providing a permanent direct download link (video.download_url_apify) in the output dataset.",
            "default": true
          },
          "webhookUrl": {
            "title": "Completion Webhook URL",
            "type": "string",
            "description": "HTTP POST webhook endpoint to notify upon scraper execution completion (compatible with Make, Zapier, n8n, Slack, or custom servers).",
            "default": ""
          },
          "geoCode": {
            "title": "Target Country (Geo-Location)",
            "enum": [
              "AF",
              "AL",
              "DZ",
              "AS",
              "AD",
              "AO",
              "AI",
              "AQ",
              "AG",
              "AR",
              "AM",
              "AW",
              "AU",
              "AT",
              "AZ",
              "BS",
              "BH",
              "BD",
              "BB",
              "BY",
              "BE",
              "BZ",
              "BJ",
              "BM",
              "BT",
              "BO",
              "BQ",
              "BA",
              "BW",
              "BV",
              "BR",
              "IO",
              "VG",
              "BN",
              "BG",
              "BF",
              "BI",
              "CV",
              "KH",
              "CM",
              "CA",
              "KY",
              "CF",
              "TD",
              "CL",
              "CN",
              "CX",
              "CC",
              "CO",
              "KM",
              "CD",
              "CG",
              "CK",
              "CR",
              "CI",
              "HR",
              "CU",
              "CW",
              "CY",
              "CZ",
              "DK",
              "DJ",
              "DM",
              "DO",
              "EC",
              "EG",
              "SV",
              "GQ",
              "ER",
              "EE",
              "SZ",
              "ET",
              "FK",
              "FO",
              "FJ",
              "FI",
              "FR",
              "GF",
              "PF",
              "TF",
              "GA",
              "GM",
              "GE",
              "DE",
              "GH",
              "GI",
              "GR",
              "GL",
              "GD",
              "GP",
              "GU",
              "GT",
              "GG",
              "GN",
              "GW",
              "GY",
              "HT",
              "HM",
              "VA",
              "HN",
              "HK",
              "HU",
              "IS",
              "IN",
              "ID",
              "IR",
              "IQ",
              "IE",
              "IM",
              "IL",
              "IT",
              "JM",
              "JP",
              "JE",
              "JO",
              "KZ",
              "KE",
              "KI",
              "KW",
              "KG",
              "LA",
              "LV",
              "LB",
              "LS",
              "LR",
              "LY",
              "LI",
              "LT",
              "LU",
              "MO",
              "MG",
              "MW",
              "MY",
              "MV",
              "ML",
              "MT",
              "MH",
              "MQ",
              "MR",
              "MU",
              "YT",
              "MX",
              "FM",
              "MD",
              "MC",
              "MN",
              "ME",
              "MS",
              "MA",
              "MZ",
              "MM",
              "NA",
              "NR",
              "NP",
              "NL",
              "NC",
              "NZ",
              "NI",
              "NE",
              "NG",
              "NU",
              "NF",
              "KP",
              "MK",
              "MP",
              "NO",
              "OM",
              "PK",
              "PW",
              "PS",
              "PA",
              "PG",
              "PY",
              "PE",
              "PH",
              "PN",
              "PL",
              "PT",
              "PR",
              "QA",
              "RO",
              "RU",
              "RW",
              "RE",
              "BL",
              "SH",
              "KN",
              "LC",
              "MF",
              "PM",
              "VC",
              "WS",
              "SM",
              "ST",
              "SA",
              "SN",
              "RS",
              "SC",
              "SL",
              "SG",
              "SX",
              "SK",
              "SI",
              "SB",
              "SO",
              "ZA",
              "GS",
              "KR",
              "SS",
              "ES",
              "LK",
              "SD",
              "SR",
              "SJ",
              "SE",
              "CH",
              "SY",
              "TW",
              "TJ",
              "TZ",
              "TH",
              "TL",
              "TG",
              "TK",
              "TO",
              "TT",
              "TN",
              "TM",
              "TC",
              "TV",
              "TR",
              "VI",
              "UG",
              "UA",
              "AE",
              "GB",
              "US",
              "UM",
              "UY",
              "UZ",
              "VU",
              "VE",
              "VN",
              "WF",
              "EH",
              "YE",
              "ZM",
              "ZW",
              "AX"
            ],
            "type": "string",
            "description": "Target country for residential Super Proxies. Select an ISO 2-letter country code to route requests through high-trust residential IPs in that region.",
            "default": "US"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}