{
  "openapi": "3.0.1",
  "info": {
    "title": "Douyin Viral Videos Scraper - 抖音热点宝 Breakout Charts",
    "description": "Scrape Douyin's (TikTok China) official viral video charts: low-follower hits, high like rate, completion and follower growth with views, likes and authors.",
    "version": "1.0",
    "x-build-id": "tUgithEfiqFK8aEFW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/seemuapps~douyin-viral-videos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-seemuapps-douyin-viral-videos-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/seemuapps~douyin-viral-videos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-seemuapps-douyin-viral-videos-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/seemuapps~douyin-viral-videos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-seemuapps-douyin-viral-videos-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": {
          "charts": {
            "title": "Charts",
            "type": "array",
            "description": "Which Douyin viral video charts to collect. Low-follower hits are videos from small accounts that blew up, the best list for finding repeatable formats.",
            "items": {
              "type": "string",
              "enum": [
                "lowFollower",
                "highLikeRate",
                "highCompletion",
                "highFollowerGrowth",
                "all"
              ],
              "enumTitles": [
                "Low-follower hits (低粉爆款)",
                "High like rate (高点赞率)",
                "High completion rate (高完播率)",
                "High follower growth (高涨粉率)",
                "All hot videos (视频总榜)"
              ]
            },
            "default": [
              "lowFollower"
            ]
          },
          "timeWindow": {
            "title": "Time window",
            "enum": [
              "1h",
              "24h",
              "3d",
              "7d"
            ],
            "type": "string",
            "description": "The period the chart covers.",
            "default": "24h"
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Only return videos from these content categories. Leave empty for all categories.",
            "items": {
              "type": "string",
              "enum": [
                "food",
                "travel",
                "leisure",
                "culture",
                "dance",
                "education",
                "charity",
                "art",
                "fashion",
                "anime",
                "cars",
                "sports",
                "movies",
                "tvSeries",
                "tech",
                "rural",
                "animals",
                "music",
                "health",
                "homeLiving",
                "beauty",
                "celebrities",
                "casual",
                "photography",
                "humanities",
                "relationships",
                "finance",
                "science",
                "career",
                "parenting",
                "dailyLife",
                "varietyShows",
                "skits",
                "family",
                "effectsGames",
                "law",
                "generatedVideo",
                "gaming"
              ],
              "enumTitles": [
                "美食 Food",
                "旅行 Travel",
                "休闲娱乐 Leisure & entertainment",
                "文化 Culture",
                "舞蹈 Dance",
                "教育校园 Education",
                "公益 Charity",
                "艺术 Art",
                "时尚 Fashion",
                "二次元 Anime & ACG",
                "汽车 Cars",
                "体育 Sports",
                "电影 Movies",
                "电视剧 TV series",
                "科技 Tech",
                "三农 Rural & farming",
                "动物 Animals & pets",
                "音乐 Music",
                "医疗健康 Health",
                "生活家居 Home & living",
                "颜值 Looks & beauty",
                "明星 Celebrities",
                "随拍 Casual clips",
                "摄影摄像 Photography",
                "人文社科 Humanities",
                "情感 Relationships",
                "财经 Finance",
                "科普 Science",
                "职场 Career",
                "母婴 Mother & baby",
                "生活记录 Daily life",
                "综艺 Variety shows",
                "剧情 Skits & drama",
                "亲子 Parenting & family",
                "特效&小游戏 Effects & mini games",
                "法律 Law",
                "AI原生影像 Generated video",
                "游戏 Gaming"
              ]
            },
            "default": []
          },
          "keyword": {
            "title": "Keyword filter",
            "type": "string",
            "description": "Only return chart videos whose title matches this keyword, e.g. 咖啡 or 露营. Leave empty for the whole chart."
          },
          "maxVideosPerChart": {
            "title": "Max videos per chart",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many videos to collect from each chart, from the top. Each chart holds up to about 1,000 videos.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}