Social media4 min readBy Purrkey teamUpdated

How to list a Bilibili user's videos by user ID

Get a Bilibili user's videos with IDs, titles, view counts, categories, and publish metadata from one API call

On this page

You have one Bilibili user ID and need the first page of up to 20 archive videos to check whether the account is active and which topics get views. The call returns video IDs, titles, view counts, categories, publish timestamps and durations, and the deliverable is a table with one row per video

The table below is the design for that deliverable. Values here are placeholders showing the shape, not results from a run

bvidtitleplaytnamectimeduration
video IDvideo titleinteger view countcategoryinteger timestampinteger duration

Use bvid as the stable key, title as the label, play to compare views, tname to group topics, ctime to order by publish time and duration to compare length. These six columns are enough to choose videos for a review or tracking list

Send the user ID and page settings

tikhub.bilibili.app.fetch_user_videos takes a query object with user_id required. The contract also shows page, ps and post_filter under query. page defaults to 1, ps defaults to 20 and post_filter defaults to archive. For this task, send query.user_id from the target profile, query.page set to 1, query.ps set to 20 and query.post_filter set to archive

Agents call it through POST /v1/runs with toolId tikhub.bilibili.app.fetch_user_videos

Example input: user_id 1622953481 with page 1, ps 20 and post_filter archive. Replace it with the target Bilibili user ID before you run. A successful empty result is charged, so a page that comes back with no items still settles as one call

Read the fields that drive the table

The output is the supplier's raw JSON with no fixed schema. Field names in the contract's output section were observed on this single run. Tell the agent to read the field names from the first page before it builds the table. The response carries data.item as the array of video objects, with data.count, data.order and episodic_button as other top-level keys under data

Use these fields from each item:

  • bvid: the video ID, used as the stable key in the review or tracking list
  • title: the video title
  • play: the view count, used to compare which topics get views
  • tname: the category name
  • ctime: the publish timestamp as an integer
  • duration: the video length as an integer

data.count is the count field for the response, and data.order carries the ordering options shown in the output. Read the first page to confirm which of these fields appear before you map the table

What one real call returned

On 2026-11-13, one call sent {"query": {"user_id": "1622953481", "page": 1, "ps": 20, "post_filter": "archive"}}. Billing status was SETTLED, charged 0.001 USD against a ceiling of 0.001 USD. Under data, the top-level keys were item, count, order and episodic_button. data.item was an array with 20 items. data.count was 783. data.order was an array with 2 items, and the first item had title and value as its keys. The first item's field names included bvid, title, play, tname, ctime and duration

The agent prompt

The prompt below asks for one page and the six-column table. Replace the example user ID with the target profile

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch one page of videos for one Bilibili user. Check the current inputs and price of `tikhub.bilibili.app.fetch_user_videos` before running. Send `query.user_id` from the target profile, `query.page` 1, `query.ps` 20 and `query.post_filter` archive. Read the field names from the first page before building the table. Return a table with bvid, title, play, tname, ctime and duration. Leave rows empty when the response has no items. Do not invent values.

Example input: user_id 1622953481. Replace it with the target Bilibili user ID.

Estimated tool cost

Prices read through inspect on November 13, 2026. The catalog unit is max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The price is $0.001 per call. The totals below are ceilings

StepFormulaUnit pricePlanned quantityTotal
Single pagecalls x max price$0.001 per call1$0.001
Five pagescalls x max price$0.001 per call5$0.005

A single page is one call, and five pages are five calls. An empty page still counts as one call. Model fees for the agent are not counted

Next action

Open the tool page to check the current inputs and price before you send the first request: tikhub.bilibili.app.fetch_user_videos

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 list a Bilibili user's videos by user ID?

Call tikhub.bilibili.app.fetch_user_videos with query.user_id set to the profile ID and query.page set to 1. Use query.ps set to 20 and query.post_filter set to archive for the first page of archive videos.

What input does tikhub.bilibili.app.fetch_user_videos need?

It needs query.user_id from the target Bilibili profile. The contract also shows query.page, query.ps and query.post_filter, with defaults of 1, 20 and archive.

What fields should I compare in the table?

Use bvid, title, play, tname, ctime and duration. bvid is the video ID, play is the view count, tname is the category, and ctime is the publish timestamp.

How much does it cost to fetch one page or five pages of Bilibili user videos?

The price is $0.001 per call. One page is one call at most $0.001, and five pages are five calls at most $0.005.

What happens when a Bilibili user has no videos on the requested page?

A successful empty result is charged, so a page with no items still costs one call at the $0.001 ceiling.

How many videos can one page return?

query.ps defaults to 20, and the real call described in the article sent ps set to 20 and received 20 items. query.page defaults to 1.

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