{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Creator Email Scraper — Emails, Phones & Socials",
    "description": "🔥 Up to 20% OFF! Scrape TikTok creator contacts — email, phone, socials via link-in-bio, follower & likes velocity, which video is going viral. MX-verified, residential proxy built in. Perfect for influencer outreach & lead generation. ⚡",
    "version": "0.0",
    "x-build-id": "rNWgBF3QrXz5Z8Yoo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bgfc97~tiktok-creator-email-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bgfc97-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/bgfc97~tiktok-creator-email-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bgfc97-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/bgfc97~tiktok-creator-email-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bgfc97-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": {
          "usernames": {
            "title": "TikTok usernames or profile URLs",
            "type": "array",
            "description": "Known creators to look up. Accepts @handles (e.g. @nasa), bare usernames (nasa), or full profile URLs (https://www.tiktok.com/@nasa). Leave empty if you only want to discover creators by keyword or hashtag.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Discover by keyword",
            "type": "array",
            "description": "DISCOVERY mode. Search terms (e.g. 'fitness coach', 'vegan recipes') — the Actor resolves the creators behind them and scrapes each one, so you can build lead lists without knowing handles. Best-effort: depends on what TikTok exposes to the proxy session; it degrades gracefully if TikTok serves a challenge.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Discover by hashtag",
            "type": "array",
            "description": "DISCOVERY mode. Hashtags (with or without #, e.g. 'skincare') — the Actor collects the creators posting under them and scrapes each one. Best-effort, same as keywords.",
            "items": {
              "type": "string"
            }
          },
          "sounds": {
            "title": "Discover by sound / music",
            "type": "array",
            "description": "DISCOVERY mode. TikTok sound/music page URLs (https://www.tiktok.com/music/...-1234567890) or bare numeric music IDs — the Actor collects the creators who used that sound and scrapes each one. Great for trend-jacking a viral audio. Best-effort, same as keywords/hashtags.",
            "items": {
              "type": "string"
            }
          },
          "maxProfilesPerQuery": {
            "title": "Max creators per keyword / hashtag / sound",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Cap on how many creators each keyword, hashtag or sound may resolve, so one broad query can't consume the whole run.",
            "default": 30
          },
          "discoveryPages": {
            "title": "Discovery pages per query",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many pages to follow on each discovery API endpoint (the cursor is followed for scale). More pages = more creators per term, more proxy bandwidth. 1-10.",
            "default": 2
          },
          "searchRegion": {
            "title": "Search region (ISO country code)",
            "type": "string",
            "description": "Optional 2-letter country bias for keyword/hashtag discovery (e.g. US, GB, BR). Leave blank for no bias.",
            "default": ""
          },
          "defaultCountry": {
            "title": "Default country for phone numbers (ISO code)",
            "type": "string",
            "description": "2-letter country code (e.g. BR, MX, US, PT) used to normalize DOMESTIC-format phone numbers to E.164. A creator who writes '(11) 98765-4321' or '67 99183-1053' in their bio has no country code — set this to turn those into correct international numbers (e.g. BR → +5511987654321) and ready-to-send WhatsApp links. Leave blank to only accept numbers that already include a country code (safer when creators span many countries). Numbers written with a leading '+' are always kept as-is.",
            "default": ""
          },
          "whatsappMessageTemplate": {
            "title": "WhatsApp message template (optional)",
            "type": "string",
            "description": "Optional. If set, each lead's WhatsApp click-to-chat link (waLink / waLinks) is pre-filled with this message. Placeholders: {firstName}, {nickname}, {username}, {niche} (e.g. 'Oi {firstName}, vi seu perfil sobre {niche} e queria te apresentar uma parceria'). Leave blank for a plain wa.me link with no pre-filled text.",
            "default": ""
          },
          "skipUsernames": {
            "title": "Skip these usernames",
            "type": "array",
            "description": "Handles to exclude before any lookup — so creators you already scraped in a previous run are neither fetched nor charged again.",
            "items": {
              "type": "string"
            }
          },
          "expandLinkInBio": {
            "title": "Expand the link-in-bio",
            "type": "boolean",
            "description": "ON by default. When the creator's bio link points to a Linktree / Beacons / Bio.site / Carrd / personal site, the Actor also fetches that page (through the proxy) and pulls the emails, phone numbers and social profiles found there — the richest source of a creator's real contact. Turn off to only read the TikTok profile page itself.",
            "default": true
          },
          "deepExpand": {
            "title": "One-hop deep crawl (contact / about pages)",
            "type": "boolean",
            "description": "ON by default. After expanding the link-in-bio, follow up to a few of the creator's OWN outbound links (preferring /contact, /about, /impressum pages) and mine those too. Catches the business email that isn't on the Linktree itself. Adds a little proxy bandwidth per profile.",
            "default": true
          },
          "maxDeepPages": {
            "title": "Max deep-crawl pages per profile",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "How many of the creator's own pages the one-hop crawl may fetch (0-8).",
            "default": 3
          },
          "verifyEmailMx": {
            "title": "Verify email deliverability (DNS MX)",
            "type": "boolean",
            "description": "ON by default. For every email found, do a DNS MX lookup on its domain to confirm the domain actually accepts mail — a real deliverability signal (so you don't waste outreach on dead domains). Also detects the email host (Google Workspace, Microsoft 365, Zoho, Proton…). Cheap, cached, no proxy used. Adds a 'deliverableEmails' list and per-email 'hasMx' / 'mxProvider'.",
            "default": true
          },
          "computeEngagement": {
            "title": "Compute engagement rate & posting cadence",
            "type": "boolean",
            "description": "ON by default. Fetches the creator's recent videos to compute the REAL engagement rate (avg likes+comments+shares+saves vs followers and vs views), posting cadence, last-active date and an activity status. Best-effort (TikTok may withhold the list); when it does, the Actor still returns a GUARANTEED lifetime engagement proxy from the profile stats. Adds a little proxy bandwidth per profile.",
            "default": true
          },
          "maxEngagementVideos": {
            "title": "Recent videos to sample for engagement",
            "minimum": 1,
            "maximum": 35,
            "type": "integer",
            "description": "How many recent videos to average when computing the engagement rate (1-35).",
            "default": 12
          },
          "inferNiche": {
            "title": "Infer creator niche / category",
            "type": "boolean",
            "description": "ON by default. Classifies each creator into a niche (fitness, beauty, fashion, food, travel, tech, gaming, finance, business, parenting, pets, music, dance, comedy, education, health, art, photography, sports, real estate, …) from the bio and TikTok category, multilingual (EN/PT/ES + emoji). Adds 'niche', 'secondaryNiche' and a confidence.",
            "default": true
          },
          "resolveIdentities": {
            "title": "Resolve cross-platform handles",
            "type": "boolean",
            "description": "ON by default. Normalizes the Instagram / YouTube / X / Facebook / LinkedIn profiles found in the bio and link-in-bio into canonical URLs + clean handles, with a 'same-creator' confidence (how closely each handle matches the TikTok identity). Adds flat columns (instagramHandle, youtube, twitter…) and a 'crossPlatformReach'.",
            "default": true
          },
          "dedupeAcrossRuns": {
            "title": "Remember creators across runs (persistent dedupe)",
            "type": "boolean",
            "description": "OFF by default. When ON, every delivered handle is remembered in this Actor's key-value store, and future runs automatically skip creators already captured — ideal for scheduled/weekly lead runs so you never re-fetch or re-pay for the same creator.",
            "default": false
          },
          "trackChanges": {
            "title": "Track changes across runs (turn the scraper into a monitor)",
            "type": "boolean",
            "description": "OFF by default. When on, each delivered creator's compact snapshot is kept in a named Key-Value store (survives between runs), so the NEXT run with the same `monitorKey` adds a `change_since` block to every creator — **follower growth + velocity** (followers/day over the real elapsed time = who's rising), **total-likes velocity** (content resonance), a **new creator** that appeared in a watched hashtag/sound/keyword, a **new contact channel** (email/WhatsApp/phone/bio link = new outreach), **@username / name** changes (keyed on the stable user id), **monetization** (became a TikTok-Shop seller / commerce), **verification** gained/lost, going **private**, **open-to-collab** intent appearing, engagement-rate & lead-score deltas, new videos and influencer-tier milestones — plus one free `monitor_summary` row (new contacts, fastest-growing, trending by hashtag/sound). Off = unchanged output, zero monitor columns. Uses its own store namespace, separate from the de-dupe store.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key (watchlist name)",
            "type": "string",
            "description": "Used by both `trackChanges` and `trackVideoEngagement`. Names the monitor's memory so the SAME watchlist diffs across runs: reuse the same key each run of a campaign to accumulate history; use different keys to keep watchlists separate. Leave empty to auto-derive a stable key from the usernames/hashtags/sounds/keywords you pass.",
            "default": ""
          },
          "trackVideoEngagement": {
            "title": "Track per-video engagement across runs (content monitor — new videos, rising videos, plays/hour)",
            "type": "boolean",
            "description": "OFF by default, and SEPARATE from `trackChanges` (which watches the account: followers, total likes, how MANY videos). This watches the CONTENT: each delivered creator's recent videos are kept in their own named Key-Value store (survives between runs, keyed by `monitorKey`), so the NEXT run with the same key adds a `content_monitor` block to every creator — **which videos are new** (with URL + caption), each existing video's engagement **curve** (plays / likes / comments / shares delta) + **velocity** (plays/hour & likes/hour over the real elapsed time = catch the breakout), the **fastest-rising video** (biggest play velocity) vs the **top video** (current play leader), and a per-video engagement rate — plus one free `content_monitor_summary` row (viral videos across creators, creators whose plays are bombing). It RIDES ON the same recent-video fetch `computeEngagement` already does, so with that on (the default) it adds ZERO extra requests. Best-effort: TikTok often withholds the video list to datacenter IPs — when a creator's feed doesn't load this run the block is `feed_available:false` and the stored index is kept untouched (run with residential proxy for a reliable feed). Off = unchanged output, zero content columns.",
            "default": false
          },
          "videoTrackCap": {
            "title": "Videos tracked per creator (content monitor)",
            "minimum": 5,
            "maximum": 50,
            "type": "integer",
            "description": "How many of each creator's recent videos the content monitor indexes and compares across runs (5–50). Bounds the stored index and keeps an always-on monitor from growing without limit. Only used when `trackVideoEngagement` is on.",
            "default": 30
          },
          "minFollowers": {
            "title": "Min followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only creators with at least this many followers (0 = no minimum). Filtered-out creators are not charged.",
            "default": 0
          },
          "maxFollowers": {
            "title": "Max followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only creators with at most this many followers (0 = no maximum). Useful to target micro-influencers. Filtered-out creators are not charged.",
            "default": 0
          },
          "onlyVerified": {
            "title": "Only verified accounts",
            "type": "boolean",
            "description": "Keep only verified (blue-check) creators.",
            "default": false
          },
          "onlyCommerce": {
            "title": "Only commerce / TikTok-Shop sellers",
            "type": "boolean",
            "description": "Keep only accounts flagged as a business / commerce user or TikTok-Shop seller.",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only creators with an email",
            "type": "boolean",
            "description": "Keep only creators for whom at least one email was found. Not-charged for creators dropped by this filter.",
            "default": false
          },
          "onlyWithWebsite": {
            "title": "Only creators with a website",
            "type": "boolean",
            "description": "Keep only creators whose link-in-bio resolves to their own website (not just a social profile).",
            "default": false
          },
          "emailDomainAllowlist": {
            "title": "Email domain allowlist",
            "type": "array",
            "description": "If set, keep only emails on these domains (e.g. gmail.com, yourbrand.com). Matches the full domain or its registrable root.",
            "items": {
              "type": "string"
            }
          },
          "emailDomainBlocklist": {
            "title": "Email domain blocklist",
            "type": "array",
            "description": "Drop emails on these domains (e.g. a vendor/support domain you never want).",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many profiles to process in parallel (1-20). Each profile is isolated — one failure never aborts the run.",
            "default": 5
          },
          "maxItems": {
            "title": "Max profiles (overall)",
            "minimum": 0,
            "type": "integer",
            "description": "Overall cap on the number of profiles processed (list + discovery). 0 = no limit.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "TikTok blocks datacenter IPs with an anti-bot challenge, so this Actor needs Apify Proxy on the RESIDENTIAL group (the default below). The user running the Actor pays for this proxy. Leave it on residential; only change the groups if you know a different tier works for you.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "timeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout per page fetch (10-120).",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}