{
  "openapi": "3.0.1",
  "info": {
    "title": "🎵 TikTok Scraper | Videos, Profiles, Search & Hashtags",
    "description": "Fast cookieless TikTok Scraper from $0.85/1k results. Extract videos, creator profiles, metrics, hashtags, keywords, comments, transcripts & no-watermark MP4 links.",
    "version": "0.0",
    "x-build-id": "9UdxnbTyHKwDxygWz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/misterkhan~tiktok-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-misterkhan-tiktok-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/misterkhan~tiktok-scraper/runs": {
      "post": {
        "operationId": "runs-sync-misterkhan-tiktok-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/misterkhan~tiktok-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-misterkhan-tiktok-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": [
          "maxItems"
        ],
        "properties": {
          "targets": {
            "title": "Targets (Smart Input Bar)",
            "type": "array",
            "description": "Paste anything: TikTok @usernames (e.g. '@mrbeast', 'khaby.lame'), Profile URLs ('https://www.tiktok.com/@mrbeast'), Video URLs ('https://www.tiktok.com/@user/video/...'), Hashtags ('#ai', 'tech'), or Keyword Queries ('e-commerce trends').",
            "items": {
              "type": "string"
            },
            "default": [
              "@mrbeast",
              "#tech",
              "artificial intelligence"
            ]
          },
          "startUrls": {
            "title": "Direct Start URLs (Optional)",
            "type": "array",
            "description": "Direct TikTok URLs for target profiles, videos, or hashtags.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL",
                  "description": "Target HTTPS TikTok URL",
                  "pattern": "^https://([a-zA-Z0-9-]+\\.)?tiktok\\.com(/.*)?$"
                }
              }
            }
          },
          "resultsType": {
            "title": "Results Type",
            "enum": [
              "auto",
              "videos",
              "profiles",
              "search",
              "hashtags",
              "comments"
            ],
            "type": "string",
            "description": "Output mode: 'auto' (detect from input targets), 'videos' (video feeds with full metrics), 'profiles' (creator profile header + stats), 'search' (keyword search results), 'hashtags' (top challenge videos), or 'comments' (comments and replies).",
            "default": "auto"
          },
          "sorting": {
            "title": "Sort Order (Included FREE)",
            "enum": [
              "relevance",
              "most_liked",
              "latest"
            ],
            "type": "string",
            "description": "Sorting mode for search results and feeds. Included at zero extra PPE charge (unlike other actors that bill $1.00 extra).",
            "default": "relevance"
          },
          "dateFilter": {
            "title": "Date Filter (Included FREE)",
            "enum": [
              "all",
              "yesterday",
              "this_week",
              "this_month",
              "last_3_months",
              "last_6_months"
            ],
            "type": "string",
            "description": "Filter search and feed results by publication date. Included at zero extra PPE charge.",
            "default": "all"
          },
          "includeTranscripts": {
            "title": "Extract Video Transcripts & Subtitles (Add-On)",
            "type": "boolean",
            "description": "Extract full closed captions, timestamped subtitles, and text transcripts embedded in the video. Billed at our low transcript add-on rate ($4.90/1k vs $41.00/1k on other actors).",
            "default": false
          },
          "includeComments": {
            "title": "Extract Comments & Replies (Add-On)",
            "type": "boolean",
            "description": "Extract top-level comments and replies for each video. Billed at our low comment add-on rate ($0.49/1k).",
            "default": false
          },
          "commentsPerPost": {
            "title": "Max Comments per Post",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of comments to extract per video when comments extraction is enabled (0 to 100).",
            "default": 20
          },
          "includeVideoDownloads": {
            "title": "Direct No-Watermark Video CDN Links (Add-On)",
            "type": "boolean",
            "description": "Extract resolved direct CDN stream links (no-watermark MP4 download and audio stream URLs).",
            "default": false
          },
          "scrapeContacts": {
            "title": "Enrich Bio-Link Contacts (Add-On)",
            "type": "boolean",
            "description": "Crawl the external website domain found in creator profile bios to harvest verified business emails, phone numbers, and social links.",
            "default": false
          },
          "maxItems": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of dataset records to output. Free plan runs are capped at 40; paid Apify plans can extract up to 100,000 items.",
            "default": 40
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}