Social media5 min readBy Purrkey teamUpdated

How to filter Bilibili search results by date and order

Run a filtered Bilibili general search and collect video rows with title, author, play, like, pubdate and bvid, then rank which to review first

On this page

You need 30 Bilibili videos about coffee published in a set window, sorted by the search order field, and you want a worksheet that shows which ones to review first. The table below is the deliverable: one row per video with title, author, play, like, pubdate, bvid, duration, typename and a priority you assign. Values here are placeholders showing the shape; no table in this article is a result set

Example input and worksheet design

The Example keyword is 咖啡. Replace it with your own topic. The date fields take a start and end in 10-digit timestamps; put your own window in query.pubtime_begin_s and query.pubtime_end_s. The order and page size are required even when you do not filter. The 30-row plan uses three pages with query.page_size 10

titleauthorplaylikepubdatebviddurationtypenamepriority
Example titleExample author000BV...Example durationExample typenamehigh, medium or low

Values here are placeholders showing the shape; no table in this article is a result set. The priority column is not a tool field; it is your decision after reading the row

Set the search fields

The tool id is tikhub.bilibili.web.fetch_general_search, and the tool is called through POST /v1/runs with toolId tikhub.bilibili.web.fetch_general_search. Required inputs are query.keyword, query.order, query.page and query.page_size. Optional inputs are query.duration, query.pubtime_begin_s and query.pubtime_end_s. Date fields use 10-digit timestamps. query.order is a string; the real call used totalrank, and the contract does not list an enum, so check the current accepted values before you pick one. For keyword-only search setup, see search Bilibili videos by keyword

For the 30-row target, set query.page_size to 10 and request query.page 1 through 3. That is a design, not a result count. Successful empty results are charged, so do not use extra pages as a probe; an empty page still adds $0.001 to the planned cost

Read the fields that set priority

The output is the supplier's raw JSON with no fixed schema. Tell the agent to read field names from the first page before mapping columns. The field names under output in the contract were observed on one run on 2026-11-13. Each item in data.result carries title, author, play, like, pubdate, bvid, duration and typename. Use pubdate to check the publish window, play and like to weigh engagement, and bvid to identify the video row. Pagination fields include data.page, data.pagesize, data.next, data.numPages and data.numResults; read them before asking for the next page

The tool cannot set priority for you; you assign that column after reading the row. Set high, medium or low from your own review. The priority column is the only part of the table that is not a returned field

What one real call returned

One real call was made on 2026-11-13. The input sent was {"query":{"keyword":"咖啡","order":"totalrank","page":1,"page_size":10,"duration":0,"pubtime_begin_s":0,"pubtime_end_s":0}}. Billing status was SETTLED, charged $0.001 against a ceiling of $0.001. data.result was an array with 10 items. data.numResults was 1000, data.numPages was 100, and data.pagesize was 10. The top-level keys of data were next, page, seid, result, egg_hit, exp_list, numPages, pagesize, rqt_type, numResults, show_column, in_black_key, in_white_key, is_hit_web_inf, suggest_keyword

The agent prompt

Example prompt; the keyword 咖啡 is the Example input and the timestamp placeholders are yours to replace. The prompt tells the agent to check the tool id and price before the run and to return the worksheet table

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to run a filtered Bilibili general search for keyword 咖啡. Check the current inputs and price of tikhub.bilibili.web.fetch_general_search before running anything. Use order totalrank, page_size 10, and pages 1 through 3. Set query.pubtime_begin_s to START_TIMESTAMP and query.pubtime_end_s to END_TIMESTAMP; both are 10-digit timestamps. Read the field names from the first page before mapping the table. Return one table with title, author, play, like, pubdate, bvid, duration, typename and priority, where priority is high, medium or low. Keep rows whose pubdate falls inside the window. Do not guess missing values.

Estimated tool cost

The price block lists $0.001 per call and the rule text 'Fixed per-call price; successful empty results are charged.' The totals below are ceilings for the planned number of calls. Model fees for the agent are not counted

StepFormulaUnit pricePlanned quantityTotal
One-page checkcalls x $0.001$0.001 per call1$0.001
Three-page sweepcalls x $0.001$0.001 per call3$0.003

The three-page sweep matches the 30-row design when each page returns 10 rows

Run the first page

Start with one page at Bilibili general search. If the first page gives rows inside your window, expand to the three-page sweep. Replace 咖啡 and the placeholder timestamps with your own inputs before the run

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

FAQ

How do I filter Bilibili search results by date and order?

Set query.pubtime_begin_s and query.pubtime_end_s to 10-digit timestamps, choose query.order, and page through tikhub.bilibili.web.fetch_general_search with a fixed query.page_size. Read pubdate from each result row.

What inputs does tikhub.bilibili.web.fetch_general_search take?

It requires query.keyword, query.order, query.page and query.page_size. Optional fields are query.duration, query.pubtime_begin_s and query.pubtime_end_s.

How many calls do I need for 30 Bilibili videos?

The plan uses three calls with query.page_size 10 and query.page 1 through 3. The article treats that as a 30-row design.

Which output fields set video priority?

Use title, author, play, like, pubdate, bvid, duration and typename from each result row. Add a priority column for your own review order.

What did the real call return?

The run on 2026-11-13 sent keyword 咖啡, order totalrank, page 1 and page_size 10, and settled at $0.001 against a $0.001 ceiling. data.result had 10 items and data.numResults was 1000.

Are successful empty Bilibili search results charged?

Yes. The price rule says 'Fixed per-call price; successful empty results are charged.' A call costs $0.001.

How much does a one-page check or three-page sweep cost?

At $0.001 per call, one page is $0.001 and three pages are $0.003. Model fees for the agent are not counted.

Next step

Try this with Bilibili

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 Bilibili tools

Share this article