{
  "openapi": "3.0.1",
  "info": {
    "title": "Weibo 微博 Hot Search & Post Monitor: Trends, Comments, No Login",
    "description": "Track China's Weibo (微博) hot search board, posts, comments and accounts on a schedule. Rank and heat changes, new topics, likes/reposts/comments deltas, new comments only and follower growth, many posts and accounts per run. No login, no start fee. CSV, Excel, JSON.",
    "version": "0.1",
    "x-build-id": "6ntAZWb53B2Tkit5M"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~weibo-hot-search-post-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-weibo-hot-search-post-monitor",
        "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/neverempty~weibo-hot-search-post-monitor/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-weibo-hot-search-post-monitor",
        "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/neverempty~weibo-hot-search-post-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-weibo-hot-search-post-monitor",
        "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": {
          "hotSearch": {
            "title": "Read the Weibo hot search board (微博热搜)",
            "type": "boolean",
            "description": "On = return the current hot search board: about 50 topics with rank, heat, label (热, 新, 沸 …), category, when each topic entered the board and a search link, plus the pinned topic at rank 0. Ads on the board are never returned. Off = skip the board."
          },
          "hotSearchOnlyNew": {
            "title": "With monitoring: return only topics new on the board",
            "type": "boolean",
            "description": "Needs Monitoring mode. On = only topics that were not on the board at the last check are returned (and charged). Off = the whole board every run, each row with its previous rank, rank change and heat change. Topics that left the board come back as free rows either way."
          },
          "postUrls": {
            "title": "Weibo post URLs or ids",
            "type": "array",
            "description": "Posts to read: https://weibo.com/<user id>/<post id>, https://m.weibo.cn/detail/<id>, the 16-digit post id or the short letter id (for example Q1a2B3c4D). One per line, up to 1,000. Each returns one row with the text, likes, reposts, comments, hashtags, images, video link, region and author.",
            "items": {
              "type": "string"
            }
          },
          "commentsPerPost": {
            "title": "Maximum comments per post",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "How many comments to return for each post in postUrls. 0 = no comments. Weibo shows visitors a limited window of comments on very large posts (usually 100 to 300); if fewer come back, a free row says how many.",
            "default": 0
          },
          "commentsSort": {
            "title": "Comment order",
            "enum": [
              "newest",
              "top"
            ],
            "type": "string",
            "description": "newest = newest comments first (best for monitoring). top = the most liked comments first. On very large posts (hundreds of thousands of comments) Weibo hands visitors only a few of the newest comments, so choose top there to get up to about 300.",
            "default": "newest"
          },
          "trendingPosts": {
            "title": "Trending posts to return",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "How many posts to return from Weibo's trending feed (热门), the posts spreading right now. Same columns as a post row, with foundIn = trending. Ads are never returned. 0 = skip.",
            "default": 0
          },
          "users": {
            "title": "Weibo accounts",
            "type": "array",
            "description": "Accounts to read: https://weibo.com/u/<user id>, the numeric user id, https://weibo.com/n/<name> or @name. One per line, up to 1,000. Each returns one row with followers, following, post count, bio, location, verification and total likes, comments and reposts received.",
            "items": {
              "type": "string"
            }
          },
          "monitoringMode": {
            "title": "Monitoring mode: track changes since the last run",
            "type": "boolean",
            "description": "Off = every run returns everything asked for. On = each row also carries the change since the last run (rank and heat on the board, likes, reposts and comments on posts, followers and posts on accounts), comments and trending posts returned before are skipped and not charged, and topics that left the board come back as free rows. Remembered per account in this Actor; do not run two schedules with the same posts at the same time.",
            "default": false
          },
          "skipUnchanged": {
            "title": "With monitoring: skip posts and accounts whose numbers did not change",
            "type": "boolean",
            "description": "Needs Monitoring mode. On = a post whose likes, reposts and comments are the same as at the last run, or an account whose followers and posts are the same, is not returned and not charged; one free row counts them. Off = they are returned every run.",
            "default": false
          },
          "resetMonitoringState": {
            "title": "Forget what monitoring remembered",
            "type": "boolean",
            "description": "On = before this run, forget the remembered board, posts, comments and accounts, so this run returns everything again as a fresh start. Turn it off again for the next scheduled runs.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}