Datapika / Social & reviews

Bilibili Scraper

Videos, comments, danmaku and subtitles. Video rows with title, uploader, duration, publish time and views; danmaku rows with the second each line appears; comment threads with replies; subtitle tracks as text.

1 lifetime users47 total runs5.00/5 · 1 review

Apify store response · 2026-10-30. Usage counts do not measure output accuracy.

01 / Recorded output

See what comes back.

· Build 1.0.16 · 3 rows reviewed. Previewing 3 below.

Swipe the table to inspect more fields →

Selected fields from a recorded bilibili-scraper run
titleauthor_nameplay_countduration_seccreated_at
ATM10sky通关纪念Azulsolitan364102026-09-28T03:51:10+00:00
新手:太刀侠怎么打黄金吗喽?老手:↑ ↓ ↑ → ← → ← →Azulsolitan3431112024-07-30T05:16:14+00:00
恐怖萌宝强如怪物,xdx与其鏖战数个小时,将其斩于马下,望周知Azulsolitan2442142024-06-22T09:54:28+00:00

Selected public fields from one recorded run. Text may be shortened to 20 words and non-HTTPS links are omitted. Missing values are preserved; this sample does not establish complete source coverage. Downloads contain all reviewed rows and selected fields. CSV text cells are escaped for spreadsheet safety.

Inspect the first JSON record
{
  "title": "ATM10sky通关纪念",
  "author_name": "Azulsolitan",
  "play_count": 36,
  "duration_sec": 410,
  "created_at": "2026-09-28T03:51:10+00:00",
  "url": "https://www.bilibili.com/video/BV1RMaq65EAH",
  "item_type": "video"
}

02 / Run your own query

From a console, code or agent.

Use Apify's input form, or start a run with your own API token. The small starter input below was checked against build 1.0.16's published input schema on October 28, 2026. Recorded samples can use different inputs or older builds.

curl -X POST \
  "https://api.apify.com/v2/acts/openclawai~bilibili-scraper/runs?maxTotalChargeUsd=1" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"user_posts","urls":["https://space.bilibili.com/178360345"],"maxItems":10}'

This starts an asynchronous paid run with a $1 total run cap. Use the returned defaultDatasetId to retrieve results after the run succeeds. Never put your API token in public frontend code.

Full input schema ↗·API setup and dataset export

03 / Field reference

Plan your data model.

Selected documented fields from build 1.0.16, reviewed October 28, 2026. Availability varies by mode and source. Missing and null values stay visible in the recorded samples.

Selected documented output fields
FieldTypeMeaning
item_typestringRow type: video, user, comment, danmaku, subtitle, hot_search, live, hint or error.
item_idstring | nullBV id for videos; comment or danmaku ID otherwise.
urlstring | nullLink to the video or space.
titlestring | nullVideo title.
author_namestring | nullUploader name, or the commenter on comment rows.
duration_secnumber | nullVideo length in seconds.
created_atstring | nullPublish or send time in ISO 8601.
play_countnumber | nullViews on video rows.
cover_urlstring | nullCover image URL.
comment_textstring | nullComment or danmaku text.
like_countnumber | nullLikes on comment rows.
comment_countnumber | nullReply count on comment rows.
rawobject | nullFull original record; danmaku rows carry time_sec, the second the line appears.
Download the dated input and field references ↓

04 / Know before you run

Coverage, without the guesswork.

Not an official Bilibili API. Only uploader-added subtitles are available, and media URLs expire after a few hours.

What is danmaku and can I export it?

Danmaku are the bullet comments that scroll across a Bilibili video. The danmaku mode returns each line's text, ID and send time, with the second it appears in the video in raw.time_sec, so comments can be lined up with the timeline. A video's full danmaku track usually comes back in seconds.

Can it get Bilibili subtitles?

Yes, when the uploader added them: the subtitles mode returns the full track as text. Bilibili's AI captions need a login and are not included; a video without uploader subtitles returns a free hint row and no charge.

Do I need a Bilibili account?

No. It reads public Bilibili data without an account, cookies or proxy settings. Private or deleted videos return a free hint row that says why.

How is the Bilibili scraper priced?

Pay per event: one charge per video, comment or danmaku line, list entry, single lookup or subtitle track, shown on the live price line above. Hint and error rows are free. On the free Apify plan you get 1 run per day with up to 5 results; comment replies need a paid plan.