{
  "openapi": "3.0.1",
  "info": {
    "title": "Weibo Hot Search Scraper (China Trending Topics API)",
    "description": "Weibo hot search (微博热搜) in one call: realtime, entertainment, news and hot-topic boards with rank, heat, category, label (hot/new/boom), ads flagged, topic link. Optional top posts from verified accounts. $4 per 1,000.",
    "version": "0.1",
    "x-build-id": "NEdz23v8hsMo553bS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/praguedatalab~weibo-trends-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-praguedatalab-weibo-trends-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/praguedatalab~weibo-trends-scraper/runs": {
      "post": {
        "operationId": "runs-sync-praguedatalab-weibo-trends-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/praguedatalab~weibo-trends-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-praguedatalab-weibo-trends-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "hotSearch",
              "topicPosts",
              "hot_timeline",
              "hot_search",
              "hot_search_delta",
              "search",
              "post_comments",
              "post_details",
              "user_posts",
              "user_profile",
              "complaints"
            ],
            "type": "string",
            "description": "<b>hotSearch</b>: snapshot of the hot-search boards (one <code>trend</code> event per topic). <b>topicPosts</b>: top public posts of verified accounts for your topics, or for the current top trends (one <code>post</code> event per post). <b>hot_timeline</b>: posts of verified accounts from Weibo's hot feed. The leader's names <code>hot_search</code>, <code>hot_search_delta</code> and <code>search</code> work too; its other modes are answered with a status message and charge nothing.",
            "default": "hotSearch"
          },
          "boards": {
            "title": "Boards",
            "type": "array",
            "description": "Hot-search boards to read in hotSearch mode: <b>realtime</b> (热搜榜, the main 50-topic board with category and first-seen time), <b>entertainment</b> (文娱榜) and <b>news</b> (要闻榜). All three by default.",
            "items": {
              "type": "string",
              "enum": [
                "realtime",
                "entertainment",
                "news"
              ],
              "enumTitles": [
                "Realtime 热搜榜",
                "Entertainment 文娱榜",
                "News 要闻榜"
              ]
            },
            "default": [
              "realtime",
              "entertainment",
              "news"
            ]
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many rows in total (each row is one charged event). With several boards the top of every board is kept first: 60 rows over 3 boards = the top 20 of each. Leave empty for everything (about 150 topics, or 100 posts)."
          },
          "adFilter": {
            "title": "Paid topics (ads)",
            "enum": [
              "drop",
              "keep",
              "only",
              "organic_only",
              "all",
              "promo_only"
            ],
            "type": "string",
            "description": "Weibo sells one slot on the realtime board. <b>drop</b> (default) removes it before billing; <b>keep</b> returns it flagged <code>isAd: true</code>; <b>only</b> returns just the paid slots. The leader's values <code>organic_only</code>, <code>all</code> and <code>promo_only</code> work the same way.",
            "default": "drop"
          },
          "deltaMode": {
            "title": "Compare with the previous run",
            "type": "boolean",
            "description": "hotSearch: tag every topic <code>new</code>, <code>rising</code>, <code>falling</code>, <code>steady</code> or <code>dropped</code> versus the previous run with the same delta key, with rank and heat changes and running peaks. topicPosts / hot_timeline: return only posts no earlier run delivered. The first run sets the baseline.",
            "default": false
          },
          "deltaStateKey": {
            "title": "Delta key",
            "type": "string",
            "description": "Name of an independent tracking stream for deltaMode (e.g. <code>hourly</code>, <code>brand-x</code>). State is kept in your key-value store <code>weibo-trends-state</code>.",
            "default": "default"
          },
          "topics": {
            "title": "Topics",
            "type": "array",
            "description": "topicPosts mode: topics or keywords to search, e.g. <code>#李小冉离婚#</code> or <code>新能源汽车</code>. Leave empty to use the current top trends of the realtime board.",
            "items": {
              "type": "string"
            }
          },
          "topTrends": {
            "title": "Top trends to follow",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "topicPosts mode without topics: how many of the current top realtime trends to fetch posts for.",
            "default": 5
          },
          "postsPerTopic": {
            "title": "Posts per topic",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum posts per topic (10 when empty; in <code>search</code> mode Maximum results is used instead). Weibo shows anonymous visitors about 20 posts per topic (hot first)."
          },
          "authorFilter": {
            "title": "Authors",
            "enum": [
              "verified",
              "organizations"
            ],
            "type": "string",
            "description": "Posts are only taken from verified accounts, never from private individuals. <b>verified</b>: organisations (blue V: media, government, companies, schools) and verified public figures (orange V). <b>organizations</b>: blue V only.",
            "default": "verified"
          },
          "fetchFullText": {
            "title": "Fetch full text of long posts",
            "type": "boolean",
            "description": "Weibo cuts long posts at about 140 characters in lists. When on, each cut post is fetched in full at no extra charge.",
            "default": true
          },
          "searchQuery": {
            "title": "Search query (search mode)",
            "type": "string",
            "description": "Leader field. In <code>search</code> / <code>topicPosts</code> mode it is searched like a topic (verified-account posts only)."
          },
          "maxResults": {
            "title": "Max results (alias of Maximum results)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Leader field, same meaning as <b>Maximum results</b>. Used when Maximum results is empty."
          },
          "userIds": {
            "title": "User IDs (not used)",
            "type": "array",
            "description": "Leader field, accepted so its inputs validate. User-based modes are not offered; the run says so in its status message.",
            "items": {
              "type": "string"
            }
          },
          "postIds": {
            "title": "Post IDs (not used)",
            "type": "array",
            "description": "Leader field, accepted so its inputs validate. Post-based modes are not offered; the run says so in its status message.",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Weibo answers datacenter IPs without a proxy today; enable Apify Proxy only if runs start failing.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}