How one keyword leads to danmaku, comments and the uploader
The BV link from search opens the next steps: video and subtitles read the video itself, danmaku and comments read the audience, and author_id goes to profile and user_posts.
- 1
Find videos with search
search
keyword is a video title or topic, not an uploader's nickname. sort takes relevance, newest, most_viewed, most_commented or most_liked, and most_liked actually ranks by saves, not likes. since and until filter by upload date in Beijing time. You get 20 by default, up to 50, each with plays, danmaku, likes, saves, comments and length.
- 2
Read the video with video and subtitles
videosubtitles
video returns the title, tags and uploader with view_count, danmaku_count, coin_count, favorite_count, share_count and other counts; the description and category are sometimes missing. subtitles returns the full speech transcript with timed segments, so your agent can quote the uploader at a given moment.
- 3
Read the audience with danmaku and comments
danmakucomments
danmaku reads the scrolling comments on the first part, 50 by default and up to 200, each with video_time_seconds for when it appears and sent_at for when it was sent. comments reads the comment section: without page_token you get up to 10; to page, send an empty page_token first, then pass back the token each page returns, up to 20 per page. Hand busy comments to comment_replies.
- 4
Check the uploader with profile and user_posts
profileuser_posts
user_id is the uploader's numeric mid, the digits after space.bilibili.com/; don't use a nickname, BV ID or the whole profile link. profile returns followers, level, verification, the is_vip flag and likes received; user_posts lists uploads, 20 by default and up to 50.