{
  "openapi": "3.0.1",
  "info": {
    "title": "Weibo Scraper – Posts, Comments, Hot Search & Users",
    "description": "Scrape Weibo (微博) posts, comments, hot search 热搜, trending topics, user profiles & Black Cat 黑猫投诉. Search keywords, track trends, extract sentiment, monitor brands. No login, no cookies, no API key. Clean JSON, proxy ready.",
    "version": "0.0",
    "x-build-id": "NFmM7Q1uWdXiebkPl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapepilot~weibo-scraper-posts-comments-hot-search-users/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapepilot-weibo-scraper-posts-comments-hot-search-users",
        "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/scrapepilot~weibo-scraper-posts-comments-hot-search-users/runs": {
      "post": {
        "operationId": "runs-sync-scrapepilot-weibo-scraper-posts-comments-hot-search-users",
        "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/scrapepilot~weibo-scraper-posts-comments-hot-search-users/run-sync": {
      "post": {
        "operationId": "run-sync-scrapepilot-weibo-scraper-posts-comments-hot-search-users",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Scrape Mode",
            "enum": [
              "hot_search",
              "hot_timeline",
              "hot_search_delta",
              "search",
              "post_comments",
              "post_details",
              "user_posts",
              "user_profile",
              "complaints"
            ],
            "type": "string",
            "description": "Select what data to extract: trending topics, hot timeline feed, keyword search, post comments, deep post details, user posts, user profiles, or Black Cat consumer complaints.",
            "default": "hot_search"
          },
          "searchQuery": {
            "title": "Search Query",
            "type": "string",
            "description": "Keyword to search for in 'search' mode. Example: '人工智能', '耐克', or 'Nike'.",
            "default": "人工智能"
          },
          "searchAliases": {
            "title": "Search Aliases (Brand Variants)",
            "type": "array",
            "description": "Custom query variants to search alongside searchQuery (e.g. ['AJ', 'Air Jordan'] for 'Nike'). Merged and deduped.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchDateFrom": {
            "title": "Search Date From (Beijing Time +08:00)",
            "type": "string",
            "description": "Earliest post date (inclusive) in Beijing time (+08:00). Format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS. Example: '2026-09-01'."
          },
          "searchDateTo": {
            "title": "Search Date To (Beijing Time +08:00)",
            "type": "string",
            "description": "Latest post date (inclusive) in Beijing time (+08:00). Format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS. Example: '2026-09-03'."
          },
          "postIds": {
            "title": "Post IDs / URLs",
            "type": "array",
            "description": "List of post numeric IDs, base62 shortcodes, or URLs (e.g. '5346708137705813', 'RjB5HwkDj', 'https://weibo.com/7087906569/RjB5HwkDj'). Used in 'post_comments' and 'post_details' modes.",
            "default": [
              "https://weibo.com/7087906569/RjB5HwkDj"
            ],
            "items": {
              "type": "string"
            }
          },
          "userIds": {
            "title": "User IDs / Profile URLs",
            "type": "array",
            "description": "List of numeric user IDs or profile URLs (e.g. '1642634100' or 'https://weibo.com/u/1642634100'). Used in 'user_posts' and 'user_profile' modes.",
            "default": [
              "1642634100"
            ],
            "items": {
              "type": "string"
            }
          },
          "complaintCompanyIds": {
            "title": "Black Cat Company IDs / URLs",
            "type": "array",
            "description": "List of company couid IDs or Black Cat company URLs (e.g. 'https://tousu.sina.com.cn/company/view/?couid=2092643773' or '2092643773'). Leave empty to fetch Black Cat's nationwide latest complaints feed.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of items (posts, topics, profiles, or complaints) to return.",
            "default": 50
          },
          "includeComments": {
            "title": "Include Comments",
            "type": "boolean",
            "description": "In 'search' or 'hot_timeline' modes, also extract live comment threads for each post.",
            "default": false
          },
          "maxComments": {
            "title": "Max Comments per Post",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum comments to fetch per post when includeComments is enabled or in post_comments mode.",
            "default": 20
          },
          "includeAuthorProfiles": {
            "title": "Include Author Profiles",
            "type": "boolean",
            "description": "In 'search', 'hot_timeline', or 'user_posts' modes, fetch public profiles of distinct post authors (up to 50 authors per run).",
            "default": false
          },
          "fetchFullText": {
            "title": "Fetch Full Text",
            "type": "boolean",
            "description": "Automatically retrieve the full body of posts truncated by Weibo's list endpoints.",
            "default": true
          },
          "sentimentAnalysis": {
            "title": "Sentiment Analysis",
            "type": "boolean",
            "description": "Score Chinese posts and comments with polarity (positive/neutral/negative) and numerical score (-1.0 to +1.0).",
            "default": false
          },
          "geoRollup": {
            "title": "Province Geographic Rollup",
            "type": "boolean",
            "description": "Add aggregated location rollup rows by Chinese province and overseas origins when at least 50 posts carry location metadata.",
            "default": false
          },
          "autoLocalize": {
            "title": "Auto-Localize Brand Search",
            "type": "boolean",
            "description": "When searching Latin brand names (e.g. 'Nike'), automatically also search the Chinese name ('耐克') and merge results.",
            "default": true
          },
          "adFilter": {
            "title": "Ad / Promotion Filter",
            "enum": [
              "all",
              "organic_only",
              "promo_only"
            ],
            "type": "string",
            "description": "Filter organic vs sponsored/promoted posts or trending slots.",
            "default": "all"
          },
          "deltaMode": {
            "title": "Delta Mode (Incremental Monitoring)",
            "type": "boolean",
            "description": "Only return new items not seen in previous runs with the same deltaStateKey.",
            "default": false
          },
          "deltaStateKey": {
            "title": "Delta State Key",
            "type": "string",
            "description": "Key identifier to persist deduplication memory in Key-Value store (e.g. 'nike-daily').",
            "default": "default"
          },
          "followUpComments": {
            "title": "Follow-Up Comments on Earlier Posts",
            "type": "boolean",
            "description": "In deltaMode search, re-read comment threads of previously delivered posts between 1 and 7 days old.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Residential Proxy configuration. Recommended and enabled by default for Weibo access.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}