{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Creator Discovery & Email Scraper",
    "description": "Find public TikTok creators by niche or profile URL. Get bio emails, linked website contacts, follower counts, and source URLs in an export-ready dataset. No login or other scraper required.",
    "version": "0.9",
    "x-build-id": "SefGAupgqLD5gONRY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/newbs~tiktok-creator-email-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-newbs-tiktok-creator-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/newbs~tiktok-creator-email-scraper/runs": {
      "post": {
        "operationId": "runs-sync-newbs-tiktok-creator-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/newbs~tiktok-creator-email-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-newbs-tiktok-creator-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": {
          "genres": {
            "title": "Discover accounts by genre",
            "maxItems": 3,
            "type": "array",
            "description": "Up to three topics, for example gym, yoga, or food. The Actor checks several TikTok search suggestion patterns, verifies each suggested handle on TikTok, and keeps accounts with name, handle, or bio evidence for the topic. Search coverage is limited and may return fewer accounts than requested.",
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 30
            }
          },
          "maxProfiles": {
            "title": "Maximum discovered accounts",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "At most this many verified accounts are added from genre discovery, subject to 100 total with supplied profiles. The Actor may return fewer when TikTok suggestions lack relevant accounts.",
            "default": 5
          },
          "scanWebsites": {
            "title": "Check linked public websites for contact details",
            "type": "boolean",
            "description": "Reads at most three public HTML pages on the profile's linked website, with a 2 MB decompressed limit per page. Returns email candidates with source URLs and contact-page links. No form submissions or outreach.",
            "default": true
          },
          "outputFilter": {
            "title": "Which accounts to export",
            "enum": [
              "all",
              "email",
              "contact_route"
            ],
            "type": "string",
            "description": "All keeps every checked account, subject to any user-set spending limit. Email exports accounts with a TikTok bio, verified optional Instagram bio, or attributed linked-site email. Contact route also includes accounts with a contact form, contact page, or viable bio website; marketplace, donation, payment, and streaming links alone do not qualify. Only stored profiles with an attributed public email trigger the paid event. The run summary still counts all checked accounts.",
            "default": "all"
          },
          "profiles": {
            "title": "TikTok profiles",
            "maxItems": 100,
            "type": "array",
            "description": "Optional known public handles such as @trainwithlo, or profile URLs. Up to 100 per run. You can instead provide genres.",
            "items": {
              "type": "string",
              "minLength": 2
            }
          },
          "excludeProfiles": {
            "title": "Skip these accounts during genre discovery",
            "maxItems": 1000,
            "type": "array",
            "description": "Optional previously collected TikTok handles or profile URLs. Discovery skips them so repeated niche runs can find different accounts. Explicit profiles are still returned when supplied.",
            "items": {
              "type": "string",
              "minLength": 2
            }
          },
          "minFollowers": {
            "title": "Minimum followers for discovered accounts",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Optional filter for genre-discovered accounts. Supplied handles are always returned. Accounts with unavailable follower counts are excluded when this is above zero.",
            "default": 0
          },
          "maxFollowers": {
            "title": "Maximum followers for discovered accounts",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Optional filter for genre-discovered accounts. Supplied handles are always returned.",
            "default": 1000000000
          },
          "maxSearchQueriesPerGenre": {
            "title": "Maximum search queries per genre",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Contact-focused discovery checks additional TikTok suggestions while a genre has too few accounts with a bio email or website. It tries distinct creator-name patterns first. Higher values may find more leads but make more requests.",
            "default": 20
          },
          "maxCandidatesChecked": {
            "title": "Maximum TikTok candidate profiles checked",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard per-run request budget for genre discovery. Does not count supplied profiles or linked websites.",
            "default": 200
          },
          "scanInstagramBios": {
            "title": "Also check matching Instagram bios (optional)",
            "type": "boolean",
            "description": "Off by default. The Actor normally researches TikTok and its bio-linked website. Enable this only if you also want Instagram web-bio email enrichment. A same-handle account requires a matching display name; a failed or unverified match is reported separately from a checked bio without an email.",
            "default": false
          },
          "instagramHandles": {
            "title": "Instagram handles that differ from TikTok (optional)",
            "type": "object",
            "description": "JSON object mapping a requested TikTok handle to its known Instagram handle or profile URL, for example {\"khaby.lame\":\"khaby00\"}. Use only accounts whose identity you have verified."
          },
          "useResidentialProxyForInstagram": {
            "title": "Use residential proxy for Instagram bios",
            "type": "boolean",
            "description": "On by default because Instagram's public profile metadata was unavailable from Apify's direct network in hosted tests. Requests stop after the bio metadata to limit proxy transfer. If the proxy is unavailable, the Actor tries a direct request. No other Actor or scraper is called.",
            "default": true
          },
          "useResidentialProxyForLinktree": {
            "title": "Retry blocked Linktree pages through residential proxy",
            "type": "boolean",
            "description": "On by default for contact discovery. Only if Linktree returns HTTP 406, retry that public page through Apify residential proxy. Compressed transfer reduces the extra charge. No other Actor or scraper is called.",
            "default": true
          },
          "videoUrls": {
            "title": "Known public video URLs (optional)",
            "maxItems": 100,
            "type": "array",
            "description": "Optional direct TikTok video links belonging to the requested profiles. The Actor reads each specified public video page itself. Automatic post discovery is not part of this contact-first Actor.",
            "items": {
              "type": "string",
              "pattern": "^https://(www\\.)?tiktok\\.com/@[A-Za-z0-9._]+/video/[0-9]+/?$"
            }
          },
          "videosPerProfile": {
            "title": "Maximum supplied videos per profile",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Used only when specific public video URLs are supplied. Video fetching adds a small amount of time and data transfer.",
            "default": 12
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}