How to fetch Bilibili video comments by BV ID
Fetch Bilibili video comments by BV or AV ID, with hot or time sort mode and cursor fields for the next page
On this page
You have three Bilibili videos queued for a weekly content review and need the comment threads for each one in a single review table. The job is to pull one page per video, sort by hot or time, and mark which discussions need a response or another page. The deliverable is a table with one row per comment and the cursor for the next page. Values in the table below are placeholders showing the shape
Example input and review table design
Example input: bv_id set to BV1ByW96LEKm, sent with mode 3 for hot and next_offset 1 for the first page. Replace it with the BV ID from each of your three video URLs, or use an AV ID from the av_id field. If you need to find the videos first, the companion guide is at https://purrkey.app/blog/search-bilibili-videos-by-keyword
The review table has these columns. Values here are placeholders showing the shape
| rpid_str | member.uname | content.message | like | rcount | ctime | cursor.pagination_reply.next_offset | review_note |
|---|---|---|---|---|---|---|---|
| (comment id) | (author) | (comment text) | 0 | 0 | 0 | (cursor or empty) | reply, watch or skip |
| (comment id) | (author) | (comment text) | 0 | 0 | 0 | (cursor or empty) | reply, watch or skip |
Keep one row per reply object from data.replies. Use content.message as the comment text and like as a numeric signal when you rank rows for review. The cursor field is page-level, so record it for the page that produced the row. The tool cannot tell you which comment needs an answer; that judgment stays with you
What the tool takes
tikhub.bilibili.app.fetch_video_comments is called through POST /v1/runs with toolId tikhub.bilibili.app.fetch_video_comments. The input is a query object. The contract lists bv_id, av_id, mode and next_offset. No fields are marked required
Provide bv_id or av_id from the video URL. Set mode to 3 for hot comments or 2 for time order; the default is 3. Set next_offset to 1 for a first page, or to the cursor value from a prior response for a later page; the default is 1. The example above uses a BV ID, mode 3 and next_offset 1
How to read the comment fields
The output is the supplier's raw JSON with no fixed schema; the field names below come from the contract and were observed on one run. Read data.replies as the array of comment objects. For each object, rpid_str is the field to carry into the row key, member.uname is the author field, and content.message is the comment text. like and rcount are numeric fields. ctime is an integer field
Use like to rank visible agreement and rcount as a second engagement number. Use content.message to decide if a discussion needs a response
Paginate with the next_offset cursor
A single call returns one page. To fetch another page, read cursor.pagination_reply.next_offset and send that value as next_offset in the next call. The cursor is the pagination control, and one call cannot return two pages at once
What one real call returned
On 2026-11-13, one call was sent with bv_id set to BV1ByW96LEKm, mode 3 and next_offset 1. Billing was SETTLED, charged 0.001 USD against a ceiling of 0.001 USD. Top-level keys under data were top, note, vote, upper, assist, config, cursor, control, effects, replies, blacklist, callbacks and top_replies. data.note was 1, data.vote was 0, data.assist was 0, and data.blacklist was 0. data.replies was an array with 20 items; the first item carried field names such as rpid_str, member, content, like, rcount and ctime
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch Bilibili video comments for the three Example BV IDs below. Check the current input schema and price of `tikhub.bilibili.app.fetch_video_comments` before running. Read the field names from the first page before mapping the table. Call the tool once per video, with mode 3 for hot or 2 for time and next_offset set to 1 for the first page. Return a table with rpid_str, member.uname, content.message, like, rcount, ctime, cursor.pagination_reply.next_offset and review_note. Put reply, watch or skip in review_note for each row. Do not send replies and do not call another page unless I ask.
Example BV IDs, replace with your three video IDs:
BV1ByW96LEKm
BV1ExampleVideoB
BV1ExampleVideoCThe prompt keeps the run to one page per video so the first table shows the shape and the cursor. When a row needs discussion, use the cursor from that page to request the next page in a separate call
Estimated tool cost
Prices from the Purrkey catalog, read through inspect on November 13, 2026. The unit price is $0.001 per call. The catalog rule says: "Fixed per-call price; successful empty results are charged." The totals below are ceilings for planning
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| One page | 1 call x price | $0.001 per call | 1 | $0.001 |
| Three pages | 3 calls x price | $0.001 per call | 3 | $0.003 |
The three-video review with one page per video is 3 calls, at most $0.003. If you pull three pages from one video instead, the plan is still 3 calls and at most $0.003. Agent model fees are not counted
Review the videos and choose the next page
Read the first table, mark the rows that need a response, and keep the cursor from the page you are reviewing. To run the next review, open the tool page: https://purrkey.app/tools/bilibili?q=fetch_video_comments
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 fetch Bilibili video comments by BV ID?
Call tikhub.bilibili.app.fetch_video_comments with a query object that includes bv_id, then read data.replies for the comment objects. Set mode to 3 for hot or 2 for time, and use next_offset for the page cursor.
What inputs does tikhub.bilibili.app.fetch_video_comments take?
The contract lists a query object with bv_id, av_id, mode and next_offset. No fields are marked required; mode defaults to 3 and next_offset defaults to 1.
How do I get the next page of Bilibili comments?
Read cursor.pagination_reply.next_offset from the current response and send it as next_offset in the next call. A single call returns one page.
What fields should I put in a Bilibili comment review table?
Use rpid_str, member.uname, content.message, like, rcount, ctime, cursor.pagination_reply.next_offset and your own review_note.
How much does one Bilibili comment page cost?
The catalog lists $0.001 per call, and one page is one call. Three pages are three calls, at most $0.003.
What did the real Bilibili comments call return?
On 2026-11-13, the call sent the example BV ID with mode 3 and next_offset 1 and settled at 0.001 USD against a ceiling of 0.001 USD. data.replies was an array with 20 items.
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.