Bilibili Comment Sentiment avatar

Bilibili Comment Sentiment

Pricing

Pay per event

Go to Apify Store
Bilibili Comment Sentiment

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

James Huang

Maintained by Community

Actor 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

Apify Actor AI Sentiment Node.js 20 Pay Per Event

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

ParameterTypeRequiredDefaultDescription
searchKeywordsarrayYes["华为"]Keywords to search on Bilibili
maxVideosintNo10Max videos to analyze per keyword (1-100)
maxCommentsPerVideointNo50Max comments to extract per video (1-500)
analysisTypeselectNofullsentiment (basic) or full (sentiment + topics + emotion + spam)
openaiApiKeystringNo""OpenAI API key for LLM analysis. If empty, uses rule-based analysis
proxyConfigurationobjectNoApify proxyProxy config (residential recommended outside China)

Output Fields

Video Object with Sentiment

FieldTypeDescription
bvidstringBilibili video ID
aidintBilibili video ID (AV format)
titlestringVideo title
authorstringCreator name
viewCountintTotal views
likeCountintTotal likes
replyCountintTotal comments
publishDatestringISO date string
tagsarrayVideo tags
searchKeywordstringKeyword that matched this video
sentimentSummaryobjectAggregate sentiment analysis (see below)
commentsarrayAnalyzed comments (see below)
scrapedAtstringISO timestamp

Sentiment Summary Object

FieldTypeDescription
sentimentBreakdown.positiveintCount of positive comments
sentimentBreakdown.negativeintCount of negative comments
sentimentBreakdown.neutralintCount of neutral comments
sentimentBreakdown.positivePctintPositive percentage
sentimentBreakdown.negativePctintNegative percentage
sentimentBreakdown.neutralPctintNeutral percentage
overallSentimentstringOverall: positive, negative, or neutral
sentimentScorefloatScore from -1.0 to 1.0
topPositiveWordsarrayTop positive words with frequency
topNegativeWordsarrayTop negative words with frequency
totalCommentsAnalyzedintNumber of comments analyzed

Comment Object with Analysis

FieldTypeDescription
contentstringComment text (Chinese)
authorstringCommenter name
likesintComment likes
timestampstringISO date string
sentimentAnalysis.sentimentstringpositive / negative / neutral
sentimentAnalysis.scorefloat/intSentiment score
sentimentAnalysis.positiveWordsarrayPositive words found (rule-based)
sentimentAnalysis.negativeWordsarrayNegative words found (rule-based)
sentimentAnalysis.topicsarrayDiscussion topics (LLM mode only)
sentimentAnalysis.emotionstringDetected emotion (LLM mode only)
sentimentAnalysis.is_spamboolSpam 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

  1. Input keywords — Provide brand or topic keywords to search on Bilibili (e.g., "华为", "iPhone")
  2. Video scraping — The actor searches Bilibili and fetches matching videos with metadata
  3. Comment extraction — Comments are scraped from each video via Bilibili's reply API
  4. Sentiment analysis — Each comment is classified as positive/negative/neutral using rule-based or LLM analysis
  5. Aggregation — Per-video sentiment summaries with percentages, top keywords, and overall scores
  6. Structured JSON output — Results saved to Apify dataset, ready for dashboards and reports

Pricing

This Actor uses pay-per-event pricing:

EventCost
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?

FeatureThis ActorChinese Brand MonitorBilibili 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 modeN/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