{
  "openapi": "3.0.1",
  "info": {
    "title": "China Trending Boards: Weibo, Douyin, Baidu, Toutiao & Bilibili",
    "description": "Snapshot Chinese trending boards in one schema: Weibo hot search, Douyin hot/rising, nine Baidu boards, Toutiao hot and Bilibili popular, ranking, weekly and hot search. Get ranks, heat, covers, related posts, English titles and rank changes.",
    "version": "1.0",
    "x-build-id": "MCyn8eeNcbxYoDrXW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlyth-forge~china-trending-boards-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlyth-forge-china-trending-boards-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/crawlyth-forge~china-trending-boards-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlyth-forge-china-trending-boards-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/crawlyth-forge~china-trending-boards-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlyth-forge-china-trending-boards-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": "Chinese trend sources to collect. Leave empty to use every platform.",
            "items": {
              "type": "string",
              "enum": [
                "weibo",
                "douyin",
                "baidu",
                "toutiao",
                "bilibili"
              ],
              "enumTitles": [
                "Weibo",
                "Douyin",
                "Baidu",
                "Toutiao",
                "Bilibili"
              ]
            },
            "default": []
          },
          "boards": {
            "title": "Boards",
            "type": "array",
            "description": "Specific boards to collect. Leave empty to collect every board of the selected platforms. Baidu car and game tabs are no longer served by the source and are not listed.",
            "items": {
              "type": "string",
              "enum": [
                "weibo:realtime",
                "weibo:entertainment",
                "douyin:hot",
                "douyin:rising",
                "baidu:realtime",
                "baidu:novel",
                "baidu:movie",
                "baidu:teleplay",
                "baidu:new_entertainment",
                "baidu:livelihood",
                "baidu:finance",
                "baidu:sports",
                "baidu:internation_news",
                "toutiao:hot",
                "bilibili:popular",
                "bilibili:ranking",
                "bilibili:weekly",
                "bilibili:hotSearch"
              ],
              "enumTitles": [
                "Weibo Hot Search",
                "Weibo Entertainment",
                "Douyin Hot Search",
                "Douyin Rising Topics",
                "Baidu Realtime Hot",
                "Baidu Novel",
                "Baidu Movie",
                "Baidu TV Drama",
                "Baidu Entertainment",
                "Baidu Livelihood",
                "Baidu Finance",
                "Baidu Sports",
                "Baidu International News",
                "Toutiao Hot Board",
                "Bilibili Popular",
                "Bilibili Ranking",
                "Bilibili Weekly Must-Watch",
                "Bilibili Hot Search"
              ]
            },
            "default": []
          },
          "maxItemsPerBoard": {
            "title": "Max rows per board",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many ranked rows to read from each board, starting at rank 1.",
            "default": 50
          },
          "maxItems": {
            "title": "Max rows overall",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on all trending rows emitted across every selected board.",
            "default": 500
          },
          "includeTopPosts": {
            "title": "Fetch top related posts",
            "type": "boolean",
            "description": "Add up to maxTopPostsPerTrend related posts or videos for each trend on Weibo, Douyin and Bilibili hot search. Baidu and Toutiao trend rows are returned without related posts because their related-article feeds are signed or anti-bot gated.",
            "default": false
          },
          "maxTopPostsPerTrend": {
            "title": "Max top posts per trend",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many related posts or videos to keep for each trend when top-post fetching is enabled.",
            "default": 3
          },
          "translateToEnglish": {
            "title": "Translate titles to English",
            "type": "boolean",
            "description": "Add a titleEnglish field with an English translation of each Chinese title.",
            "default": false
          },
          "trackRankChanges": {
            "title": "Track rank changes across runs",
            "type": "boolean",
            "description": "Compare each row with the previous scheduled snapshot and add previousRank, rankChange, isNew, firstSeenAt and lastSeenAt. History is kept in a named key-value store on the actor.",
            "default": true
          },
          "bilibiliWeeklyNumber": {
            "title": "Bilibili weekly issue",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Weekly must-watch issue number. Set 0 to use the latest issue.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}