{
  "openapi": "3.0.1",
  "info": {
    "title": "Weibo Scraper",
    "description": "[from $3/1K posts] Scrape Weibo posts from accounts, keyword search and post links: full text, likes, comments, reposts, pictures, video, IP region, author. Add comments, profiles and the Weibo hot search list. No login, no cookies, no run fee.",
    "version": "0.1",
    "x-build-id": "HXhw7v4CwWMrHKCU8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lergassy~weibo-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lergassy-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/lergassy~weibo-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lergassy-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/lergassy~weibo-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lergassy-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": {
          "accounts": {
            "title": "👤 Weibo accounts",
            "type": "array",
            "description": "Add Weibo accounts to read their newest posts, one per line: a profile link (<b>https://weibo.com/u/2803301701</b>, <b>weibo.com/rmrb</b>, <b>m.weibo.cn/u/…</b>), a numeric uid or the exact screen name (<b>人民日报</b>). The demo account in this field is skipped automatically when you fill in keywords, post links or hot topics.",
            "default": [
              "https://weibo.com/u/2803301701"
            ],
            "items": {
              "type": "string"
            }
          },
          "postsPerAccount": {
            "title": "📝 Posts per account",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Enter how many of the newest posts to return per account (1–50). Without a login Weibo shows the first screen of each profile tab, which usually adds up to 20–35 recent posts.",
            "default": 20
          },
          "keywords": {
            "title": "🔍 Search keywords",
            "type": "array",
            "description": "Add keywords or #topics# to search Weibo posts, one per line — in Chinese for the best results: <b>比亚迪</b>, <b>人工智能</b>, <b>#国庆#</b>. Brand names in English work too.",
            "items": {
              "type": "string"
            }
          },
          "postsPerKeyword": {
            "title": "🔍 Posts per keyword",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Enter how many posts to return per keyword (1–100). Without a login Weibo search shows the first screen of each search tab, typically 50–90 unique posts per keyword.",
            "default": 30
          },
          "searchSort": {
            "title": "🔍 Search order",
            "enum": [
              "top",
              "latest",
              "hot"
            ],
            "type": "string",
            "description": "Choose which posts a keyword search returns first: <b>top</b> (Weibo's mixed 综合 results), <b>latest</b> (real-time 实时 posts, newest first) or <b>hot</b> (popular 热门 posts).",
            "default": "top"
          },
          "postUrls": {
            "title": "🔗 Post links",
            "type": "array",
            "description": "Add links to individual Weibo posts, one per line: <b>https://weibo.com/2803301701/RkyFjzhSX</b>, <b>https://m.weibo.cn/detail/5348998178410235</b> or a bare post id.",
            "items": {
              "type": "string"
            }
          },
          "commentsPerPost": {
            "title": "💬 Comments per post ($)",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Enter how many top-level comments to collect for every post the run returns (0 = none, up to 500). Comments come hottest first, with likes, reply count and the commenter's IP region. Billed per comment.",
            "default": 0
          },
          "includeProfile": {
            "title": "👤 Add the account profile ($)",
            "type": "boolean",
            "description": "Turn on to add one profile row per account: followers, following, posts count, verification, location, company, sign-up date and any e-mail written in the bio. Billed per profile.",
            "default": false
          },
          "hotTopics": {
            "title": "🔥 Weibo hot search list ($)",
            "type": "boolean",
            "description": "Turn on to add the current Weibo hot search (微博热搜) — about 50 trending topics with rank, heat, label (新/热/沸/爆) and category. Ads are removed. Billed per topic.",
            "default": false
          },
          "maxAgeDays": {
            "title": "📅 Only posts from the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Enter a number of days to skip older posts (for example 7). Leave empty to keep every post Weibo shows. Skipped posts are not billed."
          },
          "expandLongText": {
            "title": "Full text of long posts",
            "type": "boolean",
            "description": "Keep on to replace Weibo's cut-off preview (…全文) with the full post text. Turn off for a slightly faster run.",
            "default": true
          },
          "maxItems": {
            "title": "Max rows per run",
            "minimum": 1,
            "type": "integer",
            "description": "Enter a hard cap on billable rows (posts, comments, profiles and hot topics together) for this run. Leave empty for no cap."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Off by default — Weibo answers a direct request. If Weibo starts throttling, the run switches to Apify datacenter proxy by itself.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}