{
  "openapi": "3.0.1",
  "info": {
    "title": "China Trending Scraper - Douyin, Baidu, Toutiao (热搜 热榜)",
    "description": "Real-time Chinese trending topics and hot lists (热搜, 热榜) from Douyin, Baidu, Toutiao, 36Kr, The Paper, Sina and NetEase in one unified dataset: rank, title, link, heat value, label and category.",
    "version": "0.1",
    "x-build-id": "FrfIDEO2PH6aFS3Z5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wakachobi~china-trending-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wakachobi-china-trending-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/wakachobi~china-trending-scraper/runs": {
      "post": {
        "operationId": "runs-sync-wakachobi-china-trending-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/wakachobi~china-trending-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-wakachobi-china-trending-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": {
          "platforms": {
            "title": "Platforms",
            "type": "array",
            "description": "Which Chinese platforms to collect hot lists (热搜 / 热榜) from. Each platform returns its own ranked list. Only sources whose robots.txt allows automated access are included.",
            "items": {
              "type": "string",
              "enum": [
                "douyin",
                "baidu",
                "toutiao",
                "kr36",
                "thepaper",
                "sina",
                "netease"
              ],
              "enumTitles": [
                "Douyin 抖音热榜",
                "Baidu 百度热搜",
                "Toutiao 今日头条热榜",
                "36Kr 36氪",
                "The Paper 澎湃新闻",
                "Sina News 新浪热榜",
                "NetEase News 网易新闻"
              ]
            },
            "default": [
              "douyin",
              "baidu",
              "toutiao",
              "kr36",
              "thepaper",
              "sina",
              "netease"
            ]
          },
          "baiduBoards": {
            "title": "Baidu boards",
            "type": "array",
            "description": "Baidu hot lists to collect (only used when Baidu is selected).",
            "items": {
              "type": "string",
              "enum": [
                "realtime",
                "livelihood",
                "finance",
                "sports",
                "phrase",
                "novel",
                "movie",
                "teleplay",
                "car"
              ],
              "enumTitles": [
                "Real-time 热搜",
                "Livelihood 民生",
                "Finance 财经",
                "Sports 体育",
                "Memes 热梗",
                "Novels 小说",
                "Movies 电影",
                "TV series 电视剧",
                "Cars 汽车"
              ]
            },
            "default": [
              "realtime"
            ]
          },
          "douyinBoards": {
            "title": "Douyin boards",
            "type": "array",
            "description": "Douyin lists to collect (only used when Douyin is selected).",
            "items": {
              "type": "string",
              "enum": [
                "hot",
                "rising"
              ],
              "enumTitles": [
                "Hot list 热榜",
                "Rising 实时上升"
              ]
            },
            "default": [
              "hot"
            ]
          },
          "kr36Boards": {
            "title": "36Kr boards",
            "type": "array",
            "description": "36Kr rankings to collect (only used when 36Kr is selected).",
            "items": {
              "type": "string",
              "enum": [
                "hot",
                "video",
                "comment",
                "collect"
              ],
              "enumTitles": [
                "Hot 人气榜",
                "Video 视频榜",
                "Most commented 热议榜",
                "Most saved 收藏榜"
              ]
            },
            "default": [
              "hot"
            ]
          },
          "sinaBoards": {
            "title": "Sina boards",
            "type": "array",
            "description": "Sina News hot lists to collect (only used when Sina is selected).",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "hotcmnt",
                "minivideo",
                "trend",
                "sport",
                "ent",
                "auto",
                "travel",
                "ai"
              ],
              "enumTitles": [
                "Sina hot list 新浪热榜",
                "Most discussed 热议榜",
                "Video 视频热榜",
                "Trends 潮流热榜",
                "Sports 体育热榜",
                "Entertainment 娱乐热榜",
                "Cars 汽车热榜",
                "Travel 旅游热榜",
                "AI AI热榜"
              ]
            },
            "default": [
              "all"
            ]
          },
          "maxItemsPerPlatform": {
            "title": "Max items per list",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only the top N items of each platform list (each selected board counts as its own list). Most lists have 20 to 50 entries.",
            "default": 50
          },
          "maxItems": {
            "title": "Max items in total",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many items in total across all platforms.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Datacenter proxy works for all platforms.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}