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"}

Real sample calls for one video across several endpoints, captured September 26, 2026 – November 21, 2026 (UTC). Each box links to its endpoint page.

Platform availability

24h health
96%
Healthy

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

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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_score$0.79 per 1,000 calls

  • 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

  • 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

Bilibili API pricing

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.

    Usessearchgeneral_searchpopular

  • Take one video apart

    Read the engagement counts and stream addresses of a video, list its parts, and take the speech transcript.

    Usesvideovideo_partssubtitles

  • See what viewers say

    Read the top-level comments, open the replies under one comment, and read the on-screen comments by time point.

    Usescommentscomment_repliesdanmaku

  • Screen and monitor uploaders

    Search accounts by nickname, read the profile and follower count, and list the videos an uploader published.

    Usesuser_searchprofilefollowersuser_posts

  • Tidy up video links

    Convert av numbers and short links to BV IDs and standard links, then read the video details.

    Usesresolve_linksvideo

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:

ComparedBilibili Open PlatformEveryInfra
Who authorizes data accessThe 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 dataThe "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 manageThe 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.

ActionRequiredOptionalLimitPer 1,000Response fields
search

Search

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.

keywordpage_token, since, sort, untilEach 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 requestsnext_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
profile

Profiles

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_id——$0.56 per 1,000 requestsuser_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_posts

Posts 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. One batch does not always cover the creator's full archive.

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 callid · 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

Video 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 comments and danmaku actions.

url——$0.56 per 1,000 requestsid · 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
comments

Comments

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.

urlpage_tokenEach 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 requestsid · text · like_count · reply_count · author_name · author_id · author_url · posted_at · video_id · platform
danmaku

On-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 callid · text · video_id · video_time · video_time_seconds · mode · color · pool · sent_at · platform
subtitles

Subtitles

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.

url——$0.79 per 1,000 requestsvideo_id · title · author_name · duration_seconds · duration_sec · language · text · platform · segments
popular

Popular

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_tokenEach 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 requestsid · 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_search

Account 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 next_page_token back as page_token for more.

keywordpage_tokenEach 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 requestsuser_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_search

General 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 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.

keywordpage_tokenEach 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 requeststype · 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_replies

Comment 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 next_page_token back as page_token for more.

url, comment_idpage_tokenEach 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 requestsid · 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_parts

Video parts

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.

urllimit—$0.56 per 1,000 requestscid · part_number · title · duration_seconds · duration_sec · width · height · video_id · platform
followers

Followers

Get the follower count and following count of one Bilibili account by its numeric UID.

user_id——$0.56 per 1,000 requestsuser_id · url · follower_count · following_count · platform
resolve_links

Link 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 requestsid · aid · url · platform
media_links

Media 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 cid. Up to 480P without logging in. The addresses expire at streams_expire_at; send streams_referer as the Referer when you fetch them.

url, cid——$0.79 per 1,000 requestsid · 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_dynamics

User 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 page_token. A repost carries the original post in reposted_post.

user_idpage_tokenEach 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 requestsid · 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_reviews

Game 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 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_idpage_token, sortEach 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 requestsid · 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_score

Game score summary

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_id——$0.79 per 1,000 requestsid · game_id · url · game_name · rating · rating_scale · review_count · valid_review_count · rating_star_counts · platform
game_comment_replies

Replies 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 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_id, comment_idcomment_page, page_token, sortEach 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 requestsid · 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.

Full API reference: parameters, code samples, response example and health
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_token exactly as received, with since, until, sort and 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 no next_page_token.
sinceOptional
Start of the publish-date filter, YYYY-MM-DD in Beijing time (UTC+8), inclusive. Leave it out for no date filter. You can pass since alone, until alone, or both. With since or until, sort must be relevance, newest, most_viewed or most_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-DD in Beijing time (UTC+8), covering that whole day. It cannot be earlier than since. With only since, 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.

Full API reference: parameters, code samples, response example and health
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.

Full API reference: parameters, code samples, response example and health
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.

Full API reference: parameters, code samples, response example and health
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 health
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
page_tokenOptional
Page token. To paginate, pass an empty string (page_token="") for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Each page is one whole Bilibili page of up to 20 comments; limit does not apply. Each page counts as one call. Tokens last 24 hours, and the last page has no next_page_token. A request without page_token works as before, returning at most 10 comments; it sometimes includes a next_page_token that can be followed the same way. To paginate, start from page_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 health
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 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.

Full API reference: parameters, code samples, response example and health
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.

Full API reference: parameters, code samples, response example and health

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.

Full API reference: parameters, code samples, response example and health
keywordRequired
Nickname or keyword to find Bilibili accounts. The returned user_id works in profile, user_posts and followers.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Up to 20 accounts per page; each page is one call and limit has no effect. Tokens last 24 hours, and the last page has no next_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.

Full API reference: parameters, code samples, response example and health
keywordRequired
Search term. Results are mixed like Bilibili's All tab; each row's type is video, user, bangumi, movie or live. Use search for videos only and user_search for accounts only.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly 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 and limit has no effect. Tokens last 24 hours, and the last page has no next_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.

Full API reference: parameters, code samples, response example and health
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 id of a comments row. 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_token exactly as received, with the other parameters unchanged. Replies run oldest first, up to 20 per page; each page is one call and limit has no effect. Tokens last 24 hours, and the last page has no next_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.

Full API reference: parameters, code samples, response example and health
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 no limit. 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 health
user_idRequired
The account's numeric mid, the number in https://space.bilibili.com/<mid>. Nicknames are not accepted; find the account with user_search first and pass its user_id. Returns only the follower and following counts; use profile for 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 health

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.

Full API reference: parameters, code samples, response example and health

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.

Full API reference: parameters, code samples, response example and health
user_idRequired
The account's numeric mid, the number in https://space.bilibili.com/<mid>. Nicknames are not accepted: find the user_id with user_search first.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. About 12 rows per page, set by the platform; each page is one call and limit has no effect. Tokens last 24 hours, and the last page has no next_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.

Full API reference: parameters, code samples, response example and health
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_token exactly as received, with the other parameters unchanged. Usually 10 rows per page, set by the platform; each page is one call and limit has no effect. Tokens last 24 hours, and the last page has no next_page_token.
sortOptional
Review order: default, helpful or latest; default when 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.

Full API reference: parameters, code samples, response example and health
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.

Full API reference: parameters, code samples, response example and health
game_idRequired
The game the review belongs to: its numeric ID or the link to its detail page, the same game_id you passed to game_reviews. A value without a recognizable game ID returns 422 and is not charged.
comment_idRequired
The review's ID, the id of a game_reviews row, such as CM2125778583694741504. Any other form returns 422 and is not charged.
comment_pageOptional
For game_comment_replies: the page number of the game_reviews call 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 with empty_reason review_moved and is not charged: call game_reviews again 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_token exactly as received, with the other parameters unchanged. Up to 10 replies per page; each page is one call and limit has no effect. A reply posted or deleted while you page can make a row repeat, so drop duplicates by id. Tokens last 24 hours, and the last page has no next_page_token.
sortOptional
The sort of the game_reviews call where you found the review: default, helpful or latest; default when left out. With a different sort the review is not found.

How to use the Bilibili API

  1. 01Choose a platform action from the public catalog.
  2. 02Send the platform, action, and required parameters to POST /api/v1/social.
  3. 03Read the result from the response. For an asynchronous action, poll the returned job ID.
  4. 04Store the response fields that your application needs.
bilibili_search.sh
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.

Blog

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 article
Build

Multiplatform 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 article
Build

Unified 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 article

Bilibili 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.

Google Analytics needs consent. Privacy