{
  "openapi": "3.0.1",
  "info": {
    "title": "China Trending Topics: Weibo Douyin Baidu Toutiao Bilibili",
    "description": "China trending topics from Weibo, Douyin, Baidu, Toutiao and Bilibili in one call: rank, hot value, label, topic link, one schema, new/rising/falling tracking between runs. No login. $3 per 1,000.",
    "version": "0.1",
    "x-build-id": "1wv6QwAhEePopKMfB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/praguedatalab~china-trending-topics/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-praguedatalab-china-trending-topics",
        "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/praguedatalab~china-trending-topics/runs": {
      "post": {
        "operationId": "runs-sync-praguedatalab-china-trending-topics",
        "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/praguedatalab~china-trending-topics/run-sync": {
      "post": {
        "operationId": "run-sync-praguedatalab-china-trending-topics",
        "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 platforms to read. A platform that is unreachable is skipped and named in the run's status message; the others are still delivered.",
            "items": {
              "type": "string",
              "enum": [
                "weibo",
                "douyin",
                "baidu",
                "toutiao",
                "bilibili"
              ],
              "enumTitles": [
                "Weibo 微博热搜",
                "Douyin 抖音热点",
                "Baidu 百度热搜",
                "Toutiao 今日头条热榜",
                "Bilibili 哔哩哔哩"
              ]
            },
            "default": [
              "weibo",
              "douyin",
              "baidu",
              "toutiao",
              "bilibili"
            ]
          },
          "maxItemsPerPlatform": {
            "title": "Topics per platform",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Top N topics kept per platform (each row is one charged event). With several boards on one platform the top of every board is kept first. 20 topics on 5 platforms = 100 rows.",
            "default": 20
          },
          "deltaMode": {
            "title": "Compare with the previous run",
            "type": "boolean",
            "description": "Tag every topic <code>new</code>, <code>rising</code>, <code>falling</code> or <code>steady</code> versus the previous run with the same delta key, with rank change, hot-value change, first-seen time and running peaks. The first run of a key sets the baseline (every topic is <code>new</code>).",
            "default": false
          },
          "deltaStateKey": {
            "title": "Delta key",
            "type": "string",
            "description": "Name of an independent tracking stream for deltaMode (e.g. <code>hourly</code>, <code>brand-x</code>). The state is kept in your key-value store <code>china-trending-state</code>.",
            "default": "default"
          },
          "includePromoted": {
            "title": "Keep paid slots (ads)",
            "type": "boolean",
            "description": "Weibo sells one slot on its realtime board. Off (default): it is removed before billing. On: it is returned flagged <code>isAd: true</code> with no rank.",
            "default": false
          },
          "weiboBoards": {
            "title": "Weibo boards",
            "type": "array",
            "description": "<b>realtime</b> 热搜榜 (the main board), <b>entertainment</b> 文娱榜, <b>news</b> 要闻榜.",
            "items": {
              "type": "string",
              "enum": [
                "realtime",
                "entertainment",
                "news"
              ],
              "enumTitles": [
                "Realtime 热搜榜",
                "Entertainment 文娱榜",
                "News 要闻榜"
              ]
            },
            "default": [
              "realtime"
            ]
          },
          "douyinBoards": {
            "title": "Douyin boards",
            "type": "array",
            "description": "<b>hot</b> 热点榜 (the main hot-search list) and <b>rising</b> 实时上升热点 (the few topics climbing fast; no hot value).",
            "items": {
              "type": "string",
              "enum": [
                "hot",
                "rising"
              ],
              "enumTitles": [
                "Hot 热点榜",
                "Rising 实时上升热点"
              ]
            },
            "default": [
              "hot"
            ]
          },
          "baiduBoards": {
            "title": "Baidu boards",
            "type": "array",
            "description": "<b>realtime</b> 热搜榜 is the main board. The others are Baidu's topic boards: livelihood 民生, finance 财经, sports 体育, entertainment 文娱, international 国际, challenge 挑战, movie 电影, teleplay 电视剧, novel 小说, car 汽车, game 游戏.",
            "items": {
              "type": "string",
              "enum": [
                "realtime",
                "livelihood",
                "finance",
                "sports",
                "new_entertainment",
                "internation_news",
                "challenge",
                "movie",
                "teleplay",
                "novel",
                "car",
                "game"
              ],
              "enumTitles": [
                "Realtime 热搜榜",
                "Livelihood 民生榜",
                "Finance 财经榜",
                "Sports 体育榜",
                "Entertainment 文娱榜",
                "International 国际榜",
                "Challenge 挑战榜",
                "Movie 电影榜",
                "TV series 电视剧榜",
                "Novel 小说榜",
                "Car 汽车榜",
                "Game 游戏榜"
              ]
            },
            "default": [
              "realtime"
            ]
          },
          "bilibiliBoards": {
            "title": "Bilibili boards",
            "type": "array",
            "description": "<b>search</b> 热搜 (trending search keywords) and <b>ranking</b> 全站榜 (top videos of the site; the hot value is the view count).",
            "items": {
              "type": "string",
              "enum": [
                "search",
                "ranking"
              ],
              "enumTitles": [
                "Trending searches 热搜",
                "Top videos 全站榜"
              ]
            },
            "default": [
              "search",
              "ranking"
            ]
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. The boards answer datacenter IPs without a proxy today; enable Apify Proxy only if runs start failing.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}