{
  "openapi": "3.0.1",
  "info": {
    "title": "Weibo 微博 Scraper — Hot Search, Trends, Posts & Comments",
    "description": "Zero-cookie Weibo (微博) scraper with automatic visitor session bootstrap. Extract real-time Top 50 Hot Search, Trending Topics, Hot Feed posts, post details + comments, public user profiles, and keyword trend signals. 512MB pure HTTP, MCP ready.",
    "version": "1.0",
    "x-build-id": "upECktPTm6JL8PqVa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/flowery_bluebird_jay~weibo-trends-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-flowery_bluebird_jay-weibo-trends-posts-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/flowery_bluebird_jay~weibo-trends-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-flowery_bluebird_jay-weibo-trends-posts-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/flowery_bluebird_jay~weibo-trends-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-flowery_bluebird_jay-weibo-trends-posts-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": "Extraction mode",
            "enum": [
              "hot_search",
              "hot_feed",
              "post_detail",
              "profile",
              "keyword_signals"
            ],
            "type": "string",
            "description": "Select one workflow. hot_search adds optional topic/feed samples; keyword_signals returns suggestions and filters a sample of the hot feed, not full Weibo search results.",
            "default": "hot_search"
          },
          "maxItems": {
            "title": "Maximum primary items",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Integer 1–200. Caps hot_feed posts. hot_search caps each component: up to 50 hot searches, 10 topic-band rows and 10 feed samples. keyword_signals uses up to min(15, maxItems) matching feed posts; suggestions and explicit post/profile target lists have separate limits.",
            "default": 25
          },
          "includeHotFeedSample": {
            "title": "Include hot feed sample",
            "type": "boolean",
            "description": "In hot_search mode, also retrieve up to min(10, maxItems) hot feed posts. These use the post-scraped pricing event.",
            "default": true
          },
          "keywords": {
            "title": "Keywords",
            "maxItems": 50,
            "type": "array",
            "description": "Up to 50 single-line strings, each at most 200 characters. hot_feed filters a bounded live feed sample; keyword_signals fetches suggestions for each keyword. Empty keyword_signals input defaults to Huawei (华为) and AI. Blank entries are ignored and duplicates removed.",
            "items": {
              "type": "string",
              "maxLength": 200
            }
          },
          "postInputs": {
            "title": "Post URLs or mblogids",
            "maxItems": 200,
            "type": "array",
            "description": "Up to 200 target strings, each at most 2048 characters. Accepts a 6–20 character alphanumeric mblogid/numeric post ID or a full Weibo /<uid>/<mblogid>, /detail/<id>, or /status/<id> URL. Empty post_detail input tries one hot feed post.",
            "items": {
              "type": "string",
              "maxLength": 2048
            }
          },
          "includeComments": {
            "title": "Include post comments",
            "type": "boolean",
            "description": "In post_detail mode, retrieve the accessible comments for each successfully extracted post when the post and author identifiers are present. Comments use a separate pricing event.",
            "default": true
          },
          "maxCommentsPerPost": {
            "title": "Maximum comments per post",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Integer 1–100. Applies separately to each post in post_detail mode. Pagination is bounded; fewer comments may be returned if Weibo restricts access.",
            "default": 20
          },
          "profileInputs": {
            "title": "Profile URLs or UIDs",
            "maxItems": 200,
            "type": "array",
            "description": "Up to 200 single-line target strings, each at most 2048 characters. Accepts numeric UIDs of 5–15 digits or full Weibo /u/<uid> and /<uid> profile URLs. Empty profile input defaults to UID 1195230310.",
            "items": {
              "type": "string",
              "maxLength": 2048
            }
          },
          "cookieString": {
            "title": "Optional Weibo cookie header",
            "type": "string",
            "description": "Optional single-line Cookie header of at most 16384 characters, for example SUB=...; SUBP=.... Treated as secret input. An empty value attempts automatic visitor setup; successful access is not guaranteed."
          },
          "requestDelayMs": {
            "title": "Delay between requests (milliseconds)",
            "minimum": 100,
            "maximum": 5000,
            "type": "integer",
            "description": "Integer 100–5000. Each request is paced by this delay plus up to 140 ms jitter. All requests have an 18-second timeout and at most three attempts for HTTP 429, HTTP 5xx, or timeouts.",
            "default": 400
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify Proxy or custom proxyUrls configuration. useApifyProxy must be a boolean. Nonempty proxyUrls are used even when useApifyProxy is false. Proxy access and traffic may incur separate charges and do not guarantee Weibo access.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}