{
  "openapi": "3.0.1",
  "info": {
    "title": "Weibo Scraper Pro: Posts, Comments, Profiles, Hot Search & KOLs",
    "description": "Fastest & most complete Sina Weibo scraper. Extract posts, comments, KOL influencer profiles, hot search trends, user timeline, and search results. Unclipped full text & Sentiment Analysis",
    "version": "1.0",
    "x-build-id": "vjrH5wZxGELJGlRy6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blessiticus~weibo-scraper-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blessiticus-weibo-scraper-pro",
        "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/blessiticus~weibo-scraper-pro/runs": {
      "post": {
        "operationId": "runs-sync-blessiticus-weibo-scraper-pro",
        "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/blessiticus~weibo-scraper-pro/run-sync": {
      "post": {
        "operationId": "run-sync-blessiticus-weibo-scraper-pro",
        "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",
        "required": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "Scraping Mode / Operation",
            "enum": [
              "searchWeibo",
              "weiboDetail",
              "weiboComments",
              "userProfile",
              "userPosts",
              "hotSearch",
              "userFans",
              "userFollowers"
            ],
            "type": "string",
            "description": "Select what you want to extract from Sina Weibo:\n• 🔍 Keyword Search: Searches posts & brand sentiment. Needs 'keyword' or search URL. If blank, defaults to 'DeepSeek' (last 30 days).\n• 📄 Post Detail: Scrapes full post content, media, author & metrics. Needs post IDs or post URLs.\n• 💬 Post Comments: Scrapes discussion threads & comment sentiment. Needs post IDs or post URLs.\n• 👤 User Profile: Scrapes KOL profile, followers count, verification & bio. Needs user IDs or profile URLs.\n• 📱 User Posts: Scrapes all recent posts from a specific user. Needs user IDs or profile URLs.\n• 🔥 Hot Search: Live Weibo trending buzz ranking. No inputs required!\n• 👥 Fans / Followers: Scrapes a user's follower network. Needs user IDs or profile URLs.",
            "default": "searchWeibo"
          },
          "startUrls": {
            "title": "Direct Weibo URLs / Links",
            "type": "array",
            "description": "Direct Weibo links to scrape. Supports Post URLs (e.g., 'https://weibo.com/1111681197/Oq62x4Kyz' or 'https://m.weibo.cn/detail/5072046487114251'), Profile URLs (e.g., 'https://weibo.com/u/1111681197'), or Search URLs (e.g., 'https://s.weibo.com/weibo?q=DeepSeek'). Any pasted URL is automatically parsed and routed to the correct operation!",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "keyword": {
            "title": "Search Keyword (For Keyword Search)",
            "type": "string",
            "description": "Keyword, brand name, hashtag, or topic to search on Weibo (e.g. 'DeepSeek', 'Xiaomi SU7', 'Black Myth Wukong'). Used when operation is 'searchWeibo'. If left blank, automatically defaults to 'DeepSeek'.",
            "default": "DeepSeek"
          },
          "sortBy": {
            "title": "Search Sort Order",
            "enum": [
              "hot",
              "realtime"
            ],
            "type": "string",
            "description": "Sort mode for keyword searches. Use 'Realtime' to track breaking crises and recent consumer complaints.",
            "default": "hot"
          },
          "startDate": {
            "title": "Start Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional start date in 'YYYY-MM-DD' format (e.g. '2026-09-14'). If left blank, automatically defaults to 30 days ago (last month) to capture recent buzz."
          },
          "endDate": {
            "title": "End Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional end date in 'YYYY-MM-DD' format (e.g. '2026-10-15'). If left blank, automatically defaults to today."
          },
          "onlyVerified": {
            "title": "Filter: Only Verified Accounts (KOL / Blue V & Gold V)",
            "type": "boolean",
            "description": "When enabled, filters out ordinary users and spam bots, only retaining verified influencers, celebrities, and enterprise accounts.",
            "default": false
          },
          "minFollowers": {
            "title": "Filter: Minimum Followers Threshold",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Eliminate low-authority accounts by setting a minimum follower requirement (e.g. 1,000) for post authors.",
            "default": 0
          },
          "includeTopComments": {
            "title": "💬 Deep Sentiment: Auto Scrape Top Comments For Each Post",
            "type": "boolean",
            "description": "When enabled, automatically extracts top comments for every scraped post to capture audience reaction and sentiment.",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Max Comments Per Post (For Deep Sentiment)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of top comments to scrape per post when Deep Sentiment combo mode is enabled.",
            "default": 10
          },
          "weiboIds": {
            "title": "Weibo Post IDs or URLs (For Detail or Comments)",
            "type": "array",
            "description": "List of Weibo post IDs (numeric ID or alphanumeric BID from URL, e.g., '5072046487114251' or 'Oq62x4Kyz') or direct post URLs. Used for 'weiboDetail' and 'weiboComments'. If left blank, defaults to a verified sample post.",
            "items": {
              "type": "string"
            }
          },
          "userIds": {
            "title": "User / KOL IDs or URLs (For Profile, Timeline, Fans)",
            "type": "array",
            "description": "List of Weibo user IDs (UID, e.g., '1111681197') or profile URLs. Used for 'userProfile', 'userPosts', 'userFans', and 'userFollowers'. If left blank, defaults to People's Daily verified account.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max Items Limit",
            "minimum": 1,
            "maximum": 500000,
            "type": "integer",
            "description": "Maximum number of items to return. Leave default (50) for fast tests or set higher (up to 500k) for large datasets.",
            "default": 50
          },
          "maxPages": {
            "title": "Max Pages Limit",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of pages to paginate through for search results, user posts, or comments.",
            "default": 5
          },
          "fetchFullText": {
            "title": "Auto Unclip Full Text",
            "type": "boolean",
            "description": "When enabled, automatically calls Weibo's extend API to unclip long posts that are otherwise cut off with '...全文'.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Use Apify Proxy to bypass geographic IP restrictions and rate-limiting from Sina Weibo.",
            "default": {
              "useApifyProxy": true
            }
          },
          "cookie": {
            "title": "Weibo Cookie / SUB Token (Optional)",
            "type": "string",
            "description": "Optional personal or developer Weibo cookie / SUB token for maximum rate limits. If left blank, Weibo Scraper Pro automatically requests a guest visitor session from the Sina Visitor System."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}