Bilibili API
Read Bilibili videos, comments, on-screen comments, speech transcripts, uploader profiles and the Popular page as JSON with one EveryInfra API key, from $0.56 per 1,000 calls.
All you need is one API key, no Bilibili account or cookie. It also works as an MCP tool in Claude and Cursor. Star our two GitHub repositories to claim $1 in trial credit and try it first. The credit is valid for 24 hours after you claim it.
- 19 endpoints, one key.
- Failed calls and empty results are not charged.
- No Bilibili login needed.
Real sample values for one video
POST /api/v1/social params {"url":"https://www.bilibili.com/video/BV1DYjA6KEJ7"}
- Video details
video- like_count
- 121,499
- comment_count
- 8,653
- Comments
comments- count
- 20
- results[0].like_count
- 8,927
- On-screen video comments
danmaku- count
- 50
- Video parts
video_parts- count
- 1
- Link recognition
resolve_links
Platform availability
- 24h health
- 96%
Last 30 days
Available capabilities
Retrieve video metadata, creator profiles, audience comments, bullet chats, and voice transcripts to analyze content engagement.
Look up creators via numeric identifiers and videos via sharing links, noting that automated transcripts differ from manual subtitles.
Videos and search
- SearchHealthy · health 100%
Search Bilibili for videos on a topic, with duration, views, likes, coins, favorites, danmaku and comment counts, uploader and publish time.
search$0.56 per 1,000 calls - General searchNormal
Search Bilibili the way its All tab does: videos, accounts, anime series, films and live rooms mixed in one list, each row tagged with
type.general_search$0.79 per 1,000 calls - PopularNormal
Browse the videos on Bilibili's Popular page, 20 per page, each with BV and av IDs, views, likes, danmaku, coins, favorites, shares, comments, duration, category, uploader and upload IP region.
popular$0.81 per 1,000 calls - Video detailsHealthy · health 100%
Fetch one Bilibili video by its BV link for description, duration, publish date, uploader, category, tags and view, like, coin, favorite and share counts.
video$0.56 per 1,000 calls - Video partsNormal
List every part (P) of a Bilibili video in one call:
cid, part number, part title, duration and frame size.video_parts$0.56 per 1,000 calls - Media download linksNormal
Get the video and audio stream addresses of one part (P) of a Bilibili video, from its link or BV ID and the part's
cid.media_links$0.79 per 1,000 calls - Link recognitionNormal
Turn a BV ID, av number, video link or b23.tv short link into the video's BV ID, av number and standard link.
resolve_links$0.56 per 1,000 calls
Uploaders and accounts
- Account searchNormal
Find Bilibili accounts by nickname or keyword, 20 per page.
user_search$0.56 per 1,000 calls - ProfilesNormal
Look up a Bilibili uploader by numeric ID.
profile$0.56 per 1,000 calls - Posts by userHealthy · health 100%
List the videos an uploader has posted on Bilibili, each with link, title, duration, views and engagement counts.
user_posts$0.56 per 1,000 callsEvery 20 rows count as one call - User dynamicsNormal
Read the dynamics a Bilibili user has posted (videos, image posts, text, reposts and more), newest first, about 12 per page and paged with
page_token.user_dynamics$0.79 per 1,000 calls - FollowersNormal
Get the follower count and following count of one Bilibili account by its numeric UID.
followers$0.56 per 1,000 calls
Comments, on-screen comments and transcripts
- CommentsHealthy · health 99%
Read viewer comments under a Bilibili video.
comments$0.56 per 1,000 calls - Comment repliesHealthy · health 92%
Read the replies under one top-level comment on a Bilibili video, oldest first, 20 per page.
comment_replies$0.56 per 1,000 calls - On-screen video commentsNormal
Pull the on-screen bullet comments (danmaku) from a Bilibili video, each with text, playback time, display mode, color and send time.
danmaku$0.56 per 1,000 callsEvery 50 rows count as one call - SubtitlesHealthy · health 97%
Get the subtitle text of a Bilibili video.
subtitles$0.79 per 1,000 calls
Games
- Game score summaryNormal
Get the score summary of a game in Bilibili's game center, from its game ID or detail page link: the
ratingout of 10, the total and valid review counts, and how many reviews gave each star.game_score$0.79 per 1,000 calls - Game reviewsNormal
Read player reviews of a game in Bilibili's game center, from its game ID or detail page link, usually 10 per page.
game_reviews$0.79 per 1,000 calls - Replies to a game reviewNormal
Read the replies under one player review of a Bilibili game, oldest first, up to 10 per page.
game_comment_replies$0.79 per 1,000 calls
6 questions to ask before choosing a data API for Bilibili
Does Bilibili have an official API, and how is it different from this one?
Bilibili Open Platform serves creators and service partners: after identity verification, apps can publish and manage videos and articles for authorized accounts, read those accounts' data and connect to their live rooms. Its published API list has no endpoint for searching public videos or reading other users' comments or danmaku. With one EveryInfra API key, you can read public Bilibili data in the same request format as other platforms, without applying for Bilibili developer access.
Official sources: Bilibili Open Platform · Bilibili Open Platform: API documentation · Checked
Do I need to log in to Bilibili or provide a cookie to make calls?
No. Send Authorization: Bearer with your API key in the request header, and put platform, action and the capability parameters in the request body. There is no QR-code login, no login state to maintain and no browser to run.
How is it billed? Are failed requests charged? Is there a free trial?
Billing is per request, from $0.56 per 1,000 requests. Failed requests, empty results, invalid parameters and authentication failures are not charged. Star both everyinfra/everyinfra-agent-plugins and everyinfra/seo-skills on GitHub, then claim $1 under Balance & top-ups in the console. It is valid for 24 hours after you claim it, and no credit card is needed.
Can I connect this Bilibili API to Claude or Cursor?
Yes. The remote MCP URL is https://api.everyinfra.com/mcp. Add Authorization: Bearer and your API key as a request header; there is no local program to install. Setup for Claude, Cursor, ChatGPT and Claude Code is on https://everyinfra.com/en/mcp-server/bilibili. An agent can search Bilibili content, read comments and look up accounts on its own.
What compliance points apply when using Bilibili data?
The EveryInfra Terms of Service require you to make sure your use of the data complies with applicable law and the platform's terms. They prohibit unlawful use, violating privacy or intellectual property, and bulk scraping for harassment, fraud or other malicious purposes. If you use personal information such as nicknames and avatars, keep only the fields your business needs.
What Bilibili data can I get?
Available Bilibili capabilities (19): Search, Profiles, Posts by user, Video details, Comments, On-screen video comments, Subtitles, Popular, Account search, General search, Comment replies, Video parts, Followers, Link recognition, Media download links, User dynamics, Game reviews, Game score summary, Replies to a game review. The parameters and response fields of each capability are in the API reference on this page.
Use cases
Find topics and benchmark videos
Search videos by keyword, read the mixed videos, users and series in the general search, and see what the Popular page pushes now.
Take one video apart
Read the engagement counts and stream addresses of a video, list its parts, and take the speech transcript.
See what viewers say
Read the top-level comments, open the replies under one comment, and read the on-screen comments by time point.
Screen and monitor uploaders
Search accounts by nickname, read the profile and follower count, and list the videos an uploader published.
Tidy up video links
Convert av numbers and short links to BV IDs and standard links, then read the video details.
Bilibili Open Platform vs EveryInfra
How the Bilibili Open Platform documentation and EveryInfra compare on authorization, whose data is read and whether the calls read or manage:
| Compared | Bilibili Open Platform | EveryInfra |
|---|---|---|
| Who authorizes data access | The home page describes the data access category as covering user data and video item data after the user has authorized it. | One EveryInfra API key in the Authorization: Bearer header, and user_id or the video url in the request. The user does not authorize anything on Bilibili. |
| Permission to read user data | The "Get user data" page lists the scope USER_DATA, and says the scope needs a permission application and the authorization of the user. | followers reads the follower count and the following count for the user_id in the request. You apply for no scope. |
| Video items: read or manage | The home page describes the video management category as covering publishing, deleting and querying video items. | The endpoints here only read: videos, comments, on-screen comments, transcripts and account profiles. They do not publish, delete or change any video item. |
The official documentation is in Chinese, so the rows above give the meaning of the original text and are translations, not quotes. They come from the home page of the Bilibili Open Platform documentation and from its "Get user data" page, checked on 2026-11-25. Neither page shows an update date. Official sources: Bilibili Open Platform documentation · Get user data
What does each Bilibili action accept?
Parameter table for all 19 actions
Sync delivery for every action.
| Action | Required | Optional | Limit | Per 1,000 | Response fields |
|---|---|---|---|---|---|
searchSearch Search Bilibili for videos on a topic, with duration, views, likes, coins, favorites, danmaku and comment counts, uploader and publish time. Note that | keyword | page_token, since, sort, until | Each call returns one page of up to 20 rows. For the next page, pass next_page_token back as page_token with the other parameters unchanged; each page is one call. | $0.56 per 1,000 requests | next_page_token · id · url · title · text · duration_seconds · duration_sec · duration_text · view_count · like_count · comment_count · danmaku_count · favorite_count · coin_count · share_count · thumbnail_url · posted_at · category · author_name · author_id · author_url · platform · tags |
profileProfiles Look up a Bilibili uploader by numeric ID. Get name, bio, level, follower and video counts, verification title and premium membership. Pass only the integer from the space.bilibili.com link in | user_id | — | — | $0.56 per 1,000 requests | user_id · name · url · bio · avatar_url · gender · level · follower_count · following_count · video_count · like_count · is_verified · verified_title · is_vip · vip_label · birthday · school · platform · recent_videos |
user_postsPosts by user List the videos an uploader has posted on Bilibili, each with link, title, duration, views and engagement counts. Pass the numeric ID in | user_id | — | Catalog values: defaultLimit=20, maxLimit=50. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $0.56 per 1,000 requestsEvery 20 rows count as one call | id · url · title · text · duration_seconds · duration_sec · duration_text · view_count · like_count · comment_count · danmaku_count · favorite_count · coin_count · share_count · thumbnail_url · posted_at · category · author_name · author_id · author_url · platform · tags |
videoVideo details Fetch one Bilibili video by its BV link for description, duration, publish date, uploader, category, tags and view, like, coin, favorite and share counts. Comments and danmaku come from the separate | url | — | — | $0.56 per 1,000 requests | id · url · title · text · duration_seconds · duration_sec · duration_text · view_count · like_count · comment_count · danmaku_count · favorite_count · coin_count · share_count · thumbnail_url · posted_at · category · author_name · author_id · author_url · platform · tags · video_streams · audio_streams · streams_expire_at · streams_referer |
commentsComments Read viewer comments under a Bilibili video. Each comment has text, likes, reply count, commenter name and profile link, and post time. Replies are counted, but the full conversation tree is not rebuilt. | url | page_token | Each call returns one page of up to 10 rows. For the next page, pass next_page_token back as page_token with the other parameters unchanged; each page is one call. | $0.56 per 1,000 requests | id · text · like_count · reply_count · author_name · author_id · author_url · posted_at · video_id · platform |
danmakuOn-screen video comments Pull the on-screen bullet comments (danmaku) from a Bilibili video, each with text, playback time, display mode, color and send time. On multi-part videos the rows come from the first part, and they are separate from the comments below the video. | url | — | Catalog values: defaultLimit=50, maxLimit=200. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $0.56 per 1,000 requestsEvery 50 rows count as one call | id · text · video_id · video_time · video_time_seconds · mode · color · pool · sent_at · platform |
subtitlesSubtitles Get the subtitle text of a Bilibili video. You get timed segments, a language code, the title, uploader and length in seconds. It covers what is said in the video, not viewer comments. The | url | — | — | $0.79 per 1,000 requests | video_id · title · author_name · duration_seconds · duration_sec · language · text · platform · segments |
popularPopular Browse the videos on Bilibili's Popular page, 20 per page, each with BV and av IDs, views, likes, danmaku, coins, favorites, shares, comments, duration, category, uploader and upload IP region. | page_token | Each call returns one page of up to 20 rows; for the next page, pass the response's top-level next_page_token as page_token. limit is accepted and has no effect. | $0.81 per 1,000 requests | id · aid · url · title · text · duration_seconds · duration_sec · view_count · like_count · comment_count · danmaku_count · favorite_count · coin_count · share_count · thumbnail_url · posted_at · category · author_name · author_id · author_url · author_avatar_url · recommend_reason · ip_location · platform | |
user_searchAccount search Find Bilibili accounts by nickname or keyword, 20 per page. Each account has UID, name, bio, avatar, level, follower and video counts, verification, live status and the BV IDs of a few recent videos. Pass | keyword | page_token | Each call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | $0.56 per 1,000 requests | user_id · name · url · bio · avatar_url · level · follower_count · video_count · is_verified · verified_type · verified_title · is_live · live_room_id · is_senior_member · recent_video_ids · platform |
general_searchGeneral search Search Bilibili the way its All tab does: videos, accounts, anime series, films and live rooms mixed in one list, each row tagged with | keyword | page_token | Each call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | $0.79 per 1,000 requests | type · id · url · title · text · duration_seconds · duration_sec · duration_text · view_count · like_count · comment_count · danmaku_count · favorite_count · coin_count · share_count · thumbnail_url · posted_at · category · author_name · author_id · author_url · platform · tags · user_id · name · bio · avatar_url · level · follower_count · video_count · is_verified · verified_type · verified_title · is_live · live_room_id · is_senior_member · recent_video_ids · episode_count · rating · rating_scale |
comment_repliesComment replies Read the replies under one top-level comment on a Bilibili video, oldest first, 20 per page. Each reply has text, likes, time, the replier and their level, and which reply it answers when it replies to a reply. Pass | url, comment_id | page_token | Each call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | $0.56 per 1,000 requests | id · url · text · like_count · reply_count · posted_at · root_comment_id · reply_to_comment_id · video_id · author_id · author_name · author_url · author_avatar_url · author_level · is_by_uploader · ip_location · image_urls · mentions · platform |
video_partsVideo parts List every part (P) of a Bilibili video in one call: | url | limit | — | $0.56 per 1,000 requests | cid · part_number · title · duration_seconds · duration_sec · width · height · video_id · platform |
followersFollowers Get the follower count and following count of one Bilibili account by its numeric UID. | user_id | — | — | $0.56 per 1,000 requests | user_id · url · follower_count · following_count · platform |
resolve_linksLink recognition Turn a BV ID, av number, video link or b23.tv short link into the video's BV ID, av number and standard link. Only the IDs are converted; it does not check that the video still exists. | url | — | — | $0.56 per 1,000 requests | id · aid · url · platform |
media_linksMedia download links Get the video and audio stream addresses of one part (P) of a Bilibili video, from its link or BV ID and the part's | url, cid | — | — | $0.79 per 1,000 requests | id · video_id · url · aid · cid · quality_id · quality · available_qualities · duration_seconds · duration_sec · video_streams · audio_streams · mp4_segments · streams_expire_at · streams_referer · platform |
user_dynamicsUser dynamics Read the dynamics a Bilibili user has posted (videos, image posts, text, reposts and more), newest first, about 12 per page and paged with | user_id | page_token | Each call returns one page of up to 12 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | $0.79 per 1,000 requests | id · type · media_type · dynamic_type · url · title · text · video_text · author_username · author_name · author_url · author_avatar_url · video_id · thumbnail_url · topic_name · ip_location · posted_at · author_id · like_count · comment_count · repost_count · image_count · author_is_verified · is_pinned · is_repost · is_truncated · is_paid · is_available · aid · article_id · live_room_id · image_urls · hashtags · mentions · duration_seconds · duration_sec · reposted_post · platform |
game_reviewsGame reviews Read player reviews of a game in Bilibili's game center, from its game ID or detail page link, usually 10 per page. Each review has text, a | game_id | page_token, sort | Each call returns one page of up to 10 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | $0.79 per 1,000 requests | id · url · text · rating · rating_scale · is_rating_only · posted_at · like_count · dislike_count · reply_count · author_id · author_name · author_url · author_avatar_url · author_level · device_name · game_id · game_review_count · platform |
game_scoreGame score summary Get the score summary of a game in Bilibili's game center, from its game ID or detail page link: the | game_id | — | — | $0.79 per 1,000 requests | id · game_id · url · game_name · rating · rating_scale · review_count · valid_review_count · rating_star_counts · platform |
game_comment_repliesReplies to a game review Read the replies under one player review of a Bilibili game, oldest first, up to 10 per page. Pass the review's | game_id, comment_id | comment_page, page_token, sort | Each call returns one page of up to 10 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | $0.79 per 1,000 requests | id · text · posted_at · like_count · is_official · author_id · author_name · author_url · author_avatar_url · author_level · comment_id · game_id · review_reply_count · platform |
What each action's parameters mean (19 actions)
Each answer below pairs one callable action with its real inputs. Parameter meanings and allowed values are action-specific; a familiar name does not carry the same meaning across every platform.
Official sources are linked only to clarify the platform term beside them. They do not imply platform authorization or endorsement, and features of the official site are not part of the EveryInfra API unless this page lists them.
What do the Bilibili search parameters mean?
Search Bilibili for videos on a topic, with duration, views, likes, coins, favorites, danmaku and comment counts, uploader and publish time. Note that most_liked sorts by favorites rather than likes, and counts are a snapshot, not a history.
keywordRequired- Specifies video search terms for Bilibili based on titles or topics, rather than an exact uploader nickname search. Use user_id to query uploader profiles or user submissions.
page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, withsince,until,sortand the other parameters unchanged. Each page holds at most 20 videos and counts as one call. A token is valid for 24 hours; the last page has nonext_page_token. sinceOptional- Start of the publish-date filter,
YYYY-MM-DDin Beijing time (UTC+8), inclusive. Leave it out for no date filter. You can passsincealone,untilalone, or both. Withsinceoruntil,sortmust berelevance,newest,most_viewedormost_liked. sortOptional- Specifies the video sort order: relevance, newest for latest, most_viewed for view count, most_commented for comment relevance, and most_liked for favorites rather than likes. It applies to video search only and does not set the order of comments.Allowed values:
most_commentedmost_likedmost_viewednewestrelevance untilOptional- End of the publish-date filter,
YYYY-MM-DDin Beijing time (UTC+8), covering that whole day. It cannot be earlier thansince. With onlysince, results run up to now.
What do the Bilibili profile parameters mean?
Look up a Bilibili uploader by numeric ID. Get name, bio, level, follower and video counts, verification title and premium membership. Pass only the integer from the space.bilibili.com link in user_id. Their videos come from user_posts.
user_idRequired- Specifies a Bilibili uploader's numeric mid, extracted from https://space.bilibili.com/<mid>. Provide only the raw integer in user_id, without nicknames, BV IDs, or full space URLs.
What do the Bilibili user_posts parameters mean?
List the videos an uploader has posted on Bilibili, each with link, title, duration, views and engagement counts. Pass the numeric ID in user_id. One batch does not always cover the creator's full archive.
user_idRequired- Specifies a Bilibili uploader's numeric mid, extracted from https://space.bilibili.com/<mid>. Provide only the raw integer in user_id, without nicknames, BV IDs, or full space URLs.
What do the Bilibili video parameters mean?
Fetch one Bilibili video by its BV link for description, duration, publish date, uploader, category, tags and view, like, coin, favorite and share counts. Comments and danmaku come from the separate comments and danmaku actions.
urlRequired- Specifies a full Bilibili video URL, formatted as https://www.bilibili.com/video/<BVID>. The url parameter fetches video comments on comments, first-part timed comments on danmaku, and audio transcription on subtitles, treating each as distinct text sources. The danmaku action must be able to extract a valid BV ID from the provided path.Bilibili: Official Announcement on Upgrading AV Numbers to BV Identifiers — Bilibili's 2020 announcement defines BV identifiers as video submission IDs containing numbers and case-sensitive letters, distinguishing them from pure numeric AV numbers. This reference only explains video identifier types; this API accepts links per the format above and does not guarantee parsing for all legacy links or multi-part video segments. · Checked
What do the Bilibili comments parameters mean?
Read viewer comments under a Bilibili video. Each comment has text, likes, reply count, commenter name and profile link, and post time. Replies are counted, but the full conversation tree is not rebuilt.
Full API reference: parameters, code samples, response example and healthurlRequired- Specifies a full Bilibili video URL, formatted as https://www.bilibili.com/video/<BVID>. The url parameter fetches video comments on comments, first-part timed comments on danmaku, and audio transcription on subtitles, treating each as distinct text sources. The danmaku action must be able to extract a valid BV ID from the provided path.Bilibili: Official Announcement on Upgrading AV Numbers to BV Identifiers — Bilibili's 2020 announcement defines BV identifiers as video submission IDs containing numbers and case-sensitive letters, distinguishing them from pure numeric AV numbers. This reference only explains video identifier types; this API accepts links per the format above and does not guarantee parsing for all legacy links or multi-part video segments. · Checked
page_tokenOptional- Page token. To paginate, pass an empty string (
page_token="") for the first page, then pass back the previous response'snext_page_tokenexactly as received, with the other parameters unchanged. Each page is one whole Bilibili page of up to 20 comments;limitdoes not apply. Each page counts as one call. Tokens last 24 hours, and the last page has nonext_page_token. A request withoutpage_tokenworks as before, returning at most 10 comments; it sometimes includes anext_page_tokenthat can be followed the same way. To paginate, start frompage_token="".
What do the Bilibili danmaku parameters mean?
Pull the on-screen bullet comments (danmaku) from a Bilibili video, each with text, playback time, display mode, color and send time. On multi-part videos the rows come from the first part, and they are separate from the comments below the video.
Full API reference: parameters, code samples, response example and healthurlRequired- Specifies a full Bilibili video URL, formatted as https://www.bilibili.com/video/<BVID>. The url parameter fetches video comments on comments, first-part timed comments on danmaku, and audio transcription on subtitles, treating each as distinct text sources. The danmaku action must be able to extract a valid BV ID from the provided path.Bilibili: Official Announcement on Upgrading AV Numbers to BV Identifiers — Bilibili's 2020 announcement defines BV identifiers as video submission IDs containing numbers and case-sensitive letters, distinguishing them from pure numeric AV numbers. This reference only explains video identifier types; this API accepts links per the format above and does not guarantee parsing for all legacy links or multi-part video segments. · Checked
What do the Bilibili subtitles parameters mean?
Get the subtitle text of a Bilibili video. You get timed segments, a language code, the title, uploader and length in seconds. It covers what is said in the video, not viewer comments. The language label can be wrong.
urlRequired- Specifies a full Bilibili video URL, formatted as https://www.bilibili.com/video/<BVID>. The url parameter fetches video comments on comments, first-part timed comments on danmaku, and audio transcription on subtitles, treating each as distinct text sources. The danmaku action must be able to extract a valid BV ID from the provided path.Bilibili: Official Announcement on Upgrading AV Numbers to BV Identifiers — Bilibili's 2020 announcement defines BV identifiers as video submission IDs containing numbers and case-sensitive letters, distinguishing them from pure numeric AV numbers. This reference only explains video identifier types; this API accepts links per the format above and does not guarantee parsing for all legacy links or multi-part video segments. · Checked
What do the Bilibili popular parameters mean?
Browse the videos on Bilibili's Popular page, 20 per page, each with BV and av IDs, views, likes, danmaku, coins, favorites, shares, comments, duration, category, uploader and upload IP region. recommend_reason carries the tag Bilibili puts on a video, such as one for passing a million views, in Chinese as shown. Pass next_page_token back as page_token for the next page; the list changes through the day.
page_tokenOptional- Page token for
popular: pass back the previous response'snext_page_tokenexactly as received to get the next 20 videos; leave it out to start at the first page. Tokens last 24 hours and each page is one call.
What do the Bilibili user_search parameters mean?
Find Bilibili accounts by nickname or keyword, 20 per page. Each account has UID, name, bio, avatar, level, follower and video counts, verification, live status and the BV IDs of a few recent videos. Pass next_page_token back as page_token for more.
keywordRequired- Nickname or keyword to find Bilibili accounts. The returned
user_idworks inprofile,user_postsandfollowers. page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged. Up to 20 accounts per page; each page is one call andlimithas no effect. Tokens last 24 hours, and the last page has nonext_page_token.
What do the Bilibili general_search parameters mean?
Search Bilibili the way its All tab does: videos, accounts, anime series, films and live rooms mixed in one list, each row tagged with type. The first page holds about 20 videos plus related accounts, anime series and films; later pages are videos only. Pass next_page_token back as page_token for more.
keywordRequired- Search term. Results are mixed like Bilibili's All tab; each row's
typeisvideo,user,bangumi,movieorlive. Usesearchfor videos only anduser_searchfor accounts only. page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged. The first page holds about 20 videos plus related accounts, anime series and films; later pages hold videos only, up to 20. Each page is one call andlimithas no effect. Tokens last 24 hours, and the last page has nonext_page_token.
What do the Bilibili comment_replies parameters mean?
Read the replies under one top-level comment on a Bilibili video, oldest first, 20 per page. Each reply has text, likes, time, the replier and their level, and which reply it answers when it replies to a reply. Pass next_page_token back as page_token for more.
urlRequired- The video the comment is on: a Bilibili video link such as
https://www.bilibili.com/video/<BV ID>, or the BV ID itself. Anything else returns 422 and is not charged. comment_idRequired- The top-level comment's numeric ID, taken from the
idof acommentsrow. A value that is not all digits returns 422 and is not charged. page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged. Replies run oldest first, up to 20 per page; each page is one call andlimithas no effect. Tokens last 24 hours, and the last page has nonext_page_token.
What do the Bilibili video_parts parameters mean?
List every part (P) of a Bilibili video in one call: cid, part number, part title, duration and frame size. A single-part video returns one row.
urlRequired- A Bilibili video link such as
https://www.bilibili.com/video/<BV ID>, or the BV ID itself. All parts come back in one call, one row per part, so there is no paging and nolimit. A value without a recognizable BV ID returns 422 and is not charged. limitOptional- Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without
limit, whatever the value.
What do the Bilibili followers parameters mean?
Get the follower count and following count of one Bilibili account by its numeric UID.
Full API reference: parameters, code samples, response example and healthuser_idRequired- The account's numeric mid, the number in
https://space.bilibili.com/<mid>. Nicknames are not accepted; find the account withuser_searchfirst and pass itsuser_id. Returns only the follower and following counts; useprofilefor name, bio, level and the rest.
What do the Bilibili resolve_links parameters mean?
Turn a BV ID, av number, video link or b23.tv short link into the video's BV ID, av number and standard link. Only the IDs are converted; it does not check that the video still exists.
Full API reference: parameters, code samples, response example and healthurlRequired- The video to convert, in any of four forms: BV ID, av number (
av170001or just the digits), video link, or b23.tv short link. Anything else returns 422 and is not charged.
What do the Bilibili media_links parameters mean?
Get the video and audio stream addresses of one part (P) of a Bilibili video, from its link or BV ID and the part's cid. Up to 480P without logging in. The addresses expire at streams_expire_at; send streams_referer as the Referer when you fetch them.
urlRequired- The video the part belongs to: a Bilibili video link such as
https://www.bilibili.com/video/<BV ID>, or the BV ID itself. Anything else returns 422 and is not charged. cidRequired- The numeric ID of the part, taken from the
cidof avideo_partsrow. A video with a single part still needs its onecid. A value that is not all digits returns 422 and is not charged.
What do the Bilibili user_dynamics parameters mean?
Read the dynamics a Bilibili user has posted (videos, image posts, text, reposts and more), newest first, about 12 per page and paged with page_token. A repost carries the original post in reposted_post.
user_idRequired- The account's numeric mid, the number in
https://space.bilibili.com/<mid>. Nicknames are not accepted: find theuser_idwithuser_searchfirst. page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged. About 12 rows per page, set by the platform; each page is one call andlimithas no effect. Tokens last 24 hours, and the last page has nonext_page_token.
What do the Bilibili game_reviews parameters mean?
Read player reviews of a game in Bilibili's game center, from its game ID or detail page link, usually 10 per page. Each review has text, a rating out of 10, likes and dislikes, time and the reviewer. sort is default, helpful or latest; keep it the same while paging with page_token.
game_idRequired- The numeric ID of a game in Bilibili's game center, or the link to its detail page,
https://www.biligame.com/detail/?id=<game ID>. A value without a recognizable game ID returns 422 and is not charged. page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged. Usually 10 rows per page, set by the platform; each page is one call andlimithas no effect. Tokens last 24 hours, and the last page has nonext_page_token. sortOptional- Review order:
default,helpfulorlatest;defaultwhen left out. Keep it the same on every page.
What do the Bilibili game_score parameters mean?
Get the score summary of a game in Bilibili's game center, from its game ID or detail page link: the rating out of 10, the total and valid review counts, and how many reviews gave each star.
game_idRequired- The numeric ID of a game in Bilibili's game center, or the link to its detail page,
https://www.biligame.com/detail/?id=<game ID>. A value without a recognizable game ID returns 422 and is not charged; a game that does not exist or has no review section returns an empty result and is not charged.
What do the Bilibili game_comment_replies parameters mean?
Read the replies under one player review of a Bilibili game, oldest first, up to 10 per page. Pass the review's id from game_reviews as comment_id, with the sort and page you found it on. Each reply has text, time, likes, the replier and their level.
game_idRequired- The game the review belongs to: its numeric ID or the link to its detail page, the same
game_idyou passed togame_reviews. A value without a recognizable game ID returns 422 and is not charged. comment_idRequired- The review's ID, the
idof agame_reviewsrow, such asCM2125778583694741504. Any other form returns 422 and is not charged. comment_pageOptional- For
game_comment_replies: the page number of thegame_reviewscall where you found the review, an integer from 1 to 100000; 1 if left out. The review is looked up on that page and the pages next to it. When it has moved to another page, the result is empty withempty_reasonreview_movedand is not charged: callgame_reviewsagain and pass the page it is on now. page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, with the other parameters unchanged. Up to 10 replies per page; each page is one call andlimithas no effect. A reply posted or deleted while you page can make a row repeat, so drop duplicates byid. Tokens last 24 hours, and the last page has nonext_page_token. sortOptional- The
sortof thegame_reviewscall where you found the review:default,helpfulorlatest;defaultwhen left out. With a different sort the review is not found.
How to use the Bilibili API
- 01Choose a platform action from the public catalog.
- 02Send the platform, action, and required parameters to POST /api/v1/social.
- 03Read the result from the response. For an asynchronous action, poll the returned job ID.
- 04Store the response fields that your application needs.
curl -X POST https://api.everyinfra.com/api/v1/social \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"platform":"bilibili","action":"search","params":{"keyword":"<keyword>"}}'
Bilibili guides
Worked examples and methods built on these actions. Check the current actions, parameters and fields on this page first; an article's examples and limits do not replace the live catalog.
Creator due diligence with real data: why follower counts are not audience proof
Six TikTok creators with 3M to 18M followers: median views were 0.13% to 11.4% of followers. How to vet in layers, check disclosure and cost it.
Read the articleMultiplatform Reputation Monitoring Blueprint: Define Scope Before Evaluating Negative Shifts
Design a traceable reputation monitoring workflow starting with target lists, comment identities, and incremental cursors; use offline samples to demonstrate deduplication and ingestion gaps while preserving manual review.
Read the articleUnified Data API Getting Started: From Capability Catalog to First Available Result
Access multi-platform data using platform, action, and params: read the capability catalog, complete minimal requests, handle asynchronous tasks, partial results, and billing, and establish traceable data records.
Read the articleBilibili API questions
What can I retrieve with the Bilibili API?
Set platform to bilibili. The current catalog lists search, profiles, posts by user, video details, comments, and more. These action names identify different Bilibili objects or views; they are not interchangeable search modes.
Which input starts the Bilibili search request?
Specifies video search terms for Bilibili based on titles or topics, rather than an exact uploader nickname search. Use user_id to query uploader profiles or user submissions. Send it as keyword inside params.
Which fields can Bilibili search return?
Its declared schema includes next_page_token, title, text, and duration_seconds. A declared field can still be absent from an individual record, and every other action has its own field list.
Does every Bilibili action return immediately?
Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add "mode": "async" to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.