{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Scraper: Video, Profile & Hashtag Extractor",
    "description": "Fast enterprise-grade TikTok data scraper. Extract videos, profiles, hashtags, search queries, music, comments, metrics & watermark-free downloads without login.",
    "version": "0.0",
    "x-build-id": "ZXfqhswdSTb5VVvP1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapepilot~tiktok-scraper-video-profile-hashtag-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapepilot-tiktok-scraper-video-profile-hashtag-extractor",
        "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/scrapepilot~tiktok-scraper-video-profile-hashtag-extractor/runs": {
      "post": {
        "operationId": "runs-sync-scrapepilot-tiktok-scraper-video-profile-hashtag-extractor",
        "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/scrapepilot~tiktok-scraper-video-profile-hashtag-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-scrapepilot-tiktok-scraper-video-profile-hashtag-extractor",
        "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": {
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "TikTok hashtags to search and scrape (e.g. ['bananas', 'viral', 'fyp']). Enter without # symbol.",
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "title": "Profiles / Usernames",
            "type": "array",
            "description": "TikTok usernames or profile URLs to scrape (e.g. ['scout2015', 'https://www.tiktok.com/@scout2015']).",
            "items": {
              "type": "string"
            }
          },
          "search": {
            "title": "Search Keywords",
            "type": "array",
            "description": "Specific search keywords or search terms to query on TikTok (e.g. ['ootd', 'tech gadgets']).",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Video URLs",
            "type": "array",
            "description": "Direct TikTok video URLs or short links (e.g. https://www.tiktok.com/@scout2015/video/6718335390845095173).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "resultsPerPage": {
            "title": "Results Per Query",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of results to fetch for each query, hashtag, or profile.",
            "default": 20
          },
          "maxItems": {
            "title": "Max Total Results",
            "minimum": 1,
            "type": "integer",
            "description": "Global limit on total items extracted across the entire run. (Free users are capped at 10 lifetime results).",
            "default": 50
          },
          "profileSorting": {
            "title": "Profile Videos Sorting",
            "enum": [
              "latest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "Sorting order for profile posts (charges Add-on: Search video sorting, and Popularity filter if popular).",
            "default": "latest"
          },
          "excludePinnedPosts": {
            "title": "Exclude Pinned Posts",
            "type": "boolean",
            "description": "Skip pinned videos on profiles to extract only chronological posts (charges Add-on: Date filter).",
            "default": false
          },
          "profileScrapeSections": {
            "title": "Profile Scrape Sections",
            "type": "array",
            "description": "Sections to extract from user profiles (e.g. ['videos', 'followers', 'following']).",
            "items": {
              "type": "string"
            }
          },
          "searchSection": {
            "title": "Search Section",
            "type": "string",
            "description": "Target section for search queries (leave empty for general video search).",
            "default": ""
          },
          "maxProfilesPerQuery": {
            "title": "Max Profiles Per Query",
            "type": "integer",
            "description": "Maximum profiles to extract when searching by user query.",
            "default": 10
          },
          "proxyCountryCode": {
            "title": "Country Code",
            "type": "string",
            "description": "Country code for region-specific content (e.g. 'US', 'GB', 'DE', 'None'). Charges Add-on: Scrape as in country when set.",
            "default": "None"
          },
          "scrapeRelatedVideos": {
            "title": "Scrape Related Videos",
            "type": "boolean",
            "description": "Fetch recommendation and related video items associated with extracted posts.",
            "default": false
          },
          "scrapeComments": {
            "title": "Extract Video Comments",
            "type": "boolean",
            "description": "Scrape public user comments for extracted videos (charges Add-on: Comment).",
            "default": false
          },
          "shouldDownloadVideos": {
            "title": "Download Clean Videos (MP4)",
            "type": "boolean",
            "description": "Download clean watermark-free video files to the Apify Key-Value Store (charges Add-on: video download).",
            "default": false
          },
          "shouldDownloadCovers": {
            "title": "Download Video Covers",
            "type": "boolean",
            "description": "Download original resolution thumbnail cover images to the Key-Value Store.",
            "default": false
          },
          "shouldDownloadMusicCovers": {
            "title": "Download Sound / Music Covers",
            "type": "boolean",
            "description": "Download sound and audio album cover images to the Key-Value Store.",
            "default": false
          },
          "shouldDownloadAvatars": {
            "title": "Download Profile Avatars",
            "type": "boolean",
            "description": "Download author profile pictures to the Key-Value Store.",
            "default": false
          },
          "shouldDownloadSlideshowImages": {
            "title": "Download Slideshow Images",
            "type": "boolean",
            "description": "Download individual high-res photos for photo mode carousel posts.",
            "default": false
          },
          "shouldDownloadSubtitles": {
            "title": "Download Subtitles / Transcripts",
            "type": "boolean",
            "description": "Extract subtitle and caption transcripts (charges Add-on: Transcript).",
            "default": false
          },
          "shouldGenerateAIDescription": {
            "title": "Generate AI Video Description",
            "type": "boolean",
            "description": "Generate timestamped AI descriptions of video content (charges Add-on: AI Description).",
            "default": false
          },
          "shouldGenerateAISummary": {
            "title": "Generate AI Video Summary",
            "type": "boolean",
            "description": "Generate concise AI bullet-point summaries of video content (charges Add-on: AI Summary).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}