Bilibili Comments Scraper avatar

Bilibili Comments Scraper

Pricing

from $2.00 / 1,000 results

Go to Apify Store
Bilibili Comments Scraper

Bilibili Comments Scraper

Scrape comments from any Bilibili (哔哩哔哩) video — no login or code needed. Extract comment text, author, likes, reply counts, timestamps, IP region, and reply threads. Export to JSON, CSV, or Excel, or pull results via API.

Pricing

from $2.00 / 1,000 results

Rating

0.0

(0)

Developer

Harish Garg

Harish Garg

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Share

Scrape comments from any Bilibili (哔哩哔哩) video. Paste one or more video URLs and get a clean, structured dataset with one row per comment — comment text, author, like count, and reply count. No login and no coding required.

Runs on the Apify platform, so you get API access, scheduling, integrations (Make, Zapier, Google Sheets, and more), automatic proxy rotation, and run monitoring out of the box.

What does Bilibili Comments Scraper do?

Bilibili Comments Scraper extracts the public comments from Bilibili videos and turns them into structured data you can analyze or export. Give it a list of Bilibili video URLs (full links, b23.tv share links, or bare BV / av IDs) and for each video it will:

  • collect comments, sorted by hottest or newest first;
  • optionally pull the reply threads under each comment;
  • return every comment as a flat, ready-to-analyze record with author, likes, and timestamp.

No Bilibili account or login is needed — only the comments any visitor can see on the website are collected. Export the results to JSON, CSV, Excel, or HTML, or pull them straight from the Apify API.

Why use Bilibili Comments Scraper?

  • Audience & sentiment research — analyze what viewers say about a video, product, or campaign.
  • Creator (UP主) vetting — inspect real engagement and audience reactions on a channel's videos.
  • Trend and market monitoring — track how audiences react to trending videos and topics over time.
  • Brand & competitor analysis — mine comments on competitors' popular videos.
  • Datasets for NLP — build Chinese-language comment corpora for research or model training.

How to scrape Bilibili comments

  1. Open the actor and go to the Input tab.
  2. Paste one or more Bilibili video URLs into Video URLs (e.g. https://www.bilibili.com/video/BV1xx411c7mD). Share links like https://b23.tv/xxxx and bare IDs like av170001 or BV1xx411c7mD work too.
  3. (Optional) Set Max comments per video, choose Sort by (hottest or newest), and toggle Include replies.
  4. Click Start. When the run finishes, open the Output tab and download the data as JSON, CSV, Excel, or HTML.

Input

FieldTypeDescription
startUrlsarrayRequired. One or more Bilibili video URLs, share links, or bare BV/av IDs.
maxCommentsPerVideointegerMax comments to collect per video, including replies (default 100).
sortBystringhot (hottest first, default) or time (newest first).
includeRepliesbooleanAlso scrape the reply threads under each comment (default false).
proxyConfigurationobjectProxy settings. Off by default — works fine without a proxy for most runs.

Example input:

{
"startUrls": [
{ "url": "https://www.bilibili.com/video/BV1xx411c7mD" }
],
"maxCommentsPerVideo": 200,
"sortBy": "hot",
"includeReplies": false
}

Output

Each dataset item is a single comment. Top-level comments have isReply: false; when Include replies is on, replies appear as extra rows with isReply: true and a parentCommentId pointing at the comment they answer. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

{
"videoUrl": "https://www.bilibili.com/video/BV1xx411c7mD",
"bvid": "BV1xx411c7mD",
"oid": 2,
"commentId": 495059,
"parentCommentId": null,
"isReply": false,
"isPinned": false,
"text": "前方高能!",
"createTime": "2010-12-09T18:10:39Z",
"likeCount": 52991,
"replyCount": 1457,
"authorName": "碧诗",
"authorMid": 2,
"authorAvatar": "https://i2.hdslb.com/bfs/face/....jpg",
"authorLevel": 6,
"authorSex": "男"
}

Data fields

FieldDescription
videoUrlCanonical URL of the source video.
bvidBilibili's BV video ID.
oidBilibili's numeric video ID for the source video.
commentIdUnique ID of the comment.
parentCommentIdFor replies, the ID of the comment being replied to; null for top-level comments.
isReplytrue if the row is a reply within a thread.
isPinnedtrue if the comment is pinned by the creator.
textThe comment text.
createTimeWhen the comment was posted (ISO 8601, UTC).
timestampRaw Unix timestamp of the comment.
likeCountNumber of likes on the comment.
replyCountNumber of replies the comment received.
authorNameCommenter's display name.
authorMidCommenter's numeric Bilibili user ID.
authorAvatarURL of the commenter's avatar.
authorLevelCommenter's Bilibili account level (0–6).
authorSexGender shown on the commenter's profile, if any.

How much does it cost to scrape Bilibili comments?

Cost scales with how many comments you collect: the more comments per video (and whether you include replies), the more work per run. To keep costs down, lower maxCommentsPerVideo and leave Include replies off unless you need thread data. Check the Runs tab after a small test run to gauge consumption for your workload before scaling up.

Tips

  • Start small. Run one video with a low maxCommentsPerVideo first to confirm the output looks right, then scale up.
  • Pick the right sort. Use hot for the most influential comments, time when you want the freshest reactions.
  • Proxy is optional. Leave it off for speed and lower cost; enable Apify Proxy only if you scrape at very high volume and start seeing blocks.

FAQ, disclaimers, and support

Do I need a Bilibili account or login? No. Only publicly visible comments are collected.

Can it scrape all comments on a video? It collects comments up to your maxCommentsPerVideo limit. Very large threads may also be limited by how many comments Bilibili makes publicly available.

Does it work with av and b23.tv links? Yes. Full bilibili.com links, b23.tv short links, and bare BV / av IDs are all accepted.

Is scraping Bilibili legal? This actor only accesses publicly visible data. You are responsible for complying with Bilibili's Terms of Service and applicable laws (including privacy regulations such as GDPR) in how you collect and use the data. Do not scrape or store personal data without a lawful basis.

Something not working? Use the Issues tab on the actor page to report bugs or request features.