{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Profile Scraper",
    "description": "Scrape TikTok profiles and their videos, or find creators by keyword. Get bio, bio link, followers, likes, category and join date, plus every video's views, likes, comments, shares, saves, caption, music and video link. Free date and popularity filters. Latest, Popular or Oldest.",
    "version": "0.0",
    "x-build-id": "20xI1N0Gh6BNG6iOe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/calm_builder~tiktok-profile-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-calm_builder-tiktok-profile-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/calm_builder~tiktok-profile-scraper/runs": {
      "post": {
        "operationId": "runs-sync-calm_builder-tiktok-profile-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/calm_builder~tiktok-profile-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-calm_builder-tiktok-profile-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": {
          "profiles": {
            "title": "Usernames or profile links",
            "type": "array",
            "description": "TikTok accounts to scrape, one per row.\n\nSupported formats:\n- `khaby.lame`\n- `@khaby.lame`\n- `https://www.tiktok.com/@khaby.lame`\n\nEach profile is saved once in the **Profiles** table, and its videos link back to it through `profileId`.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search creators",
            "type": "array",
            "description": "Keywords to find TikTok creators with, one per row, e.g. `fitness coach` or `vegan recipes`.\n\nEvery creator found is scraped exactly like a username you typed: full profile row plus their videos, with the same filters and options below. Accounts found by several searches, or also typed above, are collected and charged once.",
            "items": {
              "type": "string"
            }
          },
          "maxCreatorsPerSearch": {
            "title": "Maximum creators per search",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "How many creators to collect from **each** search keyword. TikTok shows up to about 250 creators per keyword.",
            "default": 20
          },
          "resultsPerPage": {
            "title": "Maximum videos per profile",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "How many videos to collect from **each** profile.\n\nSet to **0** to collect only the profile details (bio, followers, likes, video count) without any videos.",
            "default": 20
          },
          "profileSections": {
            "title": "Profile sections",
            "type": "array",
            "description": "Which parts of each profile to collect.\n\n- **Videos** — the videos the account posted\n- **Reposts** — videos the account reposted\n- **Liked videos** — only when the account has made its likes public\n- **Playlists** — every video in the account's playlists\n- **Stories** — currently active stories\n\n**Maximum videos per profile** applies to each section separately. Sections an account keeps private are skipped, noted in the log and not charged.",
            "items": {
              "type": "string",
              "enum": [
                "videos",
                "reposts",
                "liked",
                "playlists",
                "stories"
              ],
              "enumTitles": [
                "Videos",
                "Reposts",
                "Liked videos",
                "Playlists",
                "Stories"
              ]
            },
            "default": [
              "videos"
            ]
          },
          "profileSort": {
            "title": "Which videos",
            "enum": [
              "latest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "Which videos of each profile to collect first, the same as the tabs on a TikTok profile. Applies to the **Videos** section.\n\n- **Latest** — newest uploads first\n- **Popular** — the account's most popular videos\n- **Oldest** — starting from the account's very first video",
            "default": "latest"
          },
          "newerThan": {
            "title": "Only videos newer than",
            "type": "string",
            "description": "Skip videos posted before this date. Pick a date, or enter a relative period such as `7 days` or `3 months`.\n\nWith **Latest**, the Actor jumps straight to your date range instead of scrolling through older videos, so filtered runs finish fast. Ideal for daily or weekly monitoring."
          },
          "olderThan": {
            "title": "Only videos older than",
            "type": "string",
            "description": "Skip videos posted after this date. Combine with **Only videos newer than** to collect a specific period."
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Only return videos with at least this many views. Leave empty to keep all videos."
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Only return videos with at least this many likes. Leave empty to keep all videos."
          },
          "excludePinnedPosts": {
            "title": "Skip pinned videos",
            "type": "boolean",
            "description": "Leave out the videos a creator pinned to the top of their profile, so results follow the real upload order.",
            "default": false
          },
          "includeSubtitles": {
            "title": "Include subtitle text",
            "type": "boolean",
            "description": "Add the full subtitle text of each video in the `subtitles` field, in every language TikTok provides. Included at no extra cost.\n\nSubtitle links (`subtitleLinks`) are always included. Only videos that have subtitles on TikTok, including auto-generated captions, return them.",
            "default": false
          },
          "country": {
            "title": "Scrape as if from",
            "enum": [
              "US",
              "AR",
              "AU",
              "BD",
              "BR",
              "CA",
              "CO",
              "EG",
              "FR",
              "DE",
              "ID",
              "IT",
              "JP",
              "MY",
              "MX",
              "NL",
              "NG",
              "PK",
              "PH",
              "PL",
              "SA",
              "ZA",
              "KR",
              "ES",
              "SE",
              "TH",
              "TR",
              "AE",
              "GB",
              "VN"
            ],
            "type": "string",
            "description": "Collect results as TikTok shows them in this country. Included at no extra cost.\n\nThe default, **United States**, gives the most complete results. If a profile cannot be loaded from a country, the Actor tries United States for it automatically.",
            "default": "US"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}