{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Followers Scraper: Export Followers & Following",
    "description": "Export the followers and following list of any public TikTok profile: username, name, bio, email in bio, followers, likes, videos, verified badge and when each follow happened. Filter influencers and leads. Track new followers and unfollows on a schedule. No login.",
    "version": "0.1",
    "x-build-id": "wZ6xCDPgoxB4qijtt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~tiktok-followers-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-tiktok-followers-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/s_actors~tiktok-followers-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-tiktok-followers-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/s_actors~tiktok-followers-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-tiktok-followers-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",
        "required": [
          "profiles"
        ],
        "properties": {
          "profiles": {
            "title": "👤 TikTok profiles",
            "type": "array",
            "description": "One per line: profile links (tiktok.com/@user), @username or username. The account must be public.",
            "items": {
              "type": "string"
            }
          },
          "lists": {
            "title": "📋 What to get",
            "enum": [
              "followers",
              "following",
              "both"
            ],
            "type": "string",
            "description": "Followers: the accounts that follow the profile, newest first. Following: the accounts the profile follows, latest follows first (some accounts hide this list).",
            "default": "followers"
          },
          "maxPerProfile": {
            "title": "🔢 Max accounts per list",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many accounts to return from each list of each profile. TikTok shows only the latest 10,000 followers of a profile to anyone, so that is the maximum.",
            "default": 1000
          },
          "exactFollowTime": {
            "title": "🕒 Exact follow time (slower)",
            "type": "boolean",
            "description": "Add followedAt: the exact date and time each account followed (or was followed). Reads one account per request, about 3 accounts per second instead of ~80, so use it for up to a few thousand accounts. Without it every row has followedAfter / followedBefore: the time window of its batch of 30.",
            "default": false
          },
          "minFollowers": {
            "title": "Min followers of the account",
            "minimum": 0,
            "type": "integer",
            "description": "Skip accounts with fewer followers, e.g. 1000 to find creators and drop bots and empty accounts."
          },
          "maxFollowers": {
            "title": "Max followers of the account",
            "minimum": 0,
            "type": "integer",
            "description": "Skip accounts with more followers, e.g. 100000 for micro-influencers. Empty = no limit."
          },
          "verifiedOnly": {
            "title": "Verified accounts only",
            "type": "boolean",
            "description": "Return only accounts with TikTok's blue verified badge.",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only accounts with an email in the bio",
            "type": "boolean",
            "description": "Return only accounts that put an email address in their bio (bioEmail), for outreach and lead lists.",
            "default": false
          },
          "bioKeywords": {
            "title": "Keywords in bio or name",
            "type": "array",
            "description": "Return only accounts whose bio, name or username contains one of these words (from the start of a word: \"coach\" finds \"coaching\"). Case does not matter.",
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "🆕 Only new followers",
            "type": "boolean",
            "description": "Return only accounts that were not in the list at the previous run of this Actor in your account (remembered in the key-value store tiktok-followers-state). The first run returns the latest accounts as a baseline; every later run returns only the new ones, with change = new.",
            "default": false
          },
          "detectUnfollows": {
            "title": "👋 Detect unfollows",
            "type": "boolean",
            "description": "Also add a row with change = unfollowed for every account that left the list since the previous run. Works for lists of up to 2,000 accounts (the whole list is read on every run).",
            "default": false
          },
          "maxConcurrency": {
            "title": "⚡ Profiles at the same time",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many lists are read at the same time. Each list is read page by page in order.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy",
            "type": "object",
            "description": "Requests go direct first and switch to Apify datacenter proxies (then residential) when TikTok refuses them. The default works for most runs.",
            "default": {
              "useApifyProxy": true
            }
          },
          "debugLog": {
            "title": "🐞 Debug log",
            "type": "boolean",
            "description": "Log every retried request (for troubleshooting).",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}