Bilibili Comment Sentiment
Pricing
Pay per event
Bilibili Comment Sentiment
Scrape Bilibili videos and comments, then run AI-powered sentiment analysis. Get sentiment scores, topics, and audience insights for Chinese market research.
Pricing
Pay per event
Rating
0.0
(0)
Developer
James Huang
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
0
Monthly active users
5 days ago
Last modified
Categories
Share
🧠 Bilibili Sentiment Analysis | B站评论分析 & Chinese Social Media Sentiment
Scrape Bilibili videos and comments, then run AI-powered bilibili sentiment analysis on the data. Get sentiment scores, topic extraction, emotion detection, and chinese audience insights from B站评论分析. The ultimate tool for china market research sentiment and chinese social media sentiment analysis on China's largest video platform — with both rule-based and GPT-4o-mini LLM modes.
Features
- Bilibili Comments Analysis — Extract and analyze comments from videos matching your keywords
- AI-Powered Sentiment — Optional LLM-based analysis using OpenAI GPT-4o-mini for deep insights
- Rule-Based Fallback — Built-in Chinese sentiment lexicon with 70+ positive/negative words and negation detection
- Sentiment Scoring — Per-comment sentiment classification (positive/negative/neutral) with scores
- Aggregate Analysis — Per-video sentiment breakdown with percentages, overall sentiment, and sentiment score
- Top Keywords — Most frequently used positive and negative words across all comments
- Topic Extraction — When using LLM mode, extract discussion topics from each comment
- Spam Detection — LLM mode includes spam classification
- Multi-Keyword — Analyze multiple search keywords in a single run
- No Browser Needed — Direct API access, fast and efficient
Use Cases
- Brand Monitoring — Track sentiment around your brand on B站 (Bilibili)
- China Market Research — Understand chinese social media sentiment for product launches
- Audience Analysis — Get chinese audience insights from real user comments
- Content Evaluation — Measure audience reception of videos and campaigns
- Competitor Analysis — Compare sentiment around competing brands or products
- Trend Detection — Identify emerging positive/negative sentiment shifts
- Academic Research — Study Chinese online discourse and social media patterns
- Bilibili AI Analysis — Leverage AI to process thousands of Chinese comments automatically
- Crisis Monitoring — Detect negative sentiment spikes around your brand in real-time
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
searchKeywords | array | Yes | ["华为"] | Keywords to search on Bilibili |
maxVideos | int | No | 10 | Max videos to analyze per keyword (1-100) |
maxCommentsPerVideo | int | No | 50 | Max comments to extract per video (1-500) |
analysisType | select | No | full | sentiment (basic) or full (sentiment + topics + emotion + spam) |
openaiApiKey | string | No | "" | OpenAI API key for LLM analysis. If empty, uses rule-based analysis |
proxyConfiguration | object | No | Apify proxy | Proxy config (residential recommended outside China) |
Output Fields
Video Object with Sentiment
| Field | Type | Description |
|---|---|---|
bvid | string | Bilibili video ID |
aid | int | Bilibili video ID (AV format) |
title | string | Video title |
author | string | Creator name |
viewCount | int | Total views |
likeCount | int | Total likes |
replyCount | int | Total comments |
publishDate | string | ISO date string |
tags | array | Video tags |
searchKeyword | string | Keyword that matched this video |
sentimentSummary | object | Aggregate sentiment analysis (see below) |
comments | array | Analyzed comments (see below) |
scrapedAt | string | ISO timestamp |
Sentiment Summary Object
| Field | Type | Description |
|---|---|---|
sentimentBreakdown.positive | int | Count of positive comments |
sentimentBreakdown.negative | int | Count of negative comments |
sentimentBreakdown.neutral | int | Count of neutral comments |
sentimentBreakdown.positivePct | int | Positive percentage |
sentimentBreakdown.negativePct | int | Negative percentage |
sentimentBreakdown.neutralPct | int | Neutral percentage |
overallSentiment | string | Overall: positive, negative, or neutral |
sentimentScore | float | Score from -1.0 to 1.0 |
topPositiveWords | array | Top positive words with frequency |
topNegativeWords | array | Top negative words with frequency |
totalCommentsAnalyzed | int | Number of comments analyzed |
Comment Object with Analysis
| Field | Type | Description |
|---|---|---|
content | string | Comment text (Chinese) |
author | string | Commenter name |
likes | int | Comment likes |
timestamp | string | ISO date string |
sentimentAnalysis.sentiment | string | positive / negative / neutral |
sentimentAnalysis.score | float/int | Sentiment score |
sentimentAnalysis.positiveWords | array | Positive words found (rule-based) |
sentimentAnalysis.negativeWords | array | Negative words found (rule-based) |
sentimentAnalysis.topics | array | Discussion topics (LLM mode only) |
sentimentAnalysis.emotion | string | Detected emotion (LLM mode only) |
sentimentAnalysis.is_spam | bool | Spam classification (LLM mode only) |
Analysis Modes
Rule-Based (No API Key)
- Fast, free, no external dependencies
- Chinese sentiment lexicon with 70+ words
- Negation detection (不/没/别/无/非 prefixes)
- Positive/negative/neutral classification
- Word frequency aggregation
LLM-Powered (With OpenAI API Key)
- GPT-4o-mini for deep Chinese language understanding
- Topic extraction from each comment
- Emotion detection (joy, anger, surprise, etc.)
- Spam/ad detection
- More accurate sentiment scoring (-1.0 to 1.0)
- Better handling of sarcasm and context
How It Works
- Input keywords — Provide brand or topic keywords to search on Bilibili (e.g., "华为", "iPhone")
- Video scraping — The actor searches Bilibili and fetches matching videos with metadata
- Comment extraction — Comments are scraped from each video via Bilibili's reply API
- Sentiment analysis — Each comment is classified as positive/negative/neutral using rule-based or LLM analysis
- Aggregation — Per-video sentiment summaries with percentages, top keywords, and overall scores
- Structured JSON output — Results saved to Apify dataset, ready for dashboards and reports
Pricing
This Actor uses pay-per-event pricing:
| Event | Cost |
|---|---|
| Actor start (1GB RAM) | $0.01 |
| Video analyzed | $0.02 |
| Comment sentiment analyzed | $0.005 |
Example: 3 keywords × 10 videos × 50 comments = $0.01 + (30 × $0.02) + (1500 × $0.005) = $8.16
Technical Details
This bilibili sentiment analysis tool combines scraping and AI analysis:
- Search:
api.bilibili.com/x/web-interface/search/type - Comments:
api.bilibili.com/x/v2/reply/main - Sentiment: Rule-based Chinese lexicon or OpenAI GPT-4o-mini API
No headless browser needed. Cookie-based access handled automatically. Residential proxies recommended outside China.
Runtime & SDK
- Runtime: Node.js 20
- SDK: Apify SDK v3 + Crawlee v3
- AI: OpenAI GPT-4o-mini (optional, for LLM mode)
Why Use This vs Alternatives?
| Feature | This Actor | Chinese Brand Monitor | Bilibili Scraper (comments only) |
|---|---|---|---|
| Sentiment scoring | ✅ | ✅ (basic) | ❌ |
| Rule-based + LLM modes | ✅ | ❌ | ❌ |
| Per-comment analysis | ✅ | ❌ | ❌ |
| Emotion detection | ✅ | ❌ | ❌ |
| Topic extraction | ✅ | ❌ | ❌ |
| Spam detection | ✅ | ❌ | ❌ |
| Top keyword extraction | ✅ | ❌ | ❌ |
| Multi-keyword support | ✅ | ✅ | ❌ |
| Aggregate summaries | ✅ | ✅ | ❌ |
| Free rule-based mode | ✅ | ❌ | N/A |
FAQ
Keywords
bilibili sentiment analysis · b站评论分析 · chinese social media sentiment · bilibili comment analysis · chinese audience insights · china market research sentiment · bilibili ai analysis · bilibili nlp · chinese sentiment analysis · bilibili brand monitoring · b站情感分析 · bilibili opinion mining · chinese comment sentiment · bilibili emotion detection · bilibili topic extraction · chinese language sentiment · bilibili comment scraper · china social listening · bilibili sentiment api · chinese nlp sentiment · b站舆情 · bilibili sentiment score · bilibili comment mining · chinese text sentiment analysis