{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Video Downloader",
    "description": "TikTok Video Downloader lets you download TikTok videos in high quality without watermarks. Easily extract video URLs, captions, hashtags, metadata, and creator details for content research, data collection, and automation. 支持下载 TikTok 高清无水印视频，提取视频链接、标题、标签及创作者信息。",
    "version": "1.1",
    "x-build-id": "tnxI1BrjUHg9RjoR5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scraper-fleet~tiktok-video-downloader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scraper-fleet-tiktok-video-downloader",
        "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/scraper-fleet~tiktok-video-downloader/runs": {
      "post": {
        "operationId": "runs-sync-scraper-fleet-tiktok-video-downloader",
        "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/scraper-fleet~tiktok-video-downloader/run-sync": {
      "post": {
        "operationId": "run-sync-scraper-fleet-tiktok-video-downloader",
        "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": {
          "video_urls": {
            "title": "🎬 Video links · 视频链接",
            "type": "array",
            "description": "📌 TikTok video links, e.g. <code>https://www.tiktok.com/@billieeilish/video/7050551461734042926</code> · TikTok 视频链接<br>✅ Short links work too · 同样支持短链接 (<code>vm.tiktok.com</code>, <code>vt.tiktok.com</code>)<br>♻️ Duplicates are downloaded once · 重复链接只下载一次<br>⚠️ Anything else returns a <code>FAILED</code> row · 其他内容会返回 <code>FAILED</code> 行<br>💡 Leave empty if you only use creator profiles · 只用主页时可留空",
            "default": [
              {
                "url": "https://www.tiktok.com/@billieeilish/video/7050551461734042926"
              },
              {
                "url": "https://www.tiktok.com/@rickastleyofficial/video/7512867562258992406"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "profile_urls": {
            "title": "👤 Creator profiles · 创作者主页",
            "type": "array",
            "description": "🔗 Profile link <code>https://www.tiktok.com/@username</code>, <code>@username</code> or just the username · 主页链接、@用户名或用户名<br>🔎 The Actor finds the creator's most recent public videos and downloads them · 自动查找并下载该创作者最近的公开视频",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxVideosPerProfile": {
            "title": "🔢 Videos per creator · 每位创作者视频数",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "📏 How many of each creator's latest videos to download · 每位创作者下载最新视频的数量<br>🎯 Default · 默认：30 &nbsp;|&nbsp; Max · 最大：100",
            "default": 30
          },
          "desired_resolution": {
            "title": "📺 Quality · 画质",
            "enum": [
              "1080p",
              "720p",
              "480p",
              "360p"
            ],
            "type": "string",
            "description": "🎚️ Highest quality to download, measured on the short side of the video (a portrait 1080x1920 video is 1080p) · 下载的最高画质（以视频短边计算）<br>ℹ️ If nothing that small exists, the smallest file is used · 若没有更小的文件，则使用最小的可用文件<br>🎞️ 720p and above is often H.265 (see <code>video_codec</code>) · 720p 及以上通常为 H.265 编码",
            "default": "1080p"
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy · 代理设置",
            "type": "object",
            "description": "🌐 Used to find and download videos. Empty (e.g. via API) = Apify residential proxy · 用于查找和下载视频；留空（如通过API）= Apify 住宅代理<br>🔁 A new proxy URL is requested on each retry · 每次重试自动换新代理<br>📶 Downloads count as proxy traffic · 下载会消耗代理流量"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}