How to search Bilibili by content type for a keyword
Run a keyword search across Bilibili content types and review returned items with titles, authors, play counts, and pagination cursor
On this page
You have one keyword and need 20 Bilibili results from a chosen content stream to decide whether the video, article or user stream is worth pursuing for a content brief. The worksheet below is the deliverable: one row per item, with a reader-added Search type column and the cursor for the next page
Values here are placeholders showing the shape. No table in this guide is a result except the single call reported under "What one real call returned"
Example input and the deliverable table
Example input, with values the reader replaces: query.keyword = 咖啡, query.search_type = video, query.order = 0, query.page_size = 20, query.cursor = "". The reader replaces the keyword with their own term
The deliverable table uses these columns. Values here are placeholders showing the shape
| Search type | Title | Author | Play count | Danmaku count | Duration | Goto | Param | Pagination next |
|---|---|---|---|---|---|---|---|---|
| video | placeholder title | placeholder author | 0 | 0 | 0:00 | av | 000000 | cursor from data.pagination.next |
| video | placeholder title | placeholder author | 0 | 0 | 0:00 | av | 000000 | cursor from data.pagination.next |
Add the Search type column because the observed top-level keys do not include a search_type field. Keep 20 rows for a page_size of 20, or fewer if the response has fewer items
Search one content type
tikhub.bilibili.app.fetch_search_by_type is called through POST /v1/runs with toolId tikhub.bilibili.app.fetch_search_by_type. The input is a query object. query.keyword is required. query.search_type is optional and defaults to video; the contract gives video, bangumi, pgc, live, article and user. query.order is optional and defaults to 0; the contract maps 0 to 综合, 1 to 最新, 2 to 播放量 and 3 to 弹幕数. query.page_size is optional and defaults to 20. query.cursor is optional and defaults to an empty string
For a first look at a content stream, set page_size to 20, leave cursor empty, choose the search_type and send one call. Read the returned items before choosing another search type. A companion guide covers Bilibili video keyword search
Read the output fields and page with the cursor
The output is the supplier's raw JSON with no fixed schema. Field names in the CONTRACT JSON under output were observed on this single run, so read the field names from the first page before mapping the table. For the observed video item, av.title, av.author, av.play, av.danmaku and av.duration fill the title, author, play count, danmaku count and duration columns. goto and param fill the item reference columns. data.pagination.next fills the Pagination next column
Cursor paging is the limit to place next to this step: the first page leaves query.cursor empty; later pages must pass back data.pagination.next from the previous response. Use data.items for the rows and data.pages for the page count in the response. A successful empty result is charged under the fixed per-call price
For a non-video search_type, the video field names cannot be used as a fixed list; read the first page and map the columns from the field names that appear there
What one real call returned
On 2026-11-13, one call sent {"query": {"keyword": "咖啡", "cursor": "", "order": 0, "page_size": 20, "search_type": "video"}}. Billing settled at $0.001 charged against a $0.001 ceiling. data.items was an array with 20 items; the first item keys were av, uri, goto, param and user_act. data.pages was 50. Top-level keys of data were page, items, pages, exp_str, keyword, trackid, annotation, pagination, real_exposure_ratio and result_is_recommend
The agent prompt
Example prompt for the video stream. Change the keyword and search type with your own values
Set up https://purrkey.app/SKILL.md, then use Purrkey to search Bilibili by content type for a keyword. Check the current inputs and price of tikhub.bilibili.app.fetch_search_by_type before running. Read the field names from the first page of the response. Run one first-page search with query.keyword "咖啡", query.search_type "video", query.order 0, query.page_size 20 and query.cursor empty. Return a table with Search type, Title, Author, Play count, Danmaku count, Duration, Goto, Param and Pagination next. Use 20 rows if the response has 20 items. Do not run another search type in this call.The prompt uses the video stream. Change search_type to article or user for a different first page
Estimated tool cost
Prices from the Purrkey catalog, read through inspect on November 13, 2026. The catalog lists tikhub.bilibili.app.fetch_search_by_type at $0.001 per call. The max_call rule reads: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The cost table below is a ceiling. The price rule also says: "Fixed per-call price; successful empty results are charged." Model fees for the agent are not counted
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| First page, one search type | 1 call x $0.001 | $0.001 per call | 1 | $0.001 |
| First page, six search types | 6 calls x $0.001 | $0.001 per call | 6 | $0.006 |
The single-type row matches the prompt. The six-type row plans one first page for video, bangumi, pgc, live, article and user. A successful empty result is charged, so a type with no items still settles at $0.001 under the price rule
Next action
Run the first page for your chosen content type at the Bilibili search tool page
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.FAQ
How do I search Bilibili by content type for a keyword?
Send query.keyword with query.search_type set to video, bangumi, pgc, live, article or user. Leave query.cursor empty on the first page and use data.pagination.next from the response for the next page.
What inputs does tikhub.bilibili.app.fetch_search_by_type take?
It takes a required query object with keyword, plus optional search_type, order, page_size and cursor. search_type defaults to video, order defaults to 0, page_size defaults to 20 and cursor defaults to an empty string.
What fields should I read from a Bilibili search result?
For the observed video item, read av.title, av.author, av.play, av.danmaku and av.duration, plus goto and param for the item reference. For another search_type, read the field names from the first page before mapping the columns.
How does pagination work in this Bilibili search tool?
The first request leaves query.cursor empty. Later requests pass back data.pagination.next from the previous response as query.cursor.
How much does a first-page Bilibili search cost?
The catalog lists $0.001 per call. One first-page search for one content type is at most $0.001, and first pages for six search types are at most $0.006. A successful empty result is charged.
What did the real Bilibili search call return?
On 2026-11-13, a video search for 咖啡 with page_size 20 returned data.items with 20 items. Billing settled at $0.001 charged against a $0.001 ceiling.
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.