Social media5 min readBy Purrkey teamUpdated

How to filter Weibo keyword results by media and time

Get a filtered table of Weibo posts with author, engagement, media flags, and publish time for a keyword

On this page

You need 30 Weibo posts about a product launch, limited to video posts from verified accounts, and a table that can go into a content-mix report. The search tool takes your keyword plus media and account filters, and returns posts you can page through and compare

The deliverable table has these columns: weibo_id, user_name, publish_time, weibo_type, content, like_count, repost_count, comment_count, post_url, and a reader-added content_format. The last column comes from media.has_video and media.has_image

The task and the table you need

Example input: keyword 咖啡, page 1. Replace it with the launch keyword before you run the task. The table below is a design. Values here are placeholders showing the shape

weibo_iduser_namepublish_timeweibo_typecontentlike_countrepost_countcomment_countpost_urlcontent_format
(id)(name)(time)original(post text)000(url)video

Fill content_format as video when media.has_video is true, image when media.has_image is true and media.has_video is false, and text when both are false. Keep the row if content_format is video and the search used verified; compare interaction.like_count, interaction.repost_count, and interaction.comment_count for the report. A row with media.has_video true is a video row. A row with media.has_video false stays out of the video table even if media.has_image is true. Keep post_url and weibo_id so each row can be checked against the live post

Call tikhub.weibo.web_v2.fetch_advanced_search through POST /v1/runs with toolId tikhub.weibo.web_v2.fetch_advanced_search. The query object is required, and query.q is the required keyword. The contract lists optional query.include_type, query.search_type, query.timescope, and query.page

Use query.include_type with video for this task. The contract also lists pic, music, and link. Use query.search_type with verified for verified accounts. The contract also lists hot, original, media, and viewpoint. For a date window, set query.timescope as custom:start:end. Start with query.page at 1. A higher query.page requests the next page from the supplier

The companion guide on searching recent Weibo posts by keyword covers a simpler recent-post search if you do not need these filters

How to read the output and decide

The output is the supplier's raw JSON with no fixed schema. Read the field names from the first page before you build the table. Keys not listed may or may not appear, so leave a cell empty when a key is missing. The output field names in the contract were observed on the 2026-11-13 run

Within each result, the contract lists weibo_id, user_name, publish_time, weibo_type, content, post_url, and media.has_image plus media.has_video. Engagement sits under interaction.like_count, interaction.repost_count, and interaction.comment_count. Use media.has_video to keep video posts, and use publish_time plus weibo_type in the content-mix comparison. The contract also lists parsed_data.results and result_count; parse_success is listed as a boolean. Use result_count to see how many results the supplier reports for the page

A successful empty result is charged. The price rule says "Fixed per-call price; successful empty results are charged." So a page with no matching video posts still costs one call

What one real call returned

A real call ran on 2026-11-13. The input sent was {"query": {"q": "咖啡", "page": 1}}. Billing status was SETTLED, with 0.001 USD charged against a ceiling of 0.001 USD. The top-level key of data was parsed_data

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to collect 30 Weibo posts for the Example keyword 咖啡, filtered with query.include_type set to video and query.search_type set to verified. Check the current inputs and price of tikhub.weibo.web_v2.fetch_advanced_search before running anything. Start at query.page 1 and page until the table has 30 rows or results run out. Read field names from the first page before building the table. Return a table with weibo_id, user_name, publish_time, weibo_type, content, like_count, repost_count, comment_count, post_url, content_format. Derive content_format from media.has_video and media.has_image. Do not invent fields. If a key is missing, leave the cell empty.

Swap 咖啡 for your launch keyword. The first page may not hold 30 filtered posts, so the page loop is part of the task

Estimated tool cost

The catalog lists a fixed price of $0.001 per call. The table below is a ceiling for the planned calls. Model fees for the agent are not counted

StepFormulaUnit pricePlanned quantityTotal
Single filtered page1 call x per-call price$0.001 per call1$0.001
Three pages of filtered results3 calls x per-call price$0.001 per call3$0.003

A successful empty result is charged under the same per-call price, so the planned quantity should include each page you request

Start with one filtered page

Open Weibo Advanced Search to check the current input schema and price, then run one filtered page before you page to 30 rows

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.
Explore Weibo tools and pricing

FAQ

How do I filter Weibo keyword results by media and time?

Set query.q to the keyword, query.include_type to video, query.search_type to verified, and query.timescope to custom:start:end for a date window. Page through results with query.page.

What inputs does tikhub.weibo.web_v2.fetch_advanced_search take?

query.q is required. The contract lists optional query.include_type, query.search_type, query.timescope, and query.page; timescope uses custom:start:end and page starts at 1.

What fields can I use from each Weibo result?

The contract lists weibo_id, user_name, publish_time, weibo_type, content, interaction.like_count, interaction.repost_count, interaction.comment_count, post_url, media.has_image, and media.has_video.

Why can a Weibo result be missing a field I expected?

Keys not listed may or may not appear, so read field names from the first page and leave missing cells empty.

How much does one filtered page cost?

One call is $0.001. The cost table treats one filtered page as 1 call, or $0.001, and three pages as 3 calls, or $0.003. A successful empty result is charged.

What did the real call on 2026-11-13 return?

The input sent was {"query": {"q": "咖啡", "page": 1}}. Billing was SETTLED, with 0.001 USD charged against a ceiling of 0.001 USD, and the top-level key of data was parsed_data.

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.

See Weibo tools

Share this article