{
  "openapi": "3.0.1",
  "info": {
    "title": "Weibo Scraper - Hot Search, Posts, Comments & Profiles 微博",
    "description": "[Limited Launch Offer $1.5/1K] Weibo hot search, trending posts, comments and user profiles without login or cookies: 微博热搜 board, hot feed, keyword and #hashtag# search, post comments + replies.",
    "version": "0.1",
    "x-build-id": "zbFg7gpAT4uiAxD7I"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kalilfagundes.w~weibo-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kalilfagundes.w-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/kalilfagundes.w~weibo-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kalilfagundes.w-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/kalilfagundes.w~weibo-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kalilfagundes.w-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": {
          "searchQueries": {
            "title": "Search keywords or #hashtags (searchQueries)",
            "type": "array",
            "description": "Posts matching each keyword (人工智能, \"Tesla\"). Start with # for a hashtag topic (#人工智能#). Without login Weibo shows the first page of each search type.",
            "items": {
              "type": "string"
            }
          },
          "searchTypes": {
            "title": "Search types (searchTypes)",
            "type": "array",
            "description": "Which Weibo search tabs to read for every keyword (results are merged, no duplicates).",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "realtime",
                "hot"
              ],
              "enumTitles": [
                "All (综合)",
                "Latest (实时)",
                "Popular (热门)"
              ]
            },
            "default": [
              "all",
              "realtime",
              "hot"
            ]
          },
          "users": {
            "title": "Users (users)",
            "type": "array",
            "description": "User IDs (1669879400), profile links (https://weibo.com/u/1669879400) or exact screen names. Returns a profile row and the latest posts.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post URLs (postUrls)",
            "type": "array",
            "description": "Links like https://weibo.com/1669879400/RkxApEnWy or https://m.weibo.cn/detail/5348956699625162, or post ids. Returns the post (and its comments if enabled).",
            "items": {
              "type": "string"
            }
          },
          "hotSearch": {
            "title": "Hot search board 微博热搜 (hotSearch)",
            "type": "boolean",
            "description": "Today's hot search list: rank, topic, heat, category and label (hot/new/boom).",
            "default": false
          },
          "maxHotFeedPosts": {
            "title": "Hot feed posts (maxHotFeedPosts)",
            "minimum": 0,
            "type": "integer",
            "description": "Posts from Weibo's trending feed (热门微博). 0 = skip.",
            "default": 0
          },
          "maxPostsPerUser": {
            "title": "Posts per user (maxPostsPerUser)",
            "minimum": 0,
            "type": "integer",
            "description": "Latest posts per user (Weibo shows guests about the latest 10-20). 0 = profile only.",
            "default": 20
          },
          "maxCommentsPerPost": {
            "title": "Comments per post (maxCommentsPerPost)",
            "minimum": 0,
            "type": "integer",
            "description": "Comments for every post found, most popular first, with paging. 0 = no comments.",
            "default": 0
          },
          "includeReplies": {
            "title": "Include replies (includeReplies)",
            "type": "boolean",
            "description": "Also save replies to each comment (counted in the comment limit).",
            "default": true
          },
          "includeUserProfile": {
            "title": "User profile rows (includeUserProfile)",
            "type": "boolean",
            "description": "One row per user: followers, following, posts, verification, IP region, bio, registration date.",
            "default": true
          },
          "expandLongText": {
            "title": "Full text of long posts (expandLongText)",
            "type": "boolean",
            "description": "Fetch the full text of posts Weibo cuts with \"全文\" (one small extra request).",
            "default": true
          },
          "maxItems": {
            "title": "Maximum rows in total (maxItems)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows in the whole run. 0 = no limit.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy (proxyConfiguration)",
            "type": "object",
            "description": "Used when Weibo throttles a session: the session restarts on a new proxy IP.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}