How do I scrape all the posts under a Weibo topic (#hashtag#)?

A Weibo topic page is a search: the weiboSpider author explained in issue 104 (January 2020, 61 comments) that getting a topic's posts is just Weibo search with the keyword wrapped in #, 10 results a page, and that search shows at most about 100 pages, so long topics have to be split by day. XTikAPI's weibo.posts.search takes the same keyword (for example #话题#) and a cursor, $0.002 a page, with no cookie on your side.

Updated 2026-11-24

Why a topic stops after a few dozen posts

In the same thread a user could only get about 74 original posts from a topic. The author's answer: either the search really had that few results, or the account was being limited, so add longer random waits between pages. He also pointed out that search results cap at around 100 pages, so for a busy topic you loop over starttime/endtime one day at a time on weibo.cn's advanced search.

The common failure in the thread, an index error in get_one_page, he put down most likely to a wrong cookie.

With XTikAPI

Posts under the topic

Endpoint: weibo.posts.search

Parameters: keyword = #topic#, cursor

Newest first, for monitoring

Endpoint: weibo.posts.realtime

Parameters: keyword, cursor

Full text, counts

Endpoint: weibo.posts.detail

Parameters: status_id

Comments on a post

Endpoint: weibo.comments.list

Parameters: status_id, max_id

weibo.posts.search also has search_type (38 = topics, 98 = super topics) to find the topic itself.

Cost: 100 pages of a topic = 100 calls × $0.002 = $0.20. A failed call is not charged.

Why XTikAPI

  • XTikAPI reads Weibo with 12 endpoints from $0.002 a call, and a failed call is not charged.
  • Fewer tokens for AI: across 12 recorded live Weibo calls (2026-11-18), raw platform JSON is ~412k tokens vs ~18k via XTikAPI REST (95.6% fewer) and ~20k via MCP (95.3% fewer).
  • See before you pay: 192 of 229 endpoints show a recorded real response on their page (12 of 12 for Weibo).
  • One shape: posts, comments and accounts from 19 platforms come back as the same objects, author in author and counts in metrics, so another platform needs no new parser.
  • Free trial: a verified account gets $0.50, no card.

Endpoints

Each with its price; the endpoint page has parameters, fields and a recorded response.

How to do it

Sources

What this page says about other products comes from their own pages and docs, read on 2026-11-24.

More about Weibo

Questions

Can I get a super topic (超话) feed?

Search it: `weibo.posts.search` with `search_type` 98 finds super topics; posts that mention it come back from a normal keyword search.

How do I get more than the search cap?

Split the time range, as the weiboSpider author suggested, or poll `weibo.posts.realtime` every few minutes and keep what is new.

One key. Start now.

19 platforms, 229 endpoints, from $0.002 a call. Errors and timeouts are free.

Start free