# Bilibili Scraper: Videos, Comments and Creators

> Bilibili scraper: get video stats, up to 2,000 comments per video and creator profiles. Views, likes, coins and danmaku count. No login needed.

URL: https://cliqtomedia.com/actors/bilibili-scraper/

Category: Social media & communities · Status: live on Apify Store · Apify page: https://apify.com/cliqtomedia/bilibili-scraper?fpr=cliqto

Get public Bilibili data in clean rows. Search videos, read video stats, collect comments or check creators. No Bilibili account is needed.

## How to use it: 3 steps

1. **Make a free Apify account.** Apify is the cloud platform where our tools run. The free plan gives you $5 of usage every month, no credit card needed. You pay Apify, not us.
2. **Paste your input and press Start.** No code needed: you fill in a form (the input). It already has a working example. For example: `AI` in Search keywords. Each start is one run.
3. **Download the results.** When the run ends, the results are in a table (the dataset). Open Output, press Export and pick Excel or CSV. JSON and the API are there too.

## What it does

Scrape public Bilibili data with no login. Search videos by keyword, get full stats for video links, collect up to 2,000 root comments per video, or read creator profiles and their latest videos. Each item is one clean row with views, likes, coins, favorites, danmaku, tags and more. A typical run with 20 rows takes about 5 seconds and costs $0.062 on the Free plan.



### Data you get

- Videos: BV ID, av ID, title, URL, description, cover image, duration, publish time, author name and ID, views, likes, coins, favorites, shares, danmaku count, comment count, tags and category.
- Comments: comment ID, text, likes, reply count, user name, user ID, user level, created time, pinned flag and the video it belongs to.
- Creators: user ID, name, profile URL, public bio, level, followers, following, video count, total likes, official title and avatar URL.
- Status: one free row that lists inputs that were not found, invalid, duplicate or failed, with a reason for each.

## Price

Pay per event. Apify bills you, not us.

| What you pay for | Price | When |
|---|---|---|
| Start fee | $0.006 | Charged once per run. This tool uses 1 GB of memory or less by default; more memory costs more. |
| Data row | $0.0028 (from $0.0024 on paid Apify plans) | Charged for each saved video, comment or creator row. The status row is free. |

- One row: about $0.0088.
- 1,000 rows: about $2.81.
- Every day 100 rows, for 30 days: about $8.58 a month.

Free to try: the Apify free plan gives you $5 of usage every month, no credit card needed.

Prices checked on 24 October 2026. Current price: https://apify.com/cliqtomedia/bilibili-scraper?fpr=cliqto

## Questions

### Can I get replies to comments?

No. You get root comments and the danmaku count only.

### Why do I get fewer search results than I asked for?

Bilibili had fewer results, or it reached its limit of 1,000 results.

### Do I need to add my cookies?

No. The tool uses public guest access. Please do not add cookies.

### Do I need a Bilibili account or cookies?

No. The Actor uses public guest access. Do not add your cookies.

### Are BV and av IDs both supported?

Yes. `BV1xx411c7mD`, `av2` and the full link point to the same video, and the Actor saves and charges it once.

### Why did a search return fewer rows than `maxItems`?

Bilibili had fewer results for that keyword, or it reached its limit of 1,000 results.

### Is the data the same as on the website?

Yes, it comes from the same public data. Counters change quickly, so values can differ a little minutes later.

## Input settings

- `mode` (string, required): search: videos for keywords. video: details for video links. comments: root comments of videos. user: creator profiles and their latest videos.
- `keywords` (array): Used in search mode. Up to 20 keywords, Chinese or English. Bilibili serves at most 1,000 results per keyword.
- `videoUrls` (array): Used in video and comments modes. Up to 50 entries in video mode and 25 in comments mode: https://www.bilibili.com/video/BV…, BV1xx411c7mD, av170001 or 170001. Short b23.tv links are not supported.
- `userIds` (array): Used in user mode. Up to 50 numeric user IDs (mid) or https://space.bilibili.com/<mid> links.
- `maxItems` (integer): Search: videos per keyword (up to 1,000). Comments: comments per video (up to 2,000). User: videos per creator, plus one profile row (up to 1,000). Not used in video mode.
- `searchOrder` (string): Search mode only.
- `commentSort` (string): Comments mode only. Hot puts the most liked first (pinned comments are included); newest lists by time.
- `includeFullStats` (boolean): Search and user modes: opens each video page to add coins and shares (search) or likes, coins, favorites, shares, danmaku and comment counts (user lists carry only views). One extra request per video, so runs are slower. Tags come with search results and video mode. Video mode always has full stats.
- `includeUserVideos` (boolean): User mode: also list the creator's latest public videos (up to Max items).
- `proxyConfiguration` (object): Apify Proxy datacenter IPs work for Bilibili. Change only if you see blocks.

## Step by step on Apify

1. Open Input.
2. Keep What to scrape as `search`, Search keywords as `AI` and Max items as `20`.
3. Click Start.
4. Open the Videos tab of the Output to see the rows. Open Run summary to check each input.

## Use cases

| Task | Input | Key fields | Next step |
|---|---|---|---|
| Track a topic on Bilibili | `search`, several `keywords`, `pubdate` | `title`, `views`, `publishedAt`, `tags` | Compare topics by views and dates. |
| Compare video performance | `video` with a list of links | `views`, `likes`, `coins`, `favorites`, `danmaku` | Rank videos by engagement. |
| Study audience opinion | `comments`, `hot`, `maxItems: 1000` | `text`, `likes`, `createdAt` | Run sentiment or keyword analysis. |
| Research creators | `user` with creator IDs | `followers`, `videoCount`, `totalLikes`, videos | Build a creator shortlist. |

## Tips

- Pick one mode per run: search, videos, comments or creators.
- BV and av IDs both work; duplicates are counted once.
- Send comment text to a translation or sentiment tool.

## Limits



- Field names are this Actor's own (`views`, `likes`, `danmaku`…). They are not a drop-in copy of other Bilibili scrapers' output.
- Bilibili search serves at most 1,000 results per keyword. Some keywords return fewer; the run summary warns about it.
- A creator's public video list can be shorter than `videoCount`, because Bilibili hides some videos.
- Comments mode collects root comments only. Replies are counted in `replyCount` but not collected. Danmaku text is not collected.
- Bilibili sometimes refuses requests from cloud IPs (HTTP 412). Creator video lists are refused more often than other pages. The Actor retries on a new proxy session up to 6 times within about one minute and keeps going after a single refused input. Two refused inputs in a row stop the run as a partial `SOURCE_ERROR` with all saved rows kept.
- The Actor waits 0.5 s between requests to stay polite. Large creator lists and comment runs take longer than search.
- Counters change all the time. Keep `fetchedAt` with your data.
- Short `b23.tv` links are not resolved. Open them in a browser and copy the full video link.

## Sample result

```json
{
  "type": "video",
  "bvid": "BV1Lzpr6TELC",
  "aid": 117437089450751,
  "url": "https://www.bilibili.com/video/BV1Lzpr6TELC",
  "title": "AI自制打针情景短片《母女打针》第二天",
  "description": "视频已做合理化删减",
  "thumbnailUrl": "https://i1.hdslb.com/bfs/archive/07188a8bef3c3146aaa5b3ea2b37186058221df4.jpg",
  "durationSec": 321,
  "publishedAt": "2026-10-14T03:23:59.000Z",
  "authorMid": 113904740,
  "authorName": "西瓜智造BOB",
  "views": 2975,
  "likes": 81,
  "coins": null,
  "favorites": 153,
  "shares": null,
  "danmaku": 4,
  "comments": 27,
  "tags": ["影视剪辑", "娱乐观察局", "AI", "剧情向", "电视剧", "国产", "情景", "医生", "母女", "短片"],
  "category": "小剧场",
  "source": "search",
  "fullStats": false,
  "input": "AI",
  "searchKeyword": "AI",
  "searchRank": 1,
  "fetchedAt": "2026-10-14T13:03:47.027Z"
}
```

## Use it from code

Actor ID: `cliqtomedia/bilibili-scraper`

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("cliqtomedia/bilibili-scraper").call(run_input={
    "mode": "search",
    "keywords": [
        "AI"
    ]
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

```bash
curl -X POST "https://api.apify.com/v2/acts/cliqtomedia~bilibili-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode": "search", "keywords": ["AI"]}'
```

```python
# pip install langchain-apify
# set APIFY_TOKEN in your environment
from langchain_apify import ApifyActorsTool

tool = ApifyActorsTool("cliqtomedia/bilibili-scraper")
result = tool.invoke({"run_input": {"mode": "search", "keywords": ["AI"]}})
print(result)
```

run-sync waits up to 300 seconds; for longer runs start a run and use a webhook. LlamaIndex and MCP: https://cliqtomedia.com/actors/ai-agents/

## Use cases with this tool

- [Hear what people say about you](https://cliqtomedia.com/actors/use-cases/social-listening/): Find what people say about your brand and your topic on Bluesky, Hacker News, YouTube and more.

## Similar tools

- [YouTube Comments Scraper](https://cliqtomedia.com/actors/youtube-comments-scraper/)
- [YouTube Subtitles & Transcript Scraper API](https://cliqtomedia.com/actors/youtube-transcript-scraper/)
- [Bluesky Scraper — Posts, Profiles, Feeds & Threads, No Login](https://cliqtomedia.com/actors/bluesky-scraper/)
- [Substack Newsletter Scraper](https://cliqtomedia.com/actors/substack-newsletter-scraper/)
- [Hacker News Stories & Comments Scraper](https://cliqtomedia.com/actors/hacker-news-stories-comments-scraper/)
- [Medium Article Scraper: Tags, Authors & Publications](https://cliqtomedia.com/actors/medium-articles-scraper/)
