{
  "openapi": "3.0.1",
  "info": {
    "title": "Weibo Scraper API: Posts, Hot Search, Comments & Profiles",
    "description": "Scrape Sina Weibo (微博): hot search list (热搜), trending posts, keyword search, user profiles and posts, post details and comments. Likes, reposts, comments, IP region, images, video links, topics. No login, no cookies; also via MCP. $15 per 1,000 posts.",
    "version": "0.1",
    "x-build-id": "4P7FPCYtAiinvUDUg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sauliusautomatesit~weibo-scraper-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sauliusautomatesit-weibo-scraper-api",
        "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/sauliusautomatesit~weibo-scraper-api/runs": {
      "post": {
        "operationId": "runs-sync-sauliusautomatesit-weibo-scraper-api",
        "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/sauliusautomatesit~weibo-scraper-api/run-sync": {
      "post": {
        "operationId": "run-sync-sauliusautomatesit-weibo-scraper-api",
        "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": {
          "hotLists": {
            "title": "Hot lists",
            "type": "array",
            "description": "Weibo's live rankings. `realtime` is the hot search list (微博热搜, 50 topics with heat and category), `entertainment` the entertainment list (文娱榜, 50), `topics` the topic list (话题榜, with reads and mentions).",
            "items": {
              "type": "string",
              "enum": [
                "realtime",
                "entertainment",
                "topics"
              ],
              "enumTitles": [
                "Hot search (热搜)",
                "Entertainment (文娱榜)",
                "Topics (话题榜)"
              ]
            }
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "One keyword per line, Chinese or any language: `新能源汽车`, `比亚迪`, `#话题#`. Weibo shows logged-out visitors the first page of each search view, so a keyword gives about 40 to 60 distinct posts across the five views.",
            "items": {
              "type": "string"
            }
          },
          "searchViews": {
            "title": "Search views",
            "type": "array",
            "description": "Which Weibo search tabs to read for each keyword, in this order: `all` (综合), `hot` (热门), `realtime` (实时, newest), `video` (视频), `pictures` (图片). Posts found in more than one view are kept once.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "hot",
                "realtime",
                "video",
                "pictures"
              ],
              "enumTitles": [
                "All (综合)",
                "Hot (热门)",
                "Realtime (实时)",
                "Video (视频)",
                "Pictures (图片)"
              ]
            },
            "default": [
              "all",
              "hot",
              "realtime",
              "video",
              "pictures"
            ]
          },
          "maxPostsPerSearch": {
            "title": "Posts per keyword",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Most posts to keep for each keyword.",
            "default": 50
          },
          "users": {
            "title": "Users",
            "type": "array",
            "description": "Weibo accounts: profile URL (`https://weibo.com/u/2803301701`, `https://weibo.com/rmrb`, `https://m.weibo.cn/u/2803301701`), numeric id or screen name (`人民日报`). Gives one profile row and the account's newest posts.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerUser": {
            "title": "Posts per user",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Newest posts to keep for each user, going back in time (0 = profile only). Logged out, Weibo shows the 10 or so newest posts of every kind, then the account's video posts going back years.",
            "default": 20
          },
          "includeProfiles": {
            "title": "Profile row for each user",
            "type": "boolean",
            "description": "Followers, following, post count, verification, IP region, company and join date for each user above.",
            "default": true
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "Single posts: `https://weibo.com/2803301701/Rljh4rccv`, `https://m.weibo.cn/detail/5350789826481759`, or the post id.",
            "items": {
              "type": "string"
            }
          },
          "trendingPosts": {
            "title": "Trending posts",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "How many posts to take from Weibo's trending feed (热门微博). 0 = off.",
            "default": 0
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Add the top comments of every post found, as separate comment rows (charged per comment).",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Comments per post",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Most comments to keep per post, hottest first. Weibo shows logged-out visitors about 300 per post.",
            "default": 20
          },
          "fetchFullText": {
            "title": "Full text of long posts",
            "type": "boolean",
            "description": "Weibo cuts long posts in lists; this fetches the whole text (one extra request per long post, no extra charge).",
            "default": true
          },
          "concurrency": {
            "title": "Inputs in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Keywords, users and posts worked on at the same time.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy datacenter IPs work. Change only if you need to.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}