Home / How-to guides / Bilibili Scraper

How to scrape Bilibili videos and comments, no login

Bilibili videos, search, creators and comments as clean JSON. No login, no API key.

Open on Apify ↗Actor page

Updated 2026-11-24

The problem

Bilibili is hard to follow from outside China. The interface is in Chinese, search results are not easy to export, and there is no obvious public API for researchers or marketers.

Steps

  1. Open the Actor on Apify. Create a free Apify account if you do not have one. Every account gets free monthly credit, enough to try this on real data. Bilibili Scraper ↗
  2. Fill in the input. The input is a small JSON. These are the first fields and example values:
input.json
{
  "searchQueries": [
    "python",
    "人工智能"
  ],
  "searchOrder": "click",
  "videoUrls": [
    "BV1wD4y1o7AS"
  ]
}
  1. Run it. Press Start in the console, or call it from the API, a schedule, n8n, Make or Zapier. See the run guide for code you can copy. Run guide (API, n8n, Make, MCP)
  2. Take the results. Open the Output tab to preview the dataset and download it as JSON, CSV or Excel. Through the API you read the same dataset items.

A tip for this Actor

Search queries work in Chinese and in English. Comments only come back if you turn on includeComments, and they add to the bill, so switch it on only when you need them.

Input fields

FieldTypeDescription
searchQueriesarrayKeywords to search for videos, in Chinese or English.
searchOrderstringSort: totalrank (best match), click (most viewed), pubdate (newest), dm (most danmaku), stow (most favorited).
videoUrlsarraySpecific videos as BV IDs or links.
userUrlsarrayCreator IDs or space.bilibili.com links. Returns the profile and latest videos.
trendingstringnone, popular (popular now) or ranking (site-wide top 100).
maxItemsintegerMax videos per keyword, creator or list (default 20, up to 1,000).
includeCommentsbooleanAlso return comments of every video found.
maxCommentsPerVideointegerComments per video (default 20, up to about 1,000).
commentSortstringhot (most popular) or time (newest).

Real output sample

First item of 12 from a real run, shortened for display. The full sample is a download on the Actor page.

bilibili-scraper.json
{
  "type": "video",
  "bvid": "BV1rpWjevEip",
  "aid": 113006243481679,
  "url": "https://www.bilibili.com/video/BV1rpWjevEip",
  "title": "【全748集】目前B站最全最细的Python零基础全套教程,2026最新版,包含所有干货!七天就能从小白到大神!少走99%的弯路!存下吧!很难找全的!",
  "description": "【视频配套籽料、开发环境搭建安装包教程、电子书+问题解答请看 ”置顶平论” 自取哦】\r\n本套教程从零开始讲解,手把手教学,包含基础语法、进阶语法、爬虫、自动化办公、数据分析\r\n无论是新手小白,还是有一定编码经验的选…",
  "cover": "https://i2.hdslb.com/bfs/archive/a979056b1a32012cdd00d48fbc3732d253e30620.jpg",
  "publishedAt": "2024-08-22T14:59:18.000Z",
  "durationSeconds": 143894,
  "category": "计算机技术",
  "views": 21981459,
  "likes": 607506,
  "coins": null,
  "favorites": 929725,
  "shares": null,
  "comments": 374079,
  "danmaku": 137455,
  "tags": [
    "程序员",
    "Python教程",
    "Python入门零基础"
  ]
}

What it costs

Pay per event: video is charged $0.00 each. Apify platform usage is billed separately and is usually a few cents per run.

ResultsResult events
100$0.26
1,000$2.60
10,000$26
100,000$260

Limits you should know

  • About 1,000 search results per keyword and about 1,000 comments per video: what Bilibili shows to anonymous visitors.
  • Titles, descriptions and comments come in the original language, mostly Chinese. They are not translated.
  • At very high volume Bilibili may trigger its risk control.

Questions

Do I need a Bilibili account?

No. The Actor reads public data only and never logs in.

Is the text translated?

No. Titles, descriptions and comments come in the original language, mostly Chinese. Translate them with your preferred tool or LLM.

How many results can I get?

About 1,000 search results per keyword and about 1,000 comments per video, which is what Bilibili shows to anonymous visitors.

What do comments and profiles cost?

Comments are $0.0013 each, videos and creator profiles $0.0026. Items that cannot be found are not charged.

Does it work with n8n, Make and AI agents?

Yes. Use the Apify node in n8n or Make, or call it through the Apify MCP server.

Rate it on Apify

Used it? A rating or review on Apify helps other people judge it, and tells us what to fix.

Rate it on Apify ↗

More guides