{
  "openapi": "3.0.1",
  "info": {
    "title": "Weibo Snapshot｜微博帖子/热评/用户/热搜 快照（免登录）",
    "description": "Snapshot public Weibo posts (full long text), top comments, user profiles + latest 10 posts, search page 1 and the hot search board. No login. 免登录抓取微博快照：帖子全文、热评、用户与最新10条、搜索首页和热搜榜。",
    "version": "0.1",
    "x-build-id": "keihAltNFod7oOBjh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ahuang~weibo-snapshot/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ahuang-weibo-snapshot",
        "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/ahuang~weibo-snapshot/runs": {
      "post": {
        "operationId": "runs-sync-ahuang-weibo-snapshot",
        "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/ahuang~weibo-snapshot/run-sync": {
      "post": {
        "operationId": "run-sync-ahuang-weibo-snapshot",
        "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": {
          "postUrls": {
            "title": "微博链接或 ID / Post URLs or IDs",
            "type": "array",
            "description": "m.weibo.cn/detail/…、weibo.com/<uid>/<bid> 链接，或数字 mid / bid。每条返回帖子详情（含长文全文）+ 第一页热门评论。/ Post links or IDs. Returns post detail (full long text) + first page of hot comments.",
            "items": {
              "type": "string"
            }
          },
          "maxCommentsPerPost": {
            "title": "每帖最多评论数 / Max comments per post",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "有限支持：游客只能拿第一页热门评论（约 20 条），不翻页。0 = 不抓评论。/ Limited: guest mode returns only the first page of hot comments (~20), no pagination. 0 = skip.",
            "default": 20
          },
          "includeReplies": {
            "title": "抓楼中楼回复 / Include sub-replies",
            "type": "boolean",
            "description": "有限支持：每条评论只抓第一页回复，每次多 1 个请求。/ Limited: first page of replies per comment only; one extra request each.",
            "default": false
          },
          "maxRepliesPerComment": {
            "title": "每条评论最多回复数 / Max replies per comment",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "楼中楼回复按 comment 事件计费。/ Replies are charged as comment events.",
            "default": 5
          },
          "userUrls": {
            "title": "用户主页或 UID / User profile URLs or UIDs",
            "type": "array",
            "description": "m.weibo.cn/u/<uid>、weibo.com/u/<uid> 或数字 UID（不支持自定义域名）。返回用户资料 + 最新 10 条微博。/ Numeric UID or /u/<uid> link (custom vanity domains not supported). Returns profile + latest 10 posts.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerUser": {
            "title": "每个用户最多微博数 / Max posts per user",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "有限支持：游客只能拿最新一页（约 10 条），无法翻历史。/ Limited: guest mode returns only the latest page (~10), no history. 每条按 user-post 计费。/ Each charged as user-post.",
            "default": 10
          },
          "searchKeywords": {
            "title": "搜索关键词 / Search keywords",
            "type": "array",
            "description": "有限支持：仅第 1 页，游客模式约 4–5 条。/ Limited: first page only, ~4–5 results in guest mode.",
            "items": {
              "type": "string"
            }
          },
          "maxSearchResults": {
            "title": "每个关键词最多结果数 / Max results per keyword",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "实际数量受第一页限制。/ Actual count is capped by the first page.",
            "default": 20
          },
          "includeTrending": {
            "title": "抓取微博热搜榜 / Include hot search list",
            "type": "boolean",
            "description": "抓取当前实时热搜榜（约 50 条），整张榜按 1 次 hot-search-snapshot 计费。/ Fetch the current real-time hot search board (~50 items), charged once per board as hot-search-snapshot.",
            "default": false
          },
          "maxTrendingItems": {
            "title": "热搜最多条数 / Max trending items",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "快照中最多保留的热搜条数，不影响计费。/ Max items kept in the snapshot; does not change the charge.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}