{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Profile Email Scraper",
    "description": "Find emails on TikTok profiles. Follows bio links and Linktree to recover emails the bio doesn't show, and pivots to Instagram/YouTube/website when needed.",
    "version": "0.0",
    "x-build-id": "wc0aMMEwnVhP9NxNr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lurkapi~tiktok-profile-email-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lurkapi-tiktok-profile-email-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/lurkapi~tiktok-profile-email-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lurkapi-tiktok-profile-email-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/lurkapi~tiktok-profile-email-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lurkapi-tiktok-profile-email-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": {
          "profiles": {
            "title": "TikTok profiles",
            "type": "array",
            "description": "List of TikTok profile URLs, @handles, or numeric profile IDs. You can mix all three formats in the same list.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags to discover profiles",
            "type": "array",
            "description": "Optional. For each hashtag, collect creators from recent videos.",
            "items": {
              "type": "string"
            }
          },
          "maxProfilesPerHashtag": {
            "title": "Max profiles per hashtag",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Cap how many creators to collect from each hashtag. Higher = more leads but more compute.",
            "default": 50
          },
          "keywords": {
            "title": "Keywords to discover profiles",
            "type": "array",
            "description": "Optional. Each keyword runs a TikTok user search. Catches creators whose handle, nickname, or bio matches the keyword. Returns up to ~60-70 creators per keyword.",
            "items": {
              "type": "string"
            }
          },
          "maxProfilesPerKeyword": {
            "title": "Max profiles per keyword",
            "minimum": 1,
            "maximum": 70,
            "type": "integer",
            "description": "Cap how many creators to collect from each keyword search. TikTok's user search returns at most ~60-70 unique creators per keyword.",
            "default": 50
          },
          "skipProfileIds": {
            "title": "Profile IDs to skip",
            "type": "array",
            "description": "Optional list of TikTok numeric profile IDs to skip (so you don't pay twice for profiles you've already scraped in a previous run). Profile IDs appear in every output row.",
            "items": {
              "type": "string"
            }
          },
          "crawlBioLinks": {
            "title": "Crawl bio links to find emails",
            "type": "boolean",
            "description": "When the email isn't in the bio, follow the link in the profile (Linktree, website, etc.) and scrape it. Recommended ON.",
            "default": true
          },
          "crossPlatformPivot": {
            "title": "Find creator on Instagram, X, YouTube, Threads ($)",
            "type": "boolean",
            "description": "Adds the creator's profile URL on Instagram, X, YouTube, and Threads to every output row. Charged per profile only when at least one platform URL is verified.",
            "default": true
          },
          "outputBio": {
            "title": "Include bio text",
            "type": "boolean",
            "description": "Add the creator's bio text to every output row.",
            "default": true
          },
          "outputBioLink": {
            "title": "Include bio link",
            "type": "boolean",
            "description": "Add the URL listed in the creator's bio (Linktree, website, etc.) to every output row.",
            "default": true
          },
          "outputStats": {
            "title": "Include follower / like / video counts",
            "type": "boolean",
            "description": "Add follower, following, total likes, and video counts to every output row.",
            "default": true
          },
          "outputVerified": {
            "title": "Include verified badge",
            "type": "boolean",
            "description": "Add a true/false verified badge field to every output row.",
            "default": true
          },
          "outputAvatar": {
            "title": "Include avatar URL",
            "type": "boolean",
            "description": "Add the creator's avatar image URL to every output row.",
            "default": false
          },
          "outputExternalLinks": {
            "title": "Include all external links found (IG, YT, website, Linktree…)",
            "type": "boolean",
            "description": "Add the full list of external links discovered in the bio and crawled pages to every output row.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}