{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Scraper API — Videos, Comments, Followers, Downloads",
    "description": "TikTok scraper and unofficial TikTok API on the mobile app: videos, no-watermark MP4 downloads, comments with replies, followers, profiles with bio emails, hashtags, sounds, search, LIVE and transcripts. Downloads, WhatsApp shares, AI labels, creator country. JSON/CSV/Excel. From $0.20/1k.",
    "version": "1.0",
    "x-build-id": "wqCroQhFOb7MITzdc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pro100chok~tiktok-mobile-api-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pro100chok-tiktok-mobile-api-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/pro100chok~tiktok-mobile-api-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pro100chok-tiktok-mobile-api-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/pro100chok~tiktok-mobile-api-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pro100chok-tiktok-mobile-api-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": [
          "scrapeType"
        ],
        "properties": {
          "scrapeType": {
            "title": "🎯 What do you want to scrape?",
            "enum": [
              "profiles",
              "videos",
              "comments",
              "followers",
              "following",
              "search_videos",
              "search_users",
              "hashtags",
              "sounds",
              "places",
              "playlists",
              "live",
              "search_sounds",
              "search_hashtags",
              "search_live",
              "transcripts",
              "trending",
              "mixed"
            ],
            "type": "string",
            "description": "Pick one. The left side is what you paste below, the right side is what you get in the results. Every result row has a `type` field: `post`, `user`, `comment`, `follower`, `following`, `hashtag`, `music`, `place`, `playlist`, `live` or `transcript`.",
            "default": "profiles"
          },
          "inputs": {
            "title": "📥 Profiles, videos or keywords (one per line)",
            "type": "array",
            "description": "What to paste depends on your choice above:<br>• <b>Profiles / Followers / Following / LIVE</b> — `@nike` or `https://www.tiktok.com/@nike`<br>• <b>Video links / Comments / Transcripts</b> — `https://www.tiktok.com/@nike/video/7301234567890123456`, `https://vm.tiktok.com/…` or a video ID<br>• <b>Keywords</b> (all search options) — `skincare routine`<br>• <b>Hashtags</b> — `#skincare`, `skincare` or `https://www.tiktok.com/tag/skincare`<br>• <b>Sounds</b> — `https://www.tiktok.com/music/…-7361234567890123456` or a sound ID<br>• <b>Places</b> — `https://www.tiktok.com/place/…-22535865200906035`<br>• <b>Playlists</b> — `https://www.tiktok.com/@creator/playlist/Name-7424884757439056648`<br>• <b>Mixed links</b> — anything above, the type is detected per line<br>• <b>Trending</b> — leave empty",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "Country",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "ie",
              "nz",
              "de",
              "at",
              "ch",
              "fr",
              "es",
              "it",
              "nl",
              "pl",
              "se",
              "pt",
              "br",
              "mx",
              "ar",
              "co",
              "cl",
              "jp",
              "kr",
              "sg",
              "my",
              "id",
              "th",
              "vn",
              "ph",
              "tw",
              "hk",
              "sa",
              "ae",
              "tr",
              "za"
            ],
            "type": "string",
            "description": "TikTok is scraped as a user from this country sees it — changes search results and the trending feed. Free.",
            "default": "us"
          },
          "resultsPerPage": {
            "title": "Max results per input",
            "minimum": 0,
            "type": "integer",
            "description": "Per line of input: videos per profile / hashtag / sound / place / playlist / keyword, comments per video, followers per profile, creators per keyword. 0 = everything available.",
            "default": 0
          },
          "maxItems": {
            "title": "Max results in total",
            "minimum": 0,
            "type": "integer",
            "description": "Limit for the whole run, all inputs together. 0 = no limit (the run still stops at your 'Max cost per run').",
            "default": 0
          },
          "profileContent": {
            "title": "From each profile, also collect",
            "type": "array",
            "description": "Untick everything to get only the profile row (works for private accounts too).",
            "items": {
              "type": "string",
              "enum": [
                "videos",
                "reposts",
                "liked",
                "playlists"
              ],
              "enumTitles": [
                "Videos",
                "Reposts",
                "Liked videos (only if public)",
                "Playlists"
              ]
            },
            "default": [
              "videos"
            ]
          },
          "profileSorting": {
            "title": "Sort profile videos by",
            "enum": [
              "latest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "Order in which profile videos are collected.",
            "default": "latest"
          },
          "videoSearchSorting": {
            "title": "Sort videos by",
            "enum": [
              "relevance",
              "most_liked",
              "latest"
            ],
            "type": "string",
            "description": "For '🔍 Keywords → videos from search'.",
            "default": "relevance"
          },
          "videoSearchDateFilter": {
            "title": "Videos published within",
            "enum": [
              "all",
              "24h",
              "week",
              "month",
              "3months",
              "6months"
            ],
            "type": "string",
            "description": "For '🔍 Keywords → videos from search'.",
            "default": "all"
          },
          "creatorVerifiedOnly": {
            "title": "Creators: verified only",
            "type": "boolean",
            "description": "For '🔍 Keywords → creators from search': only accounts with the blue check.",
            "default": false
          },
          "creatorMinFollowers": {
            "title": "Creators: min followers",
            "minimum": 0,
            "type": "integer",
            "description": "For '🔍 Keywords → creators from search'. Empty = no limit."
          },
          "creatorMaxFollowers": {
            "title": "Creators: max followers",
            "minimum": 0,
            "type": "integer",
            "description": "For '🔍 Keywords → creators from search', e.g. 100000 to find micro-influencers. Empty = no limit."
          },
          "scrapeRelatedSearchWords": {
            "title": "Add search suggestions",
            "type": "boolean",
            "description": "Adds one row per keyword with TikTok's autocomplete and related keywords.",
            "default": false
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Also collect the replies under every comment. Replies are separate rows with `repliesToId` = parent comment.",
            "default": true
          },
          "maxRepliesPerComment": {
            "title": "Max replies per comment",
            "minimum": 0,
            "type": "integer",
            "description": "0 = all replies TikTok lists (default). Used when 'Include replies' is on.",
            "default": 0
          },
          "commentsPerPost": {
            "title": "Comments per video (for options that return videos)",
            "minimum": 0,
            "type": "integer",
            "description": "Also collect this many comments of every video you get from profiles, search, hashtags, sounds… (0 = none). With '💬 Video links → comments' use 'Max results per input' instead.",
            "default": 0
          },
          "oldestPostDate": {
            "title": "Videos published after",
            "type": "string",
            "description": "Absolute date (2026-01-01) or relative (e.g. 7 days)."
          },
          "newestPostDate": {
            "title": "Videos published before",
            "type": "string",
            "description": "Absolute date or relative (e.g. 1 day)."
          },
          "minPlays": {
            "title": "Min views",
            "minimum": 0,
            "type": "integer",
            "description": "Skip videos with fewer views."
          },
          "maxPlays": {
            "title": "Max views",
            "minimum": 0,
            "type": "integer",
            "description": "Skip videos with more views."
          },
          "minLikes": {
            "title": "Min likes",
            "minimum": 0,
            "type": "integer",
            "description": "Skip videos with fewer likes."
          },
          "maxLikes": {
            "title": "Max likes",
            "minimum": 0,
            "type": "integer",
            "description": "Skip videos with more likes."
          },
          "minComments": {
            "title": "Min comments",
            "minimum": 0,
            "type": "integer",
            "description": "Skip videos with fewer comments."
          },
          "minShares": {
            "title": "Min shares",
            "minimum": 0,
            "type": "integer",
            "description": "Skip videos with fewer shares."
          },
          "excludePinnedPosts": {
            "title": "Skip pinned videos",
            "type": "boolean",
            "description": "Ignore videos pinned to the top of a profile.",
            "default": false
          },
          "onlyVideos": {
            "title": "Only videos (skip photo slideshows)",
            "type": "boolean",
            "description": "Return only regular videos.",
            "default": false
          },
          "onlySlideshows": {
            "title": "Only photo slideshows",
            "type": "boolean",
            "description": "Return only photo-mode posts.",
            "default": false
          },
          "excludeAds": {
            "title": "Skip ads & sponsored videos",
            "type": "boolean",
            "description": "Ignore paid partnership / ad posts.",
            "default": false
          },
          "onlyAds": {
            "title": "Only ads & sponsored videos",
            "type": "boolean",
            "description": "Return only paid partnership / ad posts.",
            "default": false
          },
          "uniqueAuthors": {
            "title": "One video per creator",
            "type": "boolean",
            "description": "Great for finding influencers from search results.",
            "default": false
          },
          "onlyNewSinceLastRun": {
            "title": "Only new results since the last run",
            "type": "boolean",
            "description": "For scheduled monitoring: skips items already returned by previous runs that used the same state name.",
            "default": false
          },
          "monitoringStateName": {
            "title": "Monitoring state name",
            "type": "string",
            "description": "Use a different name per monitoring task.",
            "default": "tiktok-mobile-monitoring-state"
          },
          "scrapeAuthorProfile": {
            "title": "Add full creator profile to each video",
            "type": "boolean",
            "description": "Followers, bio, email/phone from bio, Instagram/YouTube links, engagement rate. Charged once per unique creator.",
            "default": false
          },
          "subtitles": {
            "title": "Subtitles / transcript",
            "enum": [
              "none",
              "download"
            ],
            "type": "string",
            "description": "Adds `transcript` and timestamped `segments` to each video that has captions.",
            "default": "none"
          },
          "subtitleLanguages": {
            "title": "Subtitle languages",
            "type": "array",
            "description": "Optional language codes, e.g. `en`, `es`. Empty = original language.",
            "items": {
              "type": "string"
            }
          },
          "downloadVideos": {
            "title": "Download videos (no watermark)",
            "type": "boolean",
            "description": "Saves MP4 files to the run's key-value store and adds `downloadedVideoUrl`.",
            "default": false
          },
          "videoQuality": {
            "title": "Video quality",
            "enum": [
              "540p",
              "720p",
              "1080p",
              "best",
              "h264",
              "lowest"
            ],
            "type": "string",
            "description": "Most TikTok videos are H.265 (HEVC), which plays on all modern phones, Macs and browsers. 540p and 'Smallest' are one standard download each; HD options are charged per started 5 MB of the file (see Pricing).",
            "default": "540p"
          },
          "downloadCovers": {
            "title": "Download cover images",
            "type": "boolean",
            "description": "Saves cover images to the key-value store.",
            "default": false
          },
          "downloadSlideshowImages": {
            "title": "Download slideshow photos",
            "type": "boolean",
            "description": "Saves all slideshow photos to the key-value store.",
            "default": false
          },
          "downloadAvatars": {
            "title": "Download creator avatars",
            "type": "boolean",
            "description": "Saves creator avatars to the key-value store.",
            "default": false
          },
          "downloadMusic": {
            "title": "Download sound audio (MP3)",
            "type": "boolean",
            "description": "Saves the sound's audio file to the key-value store.",
            "default": false
          },
          "scrapeRelatedVideos": {
            "title": "Add related videos",
            "type": "boolean",
            "description": "Related videos are returned as normal video results.",
            "default": false
          },
          "maxRelatedVideos": {
            "title": "Related videos per video",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Related videos per video",
            "default": 5
          },
          "outputLayout": {
            "title": "Output layout",
            "enum": [
              "nested",
              "flat"
            ],
            "type": "string",
            "description": "Nested: a profile row carries its `videos`, a hashtag or sound its `videos`, a video its `comments` (each with its `replies`). Comments, followers, search results and the trending feed are one row each either way. Rows are written as results arrive (a parent row every 100 items, with a `part` number). You pay the same either way — per item.",
            "default": "nested"
          },
          "extractContacts": {
            "title": "Extract emails, phones & links from bios",
            "type": "boolean",
            "description": "Adds bioEmail, bioPhone and bioLinks fields (free).",
            "default": true
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "normalized",
              "raw",
              "both"
            ],
            "type": "string",
            "description": "Shape of each dataset item.",
            "default": "normalized"
          },
          "fields": {
            "title": "Keep only these fields",
            "type": "array",
            "description": "Optional. Top-level field names to keep, e.g. `id`, `text`, `playCount`, `authorMeta`.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "App language",
            "enum": [
              "auto",
              "en",
              "es",
              "pt",
              "fr",
              "de",
              "it",
              "nl",
              "pl",
              "sv",
              "tr",
              "ru",
              "uk",
              "ar",
              "hi",
              "id",
              "ms",
              "th",
              "vi",
              "ja",
              "ko",
              "zh-Hant"
            ],
            "type": "string",
            "description": "Language of the TikTok app (affects search, trending and translated texts). 'Default' uses the main language of the selected country.",
            "default": "auto"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}