{
  "openapi": "3.0.1",
  "info": {
    "title": "Weibo Scraper – Hot Search, Trending Posts, Comments & Profiles",
    "description": "Weibo scraper for public data, no login: realtime hot search (微博热搜), entertainment and topic boards, trending posts by channel, post details, comments with replies, user video/photo posts and public profile metadata. Pay per result.",
    "version": "1.0",
    "x-build-id": "lgfFjvedHgVxOwGPp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/openharvest~weibo-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-openharvest-weibo-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/openharvest~weibo-scraper/runs": {
      "post": {
        "operationId": "runs-sync-openharvest-weibo-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/openharvest~weibo-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-openharvest-weibo-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": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "hotSearch",
              "trendingPosts",
              "posts",
              "userPosts",
              "profiles"
            ],
            "type": "string",
            "description": "<b>hotSearch</b> = Weibo hot search list (微博热搜) with rank and heat. <b>trendingPosts</b> = trending posts (热门微博) of a channel. <b>posts</b> = specific posts from links. <b>userPosts</b> = recent video or photo posts of users (plus their profile). <b>profiles</b> = public profile metadata only.",
            "default": "hotSearch"
          },
          "hotSearchBoard": {
            "title": "Hot search board",
            "enum": [
              "realtime",
              "entertainment",
              "topics"
            ],
            "type": "string",
            "description": "Used by <b>hotSearch</b>. <b>realtime</b> = main hot search list (~50 topics + pinned topic), <b>entertainment</b> = 文娱榜, <b>topics</b> = hot topics board (话题榜) with read counts.",
            "default": "realtime"
          },
          "trendingChannel": {
            "title": "Trending channel",
            "enum": [
              "hot",
              "realtime",
              "rankings",
              "society",
              "international",
              "finance",
              "stocks",
              "tech",
              "digital",
              "cars",
              "celebrities",
              "movies",
              "tvSeries",
              "variety",
              "music",
              "games",
              "anime",
              "sports",
              "fashion",
              "beauty",
              "food",
              "travel",
              "health",
              "education",
              "realEstate",
              "military",
              "history",
              "science",
              "humor",
              "pets",
              "government",
              "factCheck"
            ],
            "type": "string",
            "description": "Used by <b>trendingPosts</b>. The channel of weibo.com/hot/weibo to read.",
            "default": "hot"
          },
          "postUrls": {
            "title": "Post links",
            "type": "array",
            "description": "Used by <b>posts</b>. Accepts <code>https://weibo.com/1669879400/RhKiVkunf</code>, <code>https://m.weibo.cn/detail/5342295734883321</code>, a numeric post id (mid) or a 9-character post code (mblogid).",
            "items": {
              "type": "string"
            }
          },
          "users": {
            "title": "Users",
            "type": "array",
            "description": "Used by <b>userPosts</b> and <b>profiles</b>. Accepts <code>https://weibo.com/u/1669879400</code>, <code>https://weibo.com/n/人民日报</code>, a numeric user id, or a screen name such as <code>人民日报</code>.",
            "items": {
              "type": "string"
            }
          },
          "userPostsType": {
            "title": "User post type",
            "enum": [
              "videos",
              "photos",
              "all"
            ],
            "type": "string",
            "description": "Used by <b>userPosts</b>. Weibo's logged-out view exposes a user's <b>video</b> feed and <b>photo</b> wall (text-only posts are login-only). <b>all</b> merges both, newest first.",
            "default": "videos"
          },
          "maxItems": {
            "title": "Max hot topics / trending posts",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Used by <b>hotSearch</b> and <b>trendingPosts</b>: maximum number of rows (the realtime board has ~50 topics).",
            "default": 50
          },
          "maxPostsPerUser": {
            "title": "Max posts per user",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Used by <b>userPosts</b>.",
            "default": 20
          },
          "includeProfile": {
            "title": "Include profile row (userPosts)",
            "type": "boolean",
            "description": "In <b>userPosts</b> mode, also output one profile row per user (followers, verification, totals).",
            "default": true
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Also scrape comments of every post (trendingPosts, posts and userPosts modes).",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum comments (including replies, if enabled) per post.",
            "default": 20
          },
          "includeReplies": {
            "title": "Include replies to comments",
            "type": "boolean",
            "description": "Also load the replies (楼中楼) under each comment. They count towards the per-post comment limit.",
            "default": false
          },
          "commentsSort": {
            "title": "Comment order",
            "enum": [
              "hot",
              "time"
            ],
            "type": "string",
            "description": "<b>hot</b> = most liked first (按热度), <b>time</b> = newest first (按时间).",
            "default": "hot"
          },
          "fetchLongText": {
            "title": "Fetch full text of long posts",
            "type": "boolean",
            "description": "Weibo truncates long posts (长微博) in lists. When enabled, the full text is loaded (one extra free request per long post).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Usually not needed. Enable Apify Proxy if Weibo starts blocking requests.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}