How to search one Weibo user's posts by keyword
Search posts from a specified Weibo user ID by keyword, time window, and optional content filters
On this page
You have three Weibo user IDs and one campaign keyword, and you need to see what each user posted inside a fixed date window. Run tikhub.weibo.web_v2.search_user_posts once per user with the same keyword and time bounds, then scan the returned items to decide which accounts need closer monitoring or outreach
The worksheet below is the deliverable: one row per user, with the search context, the item count and your decision. This guide designs the run and the cost. The table values are placeholders showing the shape
The input and worksheet design
Example inputs:
| UID | q | starttime | endtime |
|---|---|---|---|
| 2885273312 | 旅行 | your start Unix timestamp | your end Unix timestamp |
| 1000000001 | 旅行 | your start Unix timestamp | your end Unix timestamp |
| 1000000002 | 旅行 | your start Unix timestamp | your end Unix timestamp |
The first UID is the run example; the other two UIDs are invented. Replace them with your own
query.uid is required and is the Weibo user ID you already have. q is the keyword to match; its default is empty. starttime and endtime are optional Unix timestamps. page defaults to 1. hasori, hasret, haspic, hasvideo, hastext and hasmusic default to 1. Set a filter to 0 to exclude that post type
The worksheet has one row per user. Values here are placeholders showing the shape:
| Search context (uid, q, starttime, endtime, filters) | data.total | data.list count | Items to review | Decision |
|---|---|---|---|---|
| 2885273312, 旅行, start, end, defaults | (integer) | (integer) | (count) | monitor, outreach or skip |
Keep a search context column of your own. It records the uid, keyword, time window and filter settings that produced the row. The agent should read the item field names from the first page and put the fields it finds into a review sheet
Run one user at a time
Call the tool once per user ID with the same q, starttime and endtime for the comparison. Agents call it through POST /v1/runs with toolId tikhub.weibo.web_v2.search_user_posts. Start on page 1 unless you need a later page
A successful empty result is charged. If a user has no matching post inside the window, the call still settles at $0.001. Do not treat an empty data.list as a failed call, and decide whether the account is worth the call before you run it
The content filters can narrow the list. Setting hasret to 0 excludes retweets, and setting haspic to 0 excludes image posts. Record the filter values you use in the search context column, because a later reader needs to know which post types were in scope
For a keyword search across Weibo posts rather than one user, see the companion guide at https://purrkey.app/blog/search-recent-weibo-posts-keyword
Read the output fields that drive the decision
The output is the supplier's raw JSON with no fixed schema. On the first page, read the top-level data.list and data.total. The contract observed data.total as an integer and data.list as an array. The item shape can differ across inputs, so have the agent read the field names from the first page instead of assuming them in advance
Use data.total as the count the supplier reports for the search. Use data.list for the items you scan. If data.list is empty, data.total may be 0. That is a valid result for a keyword and window with no match, not proof that the user has no other posts. The tool cannot show posts outside the keyword and window you sent
Fill the decision column from the scan. A row with items that fit the campaign keyword and window can go to monitor or outreach. A row with no items can go to skip unless the account matters for another reason. The worksheet is a triage sheet, so keep the search context beside the decision
What one real call returned
Run date: 2026-11-13. Input sent: {"query": {"uid": "2885273312", "q": "旅行"}}. Billing: status SETTLED, charged 0.001 USD against a ceiling of 0.001 USD. The top-level keys of data were list and total. data.list was an array with 0 items. data.total was 0
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search posts for three Weibo user IDs with the same keyword and time window. Check the current inputs and price of tikhub.weibo.web_v2.search_user_posts before running anything. Call it once per user ID. Use q for the keyword, starttime and endtime for the window, and leave the content filters at their defaults unless I list changes. Read the field names from the first page of the supplier JSON. Return a table with search context (uid, q, starttime, endtime, filters), data.total, data.list count, item fields found, and decision (monitor, outreach or skip). Do not describe an empty data.list as a failed call. Example rows: 2885273312 with q 旅行; 1000000001 with q 旅行; 1000000002 with q 旅行. Replace these with my user IDs and keyword.Replace the example rows with your own IDs and keyword. The three rows above are a design for the comparison, not an executed run. The only executed call is the one reported in the previous section
Estimated tool cost
The catalog lists a fixed per-call price of $0.001 per call. It also says: "Fixed per-call price; successful empty results are charged." The totals below are ceilings, not settled charges
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| Single user keyword pass | calls x price | $0.001 per call | 1 | $0.001 |
| Three user comparison | calls x price | $0.001 per call | 3 | $0.003 |
The three user comparison covers one call per user ID. A call with an empty result still counts in the planned quantity. Agent model fees are not counted
Start with one user
Open the tool page at https://purrkey.app/tools/weibo?q=search_user_posts and run the first user ID with your keyword and time window. Use that first call to check the item field names before you run the other two
Get started by giving this to your agent
- Claude Code
- Codex
- Gemini CLI
- Cursor
- GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Weibo.FAQ
How do I search one Weibo user's posts by keyword?
Pass the user ID in query.uid, set q to the keyword, set starttime and endtime for the window, and call the tool once for that user. The output has data.list and data.total.
What inputs does tikhub.weibo.web_v2.search_user_posts take?
It requires query.uid. q is the keyword and defaults to empty; starttime and endtime are optional Unix timestamps; page defaults to 1; hasori, hasret, haspic, hasvideo, hastext and hasmusic default to 1 and can be set to 0 to exclude that post type.
What do data.total and data.list contain?
data.total is an integer and data.list is an array. Read the item field names from the first page of the supplier JSON.
Are empty Weibo search results charged?
Yes. A successful empty result is charged at the fixed per-call price of $0.001.
How much does it cost to compare three Weibo users?
Three calls at $0.001 per call come to $0.003. A single user keyword pass is $0.001.
What filters can I set on the search?
hasori, hasret, haspic, hasvideo, hastext and hasmusic default to 1. Set a filter to 0 to exclude that post type.
Why did the example call return an empty list?
The call sent uid 2885273312 with q 旅行 on 2026-11-13. data.list had 0 items and data.total was 0, and the call settled at $0.001.
Next step
Try this with Weibo
The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.