Bilibili Video Search Scraper
Pricing
from $0.02 / 1,000 item extracteds
Bilibili Video Search Scraper
Scrape public Bilibili video search results, BVIDs, creator details, stats, tags, thumbnails, and metadata for research workflows.
Pricing
from $0.02 / 1,000 item extracteds
Rating
0.0
(0)
Developer
Hanna Nosova
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Share
Scrape public Bilibili video search results and video metadata by keyword, BVID, or video URL.
Use this actor to monitor topics, creators, brands, products, media launches, and content trends on Bilibili without building your own data collection workflow.
What does Bilibili Video Search Scraper do?
Bilibili Video Search Scraper turns Bilibili search pages and video identifiers into structured dataset rows.
It can collect videos from keyword searches, direct BVID identifiers, and Bilibili video URLs.
For each video, it returns useful catalog and performance fields such as title, URL, creator, publication date, thumbnail, duration, category, views, likes, favorites, danmaku counts, shares, tags, and timestamps.
Who is it for?
- 🎯 Market researchers tracking China video trends.
- 📣 Brand teams monitoring mentions and campaigns.
- 🧠 Social intelligence teams following topics and creators.
- 🎬 Media analysts comparing video performance.
- 🛒 E-commerce teams watching product discovery content.
- 🧪 Data teams feeding dashboards, alerts, or enrichment pipelines.
Why use this actor?
- 🔎 Search Bilibili by one or many keywords.
- 🔗 Add direct BVIDs or video URLs when you already know target videos.
- 📊 Export normalized video statistics into JSON, CSV, Excel, XML, or HTML.
- 🧩 Connect results to Apify integrations, webhooks, APIs, and MCP workflows.
- ⚙️ Control sort order, page limits, maximum videos, and metadata enrichment.
What data can you extract?
| Field | Description |
|---|---|
keyword | Keyword that produced the video result |
rank | Rank within that keyword search |
title | Video title |
bvid | Bilibili video identifier |
aid | Numeric archive ID when available |
url | Canonical Bilibili video URL |
author | Creator display name |
mid | Creator member ID |
description | Video description |
publishedAt | Publication time in ISO format |
thumbnailUrl | Video thumbnail URL |
category | Video category |
durationSeconds | Duration in seconds |
viewCount | View count |
danmakuCount | Danmaku comment count |
likeCount | Like count |
coinCount | Coin count |
favoriteCount | Favorite count |
shareCount | Share count |
replyCount | Reply count |
tags | Public video tags |
scrapedAt | Collection timestamp |
How much does it cost to scrape Bilibili video search results?
This actor uses pay-per-event pricing.
You pay a small start fee per run and a per-video fee for each saved dataset item.
The default input is intentionally small so a first test run stays inexpensive.
For larger monitoring jobs, increase maxItems gradually and review the run cost in Apify Console.
How to use Bilibili Video Search Scraper
- Open the actor on Apify.
- Add one or more Bilibili search keywords.
- Optionally add BVIDs or Bilibili video URLs.
- Choose a maximum number of videos.
- Select a sort order if relevance is not enough.
- Run the actor.
- Export the dataset or connect it to your workflow.
Input example
{"keywords": ["python", "openai"],"bvids": ["BV1rpWjevEip"],"maxItems": 50,"sort": "totalrank","maxPagesPerKeyword": 3,"includeDetails": true,"requestDelayMillis": 700}
Input fields
keywords
Search terms to collect Bilibili videos for.
Examples:
pythonopenai游戏product launch- a brand name
bvids
Direct Bilibili video identifiers or URLs.
Examples:
BV1rpWjevEiphttps://www.bilibili.com/video/BV1rpWjevEip
maxItems
Total maximum number of videos to save across all keyword and direct inputs.
sort
Controls Bilibili search ordering.
Supported values:
totalrank— relevanceclick— most viewedpubdate— newestdm— most danmaku commentsstow— most favorites
maxPagesPerKeyword
Safety cap for pagination per keyword.
Each search page usually contains up to 20 videos.
includeDetails
When enabled, the actor enriches videos with detailed public metadata such as normalized stats, tags, pages, and richer descriptions.
requestDelayMillis
Delay between requests.
Use a higher value for large keyword batches if you want a more conservative run.
Output example
{"keyword": "python","rank": 1,"page": 1,"sort": "totalrank","sourceType": "search","title": "Python tutorial video","bvid": "BV1rpWjevEip","aid": 113006243481679,"url": "https://www.bilibili.com/video/BV1rpWjevEip","author": "Creator name","mid": 3546597933714079,"description": "Video description","publishedAt": "2024-08-22T14:59:18.000Z","thumbnailUrl": "https://i2.hdslb.com/example.jpg","category": "Technology","durationSeconds": 120,"viewCount": 100000,"danmakuCount": 500,"likeCount": 1000,"coinCount": 200,"favoriteCount": 300,"shareCount": 50,"replyCount": 80,"tags": ["Python", "教程"],"scrapedAt": "2026-06-28T08:00:00.000Z"}
Tips for better results
- Use Chinese and English keywords when researching international topics.
- Start with
totalrankfor discovery. - Use
pubdatefor freshness monitoring. - Use direct BVIDs when you need known videos only.
- Keep
includeDetailsenabled when you need tags or full stats. - Lower
maxItemsfor test runs. - Increase
requestDelayMillisfor large jobs.
Common use cases
- 📈 Track video popularity around a campaign.
- 🏷️ Monitor brand mentions on Bilibili.
- 🎮 Discover gaming and entertainment videos.
- 🧑🏫 Collect education content metadata.
- 🧭 Build a topic intelligence dashboard.
- 🔔 Trigger alerts when new high-performing videos appear.
Integrations
You can connect the dataset to:
- Google Sheets for manual review.
- Make or Zapier for no-code automations.
- Webhooks for event-driven alerts.
- Apify datasets API for analytics pipelines.
- BI tools that ingest CSV or JSON.
- Vector databases for content discovery workflows.
API usage
Node.js
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor('fetch_cat/bilibili-video-search-scraper').call({keywords: ['python'],maxItems: 20,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
Python
from apify_client import ApifyClientimport osclient = ApifyClient(os.environ['APIFY_TOKEN'])run = client.actor('fetch_cat/bilibili-video-search-scraper').call(run_input={'keywords': ['python'],'maxItems': 20,})items = client.dataset(run['defaultDatasetId']).list_items().itemsprint(items)
cURL
curl -X POST 'https://api.apify.com/v2/acts/fetch_cat~bilibili-video-search-scraper/runs?token=YOUR_APIFY_TOKEN' \-H 'Content-Type: application/json' \-d '{"keywords":["python"],"maxItems":20}'
MCP integration
Use this actor from Claude Desktop, Claude Code, or other MCP-compatible tools through Apify MCP Server.
MCP URL:
https://mcp.apify.com/?tools=fetch_cat/bilibili-video-search-scraper
Claude Code setup:
$claude mcp add apify-bilibili "https://mcp.apify.com/?tools=fetch_cat/bilibili-video-search-scraper"
Claude Desktop JSON configuration:
{"mcpServers": {"apify-bilibili": {"url": "https://mcp.apify.com/?tools=fetch_cat/bilibili-video-search-scraper"}}}
Example prompts:
- "Find the top Bilibili videos about Python and summarize the creators."
- "Collect the newest Bilibili videos mentioning my product name."
- "Compare view counts for these Bilibili BVIDs."
Data exports
After a run finishes, you can export results as:
- JSON
- CSV
- Excel
- XML
- HTML table
- RSS-compatible downstream transformations
Scheduling
Use Apify schedules to run the actor daily, weekly, or hourly.
Common scheduled workflows:
- Daily keyword monitoring.
- Weekly creator tracking.
- Campaign launch monitoring.
- Competitor content review.
Webhooks
Add a webhook to send results to your application after every successful run.
Typical webhook events:
- Run succeeded.
- Run failed.
- Dataset ready for processing.
Limits and reliability
Bilibili may adjust public availability, rate limits, and result ranking.
Use moderate request delays for large batches.
If a keyword returns fewer results than expected, try a broader keyword or a different sort order.
FAQ
Can I use this actor through the API?
Yes. Use the Apify API, SDKs, or MCP Server examples above to run the actor and read the default dataset.
Is this an alternative to a full Bilibili analytics platform?
It is best for extracting public video search and metadata into your own tools. It does not replace private account analytics.
Does this actor need my Bilibili login?
No. The actor is designed for public video metadata and does not ask for credentials.
Troubleshooting
Why did I get fewer videos than maxItems?
The source may have fewer available results for the selected keyword and sorting option, or the page cap may have been reached.
Increase maxPagesPerKeyword or add more keywords.
Why are some fields empty?
Some videos do not expose every statistic or category in every context.
Enable includeDetails for the richest metadata.
Why are results different from what I see in a browser?
Search rankings can vary by time, location, personalization, and Bilibili's own ranking updates.
Legality
This actor collects publicly available metadata.
You are responsible for using the output in accordance with applicable laws, platform terms, and privacy rules.
Do not use scraped data for spam, harassment, or unlawful profiling.
Related scrapers
More actors from this developer:
- https://apify.com/fetch_cat/google-scholar-profiles-scraper
- https://apify.com/fetch_cat/hacker-news-search-scraper
- https://apify.com/fetch_cat/bluesky-profile-feed-scraper
Support
If you need help, open an issue on the actor page and include:
- Run ID
- Input JSON
- Expected result
- What looked wrong
Changelog
0.1
Initial version with keyword search, direct BVID/video URL enrichment, detailed video statistics, tags, and configurable sorting.