{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Profile & Video Tracker - Followers, Views, Alerts",
    "description": "TikTok profile and video tracker, no login: exact followers, likes, videos and bio; video views, likes, comments, shares, saves and engagement. Growth per run, 7 and 30 days, milestones, new posts, removed videos. Alerts to Slack, Discord, Teams, Telegram.",
    "version": "0.1",
    "x-build-id": "nF3LXEeli48IfzuKf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/akhil_rajesh~tiktok-profile-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-akhil_rajesh-tiktok-profile-tracker",
        "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/akhil_rajesh~tiktok-profile-tracker/runs": {
      "post": {
        "operationId": "runs-sync-akhil_rajesh-tiktok-profile-tracker",
        "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/akhil_rajesh~tiktok-profile-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-akhil_rajesh-tiktok-profile-tracker",
        "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": "Usernames (@nasa or nasa), profile links (https://www.tiktok.com/@nasa) or share links (vm.tiktok.com/...), one per line. A video link here reads its author's profile. Up to 10,000 profiles and videos in all.",
            "items": {
              "type": "string"
            }
          },
          "videos": {
            "title": "TikTok videos (to track by link)",
            "type": "array",
            "description": "Video links (https://www.tiktok.com/@nasa/video/7679483952507276558), share links or video ids, one per line: each video's views, likes, comments, shares, saves, caption, hashtags, music, duration, posting time and engagement rate, with what it gained since the last run. TikTok doesn't list a profile's videos to visitors without a login, so videos are read by link.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Profiles and videos returned (and charged) at most per run. With Only changes, it caps the changed ones returned; changes past it are reported by the next run.",
            "default": 1000
          },
          "onlyChanges": {
            "title": "Only changes since the last run",
            "type": "boolean",
            "description": "Return only profiles and videos where something changed since the last run (a change of the kinds below: new videos posted, a follower milestone, a follower jump or drop, a new username, name, bio or link, or a verified badge gained or lost; for a video, a views milestone or jump, a new caption, or its removal). Every run keeps each one's history either way; the first run returns everything as its baseline. Schedule it (every day, every hour) to monitor."
          },
          "changeTypes": {
            "title": "Changes that count",
            "type": "array",
            "description": "With Only changes: the changes that make a profile or video come back. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "newVideos",
                "milestone",
                "followersJump",
                "followersDrop",
                "usernameChanged",
                "nicknameChanged",
                "bioChanged",
                "bioLinkChanged",
                "verifiedChanged",
                "viewsMilestone",
                "viewsJump",
                "captionChanged",
                "videoRemoved"
              ],
              "enumTitles": [
                "New videos posted",
                "Follower milestone passed (1K, 10K, 100K, 1M...)",
                "Follower jump",
                "Follower drop",
                "Username changed",
                "Name changed",
                "Bio changed",
                "Bio link changed",
                "Verification changed",
                "Video: views milestone passed (10K, 100K, 1M...)",
                "Video: views jump",
                "Video: caption changed",
                "Video: removed"
              ]
            }
          },
          "followersJumpPercent": {
            "title": "Follower jump (%)",
            "minimum": 0.1,
            "maximum": 10000,
            "type": "number",
            "description": "A follower jump or drop is a move of at least this much since the last reported one (or the first run). Smaller moves add up until they reach it.",
            "default": 5
          },
          "viewsJumpPercent": {
            "title": "Views jump (%)",
            "minimum": 0.1,
            "maximum": 100000,
            "type": "number",
            "description": "A video's views jump is a rise of at least this much since the last reported one (or the first run). Smaller rises add up until they reach it.",
            "default": 20
          },
          "includeHistory": {
            "title": "Daily history in each row",
            "type": "boolean",
            "description": "Add the last 30 daily readings to each row (followers, likes and videos for a profile; views, likes, comments, shares and saves for a video), for charts.",
            "default": true
          },
          "saveImages": {
            "title": "Save profile pictures and video covers",
            "type": "boolean",
            "description": "Keep a copy of each profile picture and video cover in the run's key-value store, with a stable link in the row (avatarStoredUrl, coverStoredUrl). TikTok's own image links expire within days. Free; the run takes a little longer.",
            "default": false
          },
          "alertWebhookUrl": {
            "title": "Alert webhook URL",
            "type": "string",
            "description": "Post each run's changed profiles to Slack, Discord or Microsoft Teams (their incoming-webhook URL), or to any HTTPS endpoint that takes JSON (Zapier, Make, n8n). The first run posts a short 'alerts are set up' message."
          },
          "telegramBotToken": {
            "title": "Telegram bot token (alerts to Telegram)",
            "type": "string",
            "description": "Post each run's changed profiles to a Telegram chat through your own bot: its token from @BotFather (123456789:AAH...). Add the bot to the chat (to a channel as an admin that can post)."
          },
          "telegramChatId": {
            "title": "Telegram chat id",
            "type": "string",
            "description": "Where the bot posts: a public channel or group (@mychannel), or a chat id (-1001234567890 for a private group or channel; your own id for a direct message, from @userinfobot)."
          },
          "alertChangeTypes": {
            "title": "Alert on",
            "type": "array",
            "description": "The changes alerts post. Leave empty for new videos, milestones, follower jumps, username changes, views milestones and jumps, and removed videos.",
            "items": {
              "type": "string",
              "enum": [
                "newVideos",
                "milestone",
                "followersJump",
                "followersDrop",
                "usernameChanged",
                "nicknameChanged",
                "bioChanged",
                "bioLinkChanged",
                "verifiedChanged",
                "viewsMilestone",
                "viewsJump",
                "captionChanged",
                "videoRemoved"
              ],
              "enumTitles": [
                "New videos posted",
                "Follower milestone passed",
                "Follower jump",
                "Follower drop",
                "Username changed",
                "Name changed",
                "Bio changed",
                "Bio link changed",
                "Verification changed",
                "Video: views milestone passed",
                "Video: views jump",
                "Video: caption changed",
                "Video: removed"
              ]
            }
          },
          "historyName": {
            "title": "History name",
            "type": "string",
            "description": "Keep a separate history for this monitor (a-z, 0-9 and hyphens), so its gains are measured from its own runs. Leave empty to share the default one."
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: TikTok's profile and video pages answer Apify's servers directly. You can use your own proxies or Apify's datacenter proxies; residential proxies aren't available in this Actor."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}