Bilibili Video Scraper avatar

Bilibili Video Scraper

Pricing

from $2.00 / 1,000 results

Go to Apify Store
Bilibili Video Scraper

Bilibili Video Scraper

Download Bilibili (哔哩哔哩) videos and export video details — title, author, views, likes, coins, danmaku, comments — to JSON, CSV, or Excel. Just paste any Bilibili video link.

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

What does Bilibili Video Scraper do?

Bilibili Video Scraper lets you download Bilibili (哔哩哔哩) videos and export their full details in one step. Paste any Bilibili video or share link and get back a clean, structured record for each video — including a direct MP4 download link, plus the title, description, author, and complete engagement stats: views, likes, coins, favorites, shares, danmaku (bullet comments), and replies. You can also have the video files saved for you automatically.

It works with videos from bilibili.com, China's largest video-sharing platform. Run it on demand, on a schedule, or via API, and connect the results to Google Sheets, Make, Zapier, Google Drive, and hundreds of other apps.

Why use Bilibili Video Scraper?

  • Download videos as MP4 — get clean files ready to save, archive, or analyze.
  • Bulk export — process dozens or thousands of Bilibili videos in a single run.
  • Content & trend research — collect titles, descriptions, and Bilibili's unique engagement signals (views, likes, coins, favorites, danmaku) for analysis.
  • Save time — no manual copying; export everything to JSON, CSV, or Excel with a click.
  • Automate it — schedule runs and push results straight into your favorite tools.

How to use Bilibili Video Scraper

  1. Open the Actor in the Apify Console.
  2. Paste one or more Bilibili video URLs into the Bilibili video URLs field.
  3. (Optional) Turn on Download video files to save the MP4s, and choose a preferred video quality.
  4. Click Start ▶.
  5. When the run finishes, browse the results in the Output tab, or download them as JSON, CSV, or Excel. The Output tab also shows quick links to Video details and, if you enabled downloads, the Downloaded videos store — one click to the files.

Input

FieldDescription
Bilibili video URLsOne or more Bilibili video or share links to scrape.
Download video filesSave each MP4 so you can download it directly (a video link is always included either way).
Preferred video qualityChoose the best (highest quality) or smallest file for each video.
Max videosLimit how many videos to process in a run.
Proxy configurationOptional. Most runs don't need it; you can enable it if you scrape at very high volume.
  • https://www.bilibili.com/video/BV1xx411c7mD (BV ID)
  • https://www.bilibili.com/video/av170001 (legacy AV ID)
  • https://b23.tv/... (share links)
  • A bare BV... or av... ID

Example input

{
"startUrls": [
{ "url": "https://www.bilibili.com/video/BV1xx411c7mD" }
],
"downloadVideos": true,
"videoQuality": "best"
}

Output

Each video becomes one row in your dataset. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

{
"bvid": "BV1xx411c7mD",
"aid": 2,
"url": "https://www.bilibili.com/video/BV1xx411c7mD",
"title": "字幕君交流场所",
"description": "www",
"authorName": "碧诗",
"authorId": 2,
"viewCount": 5355132,
"likeCount": 271222,
"coinCount": 39421,
"favoriteCount": 125846,
"shareCount": 21765,
"danmakuCount": 127830,
"commentCount": 88545,
"durationSeconds": 2055,
"publishedAt": "2009-09-09T01:09:09Z",
"coverUrl": "https://i0.hdslb.com/bfs/archive/...png",
"videoUrl": "https://.../video.mp4",
"videoQuality": 16,
"downloadUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/video-BV1xx411c7mD.mp4"
}

downloadUrl is only present when Download video files is enabled. It links to the MP4 saved in the run's key-value store. It works directly from the Apify API/CLI or the Console; to open it in a plain browser, append ?token=<YOUR_APIFY_TOKEN>. If you just want a link that always opens without a token, use videoUrl.

Data you get for every video

FieldDescription
bvid, aidBilibili's BV and legacy AV identifiers
urlLink to the video on Bilibili
title, descriptionVideo title and description
categoryBilibili category / partition name
authorName, authorId, authorAvatarUploader (UP主) name, ID, and avatar
viewCount, likeCount, coinCount, favoriteCount, shareCountEngagement numbers
danmakuCount, commentCountBullet comments (弹幕) and replies
durationSeconds, publishedAtLength and publish date
coverUrlThumbnail image
videoUrlDirect MP4 download link
videoQualityResolution of the video you get (e.g. 720p, 480p, 360p)
downloadUrlDirect link to the saved MP4 in storage (only when Download video files is on)
pagesThe individual parts of a multi-part video
availableQualitiesAll resolutions available for the video

How much does it cost to scrape Bilibili?

Runs are fast and inexpensive — you can typically export thousands of videos for just a few cents. The main thing that affects cost is whether you turn on Download video files, since saving the actual MP4s uses more storage. If you only need the details and download links, leave it off to keep runs as cheap as possible. New Apify accounts also come with free monthly usage credits to get started.

Tips

  • Just want the links? Leave Download video files off — every result still includes a videoUrl you can open or download anytime.
  • Pick your resolution with Preferred video quality, or check availableQualities to see everything Bilibili reports for a video.
  • Scraping in bulk? Add all your URLs at once and let a single run handle them.

FAQ, disclaimers & support

Is it legal to scrape Bilibili? This Actor collects publicly available data. You are responsible for how you use it and must comply with Bilibili's Terms of Service, copyright law, and applicable privacy regulations. Don't use downloaded content in ways that infringe creators' rights.

What video quality do I get? Videos are provided as ready-to-play MP4 files in resolutions up to 720p HD. Use the Preferred video quality option to pick the best available or the smallest file for each video.

Why did a video fail? Private, deleted, members-only (大会员), or region-restricted videos may not be available and are skipped. Video details are still returned whenever a video file isn't available.

Need help or have a request? Use the Issues tab on the Actor's page to report problems or suggest features. Custom scraping solutions are available on request.