Reddit Comment Sentiment Analyzer avatar

Reddit Comment Sentiment Analyzer

Pricing

Pay per usage

Go to Apify Store
Reddit Comment Sentiment Analyzer

Reddit Comment Sentiment Analyzer

Scrape Reddit comments and analyze sentiment. Extract text, scores, authors, and positive/negative/neutral labels.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Donny Nguyen

Donny Nguyen

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 hours ago

Last modified

Categories

Share

Scrape Reddit comments and classify their sentiment as positive, negative, or neutral. Extracts comment text, scores, authors, nesting depth, and applies keyword-based sentiment analysis. Uses old.reddit.com for reliable cheerio-based HTML parsing.

Features

  • Extracts all comments from Reddit threads including nested replies
  • Classifies each comment as positive, negative, or neutral using keyword analysis
  • Provides sentiment scores showing positive and negative word counts
  • Supports comment depth limiting to focus on top-level discussions
  • Configurable sorting (top, new, controversial, etc.)
  • Automatic URL conversion from www.reddit.com to old.reddit.com
  • Includes thread metadata (title, author, score, subreddit) for context
  • Handles both HTML parsing and JSON API responses

Input Parameters

ParameterTypeDefaultDescription
urlsarrayrequiredList of Reddit thread URLs to scrape comments from
maxResultsinteger100Maximum number of comments to extract per thread (0 = unlimited)
maxDepthinteger-1Max nesting depth of replies (-1 = unlimited, 0 = top-level only)
sortBystring"confidence"Comment sort order: confidence, top, new, controversial, old, qa
includePostDatabooleantrueInclude original post title, author, and score with each comment
useResidentialProxybooleanfalseEnable residential proxies for better success rates

Output Fields

FieldTypeDescription
authorstringReddit username of the commenter
commentTextstringFull text content of the comment
scorenumberComment score (upvotes minus downvotes)
depthnumberNesting depth (0 = top-level comment)
postedDatestringISO timestamp of when the comment was posted
sentimentstringClassified sentiment: positive, negative, or neutral
positiveScorenumberCount of positive sentiment keywords found
negativeScorenumberCount of negative sentiment keywords found
commentIdstringReddit's internal comment identifier
parentIdstringParent comment/post identifier
permalinkstringDirect URL to the comment
threadTitlestringTitle of the Reddit thread (if includePostData is true)
threadAuthorstringAuthor of the thread (if includePostData is true)
threadScorenumberScore of the thread (if includePostData is true)
subredditstringSubreddit name (if includePostData is true)

Example Output

{
"author": "tech_enthusiast",
"commentText": "This is an amazing breakthrough in AI research. The results are incredibly impressive.",
"score": 245,
"depth": 0,
"postedDate": "2024-01-15T14:30:00.000Z",
"sentiment": "positive",
"positiveScore": 3,
"negativeScore": 0,
"commentId": "t1_abc123",
"parentId": "t3_xyz789",
"permalink": "https://old.reddit.com/r/technology/comments/xyz789/post_title/abc123/",
"threadTitle": "New AI Model Achieves Record Performance",
"threadAuthor": "science_reporter",
"threadScore": 1500,
"subreddit": "technology"
}

Use Cases

  • Brand Monitoring: Track sentiment around your brand or product in Reddit discussions
  • Market Research: Analyze public opinion on products, services, or industry trends
  • Community Analysis: Understand the tone and sentiment of specific subreddit communities
  • Product Feedback: Gather and classify user feedback from Reddit product discussions
  • Content Research: Identify positive and negative talking points on any topic
  • Crisis Monitoring: Detect negative sentiment spikes in real-time discussions

Sentiment Classification

The classifier uses curated keyword lists:

  • Positive: Words like "amazing", "great", "love", "helpful", "recommend", "brilliant"
  • Negative: Words like "terrible", "hate", "awful", "broken", "disappointing", "scam"
  • Neutral: Comments without strong positive or negative keywords, or with balanced sentiment

Cost Estimate

Using the default configuration (100 comments per thread):

  • Estimated compute units: ~0.03 CU per run
  • Cost per result: ~$0.00075 per comment (Mid tier)
  • Average runtime: 15-30 seconds per thread
  • Residential proxy usage increases costs by approximately 3-5x