{
  "openapi": "3.0.1",
  "info": {
    "title": "TokLead Dual - TikTok Email & Creator Profile Scraper",
    "description": "Extract verified emails, phone numbers, complete bio links, and collaboration contacts from TikTok creators and brands. Dual-Speed Engine: Fast Index & Deep Profile.",
    "version": "1.0",
    "x-build-id": "Rb4afPtKwoRfgbUCg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_studio~toklead-dual-mode/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_studio-toklead-dual-mode",
        "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/automation_studio~toklead-dual-mode/runs": {
      "post": {
        "operationId": "runs-sync-automation_studio-toklead-dual-mode",
        "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/automation_studio~toklead-dual-mode/run-sync": {
      "post": {
        "operationId": "run-sync-automation_studio-toklead-dual-mode",
        "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",
        "required": [
          "search_keywords"
        ],
        "properties": {
          "enrichment_mode": {
            "title": "Extraction & Enrichment Mode",
            "enum": [
              "fast_index",
              "deep_profile"
            ],
            "type": "string",
            "description": "Select Mode 1 for lightning-fast lead harvesting without extra clutter columns, or Mode 2 for full live profile dossiers with HD avatars, verified status, total likes, and video counts.",
            "default": "fast_index"
          },
          "search_keywords": {
            "title": "Search Keywords & Target Niches",
            "type": "array",
            "description": "Enter target niches, creator categories, or keywords to search for TikTok leads (e.g. 'clothing brand', 'fashion brand', 'fitness coach', 'ugc creator', 'dropshipping', 'beauty brand', 'real estate').",
            "default": [
              "clothing brand",
              "ugc creator"
            ],
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Target Hashtags (Optional)",
            "type": "array",
            "description": "Optional list of TikTok hashtags to target (e.g. 'fashiontok', 'apparel', 'ugccreator', 'fitness'). Leading # is handled automatically.",
            "default": [
              "fashiontok",
              "apparel"
            ],
            "items": {
              "type": "string"
            }
          },
          "direct_usernames": {
            "title": "Direct TikTok Usernames (Optional)",
            "type": "array",
            "description": "Optional list of specific TikTok usernames to look up directly (e.g. 'gymshark', 'mrbeast').",
            "items": {
              "type": "string"
            }
          },
          "location_filter": {
            "title": "Geographic Location Filter (Optional)",
            "type": "string",
            "description": "Target creators from specific cities, states, or countries (e.g. 'United States', 'California', 'Miami', 'London', 'Toronto')."
          },
          "only_custom_domains": {
            "title": "Only Private Corporate Domains (B2B Mode)",
            "type": "boolean",
            "description": "If enabled, filters out free webmail domains (@gmail.com, @yahoo.com, etc.) and keeps only private business domains (@brand.com).",
            "default": false
          },
          "max_results": {
            "title": "Maximum Leads Target",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The target number of verified leads to extract. The actor streams results in real time and completes once the target is reached.",
            "default": 10
          },
          "only_with_email": {
            "title": "Only Leads with Verified Email",
            "type": "boolean",
            "description": "Guarantees that every extracted creator record contains a verified email address.",
            "default": true
          },
          "extract_phone_numbers": {
            "title": "Extract Phone & WhatsApp Numbers",
            "type": "boolean",
            "description": "Automatically parses international contact and WhatsApp numbers from creator biographies.",
            "default": true
          },
          "extract_social_links": {
            "title": "Extract Social Channels & Bio Links",
            "type": "boolean",
            "description": "Detects Instagram, YouTube, Twitter/X, Telegram, and 25+ link-in-bio services (Linktree, Beacons, Stan Store, ShopMy, etc.).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Uses Apify Proxy pool to ensure uninterrupted high-speed extraction.",
            "default": {
              "useApifyProxy": true
            }
          },
          "deduplicateAcrossRuns": {
            "title": "Enable Cross-Run Deduplication",
            "type": "boolean",
            "description": "When enabled, remembers previously extracted TikTok creator profiles across runs using Apify Named Key-Value Stores. Any creator already extracted in previous runs will be skipped automatically, saving your Apify compute and quota.",
            "default": false
          },
          "deduplicationNamespace": {
            "title": "Deduplication Project Name (Optional)",
            "type": "string",
            "description": "Custom project tag for this deduplication memory list (e.g. 'q4-outreach'). Leave blank to use the default actor memory store.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}