{
  "openapi": "3.0.1",
  "info": {
    "title": "🔴 Weibo Scraper",
    "description": "Extract Weibo data — text, reposts, likes, and more. Scrape by keyword, URL or ID. Export to JSON, CSV & Excel, use the API, schedule runs and integrate. No code required.",
    "version": "0.1",
    "x-build-id": "PMD83rNFeeqsa9s1Y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ethereal_wool~weibo-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ethereal_wool-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/ethereal_wool~weibo-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ethereal_wool-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/ethereal_wool~weibo-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ethereal_wool-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": {
          "profileUrls": {
            "title": "Public Weibo accounts",
            "maxItems": 50,
            "type": "array",
            "description": "Profile links, handles, nicknames or numeric user IDs. Selects account export. Up to 50 accounts.",
            "items": {
              "type": "string"
            }
          },
          "includeProfile": {
            "title": "Export profile rows",
            "type": "boolean",
            "description": "Deliver one public profile for each resolved account.",
            "default": true
          },
          "includePosts": {
            "title": "Export timeline posts",
            "type": "boolean",
            "description": "Export matching public posts written by each account.",
            "default": true
          },
          "maxPostsPerUser": {
            "title": "Posts per account",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum matching posts per account. Zero allows up to 5,000.",
            "default": 100
          },
          "maxFollowersPerUser": {
            "title": "Followers per account",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Export publicly visible followers. Zero skips this list.",
            "default": 0
          },
          "maxFollowingPerUser": {
            "title": "Following per account",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Export publicly visible accounts followed by this account. Zero skips this list.",
            "default": 0
          },
          "startDate": {
            "title": "Posts from",
            "type": "string",
            "description": "Inclusive China date (YYYY-MM-DD) or a relative period such as 7 days."
          },
          "endDate": {
            "title": "Posts through",
            "type": "string",
            "description": "Inclusive China date (YYYY-MM-DD) or a relative period such as 1 day."
          },
          "contentType": {
            "title": "Post media",
            "enum": [
              "all",
              "pictures",
              "videos"
            ],
            "type": "string",
            "description": "Select all posts, posts with pictures or posts containing videos.",
            "default": "all"
          },
          "onlyNewPosts": {
            "title": "Skip previously delivered posts",
            "type": "boolean",
            "description": "Remember post IDs across incremental runs in your account. Profile and connection rows are independent.",
            "default": false
          },
          "postUrls": {
            "title": "Post links for comment threads",
            "maxItems": 50,
            "type": "array",
            "description": "Desktop Weibo permalinks, mobile links or numeric post IDs. This input selects the thread exporter and takes precedence over content modes.",
            "items": {
              "type": "string"
            }
          },
          "includeReplies": {
            "title": "Export threaded replies",
            "type": "boolean",
            "description": "Deliver replies as separate billable records with their root comment ID.",
            "default": false
          },
          "maxRepliesPerComment": {
            "title": "Replies per comment",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum separately delivered replies per top-level comment.",
            "default": 10
          },
          "maxSourceRequests": {
            "title": "Maximum provider requests",
            "minimum": 1,
            "type": "integer",
            "description": "Optional run-wide cap on metered API attempts including retries."
          },
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search Weibo posts for. Each keyword is searched and paginated independently. Chinese keywords return the most results.",
            "default": [
              "美食"
            ],
            "items": {
              "type": "string"
            }
          },
          "userIds": {
            "title": "User IDs",
            "type": "array",
            "description": "Weibo user IDs (numeric uid, e.g. 6048496695) whose posted timeline you want to scrape.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postIds": {
            "title": "Post IDs (for comments)",
            "type": "array",
            "description": "Weibo post IDs (numeric mid, e.g. 5305452082759612) to fetch comments for. One dataset item is pushed per comment.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeHotSearch": {
            "title": "Include hot-search trends",
            "type": "boolean",
            "description": "Also scrape the current Weibo hot-search ranking (top ~50 trending topics). One dataset item is pushed per trend.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Run-wide row cap. Defaults to 50 in content modes. With postUrls, the per-post and reply limits apply up to 100000 rows."
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 0,
            "type": "integer",
            "description": "Top-level comments per post. With postUrls the default is 100, and 0 follows available pages. Legacy postIds defaults to 50."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Route the upstream API calls through an Apify Proxy to vary the source IP. Usually not needed.",
            "default": {
              "useApifyProxy": false
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Sample distinct posts from each search term.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerKeyword": {
            "title": "Results per keyword",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap the number of posts delivered per search term."
          },
          "sortBy": {
            "title": "Search ranking",
            "enum": [
              "comprehensive",
              "realtime"
            ],
            "type": "string",
            "description": "Select comprehensive or real-time results."
          },
          "originalOnly": {
            "title": "Original posts",
            "type": "boolean",
            "description": "Exclude reposts."
          },
          "excludePromoted": {
            "title": "Exclude promotions",
            "type": "boolean",
            "description": "Skip source-marked promotional posts."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}