# Reddit Comment Search (`crawlix/reddit-comment-search`) Actor

Reddit comment search extracts public comments, discussions, and replies across Reddit by keyword. Harvest comment text, author usernames, upvote scores, timestamps, and thread links with Pay-Per-Event billing, deduplication parity, custom sort filters, and clean JSON/CSV dataset exports.

- **URL**: https://apify.com/crawlix/reddit-comment-search.md
- **Developed by:** [Crawlix](https://apify.com/crawlix) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 comments

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

The **Reddit Comment Search** is a high-performance, production-grade data extraction tool engineered to search and harvest public comments and discussion replies across Reddit. Designed for natural language processing engineers, market research teams, sentiment analysts, brand intelligence consultants, and automation developers, this reddit comment search discovers nuanced discussions, customer opinions, authentic feedback, and community dialogue with structured accuracy.

By providing target keywords, the reddit comment search queries the public Reddit comment directory and extracts rich comment records. Each returned item is enriched with comment body text, direct comment permalinks, author usernames, parent post thread titles, parent post URLs, host community names, upvote scores, and publication timestamps. Whether you need to monitor niche discussions or analyze consumer conversations at scale, this reddit comment search delivers clean, structured feeds ready for analytical pipelines.

The reddit comment search operates under a verified Pay-Per-Event pricing model, ensuring you only pay for successfully saved comment records. With integrated support for custom sorting algorithms, this reddit comment search provides complete control over your conversational dataset collection.

#### Core Capabilities Matrix

- **Keyword-Driven Conversation Discovery**: Input single or multi-term queries to extract matching comments and discussion replies across all public communities with the reddit comment search.
- **Direct Comment Permalinks**: Extracts the exact canonical URL (`url`) pointing directly to each specific comment within its host thread.
- **Parent Context Extraction**: Retrieves the parent submission's headline title (`post_title`) and parent thread URL (`post_url`) alongside the comment body.
- **Flexible Sorting Filters**: Support for multiple ordering methods including Relevance, Top, and New to discover high-impact commentary.
- **Strict Deduplication Parity**: Every comment identifier is strictly deduplicated before storage, guaranteeing that your dataset contains only unique records with zero duplicate charges.
- **Zero-Null Standard**: Dynamic field inclusion strips empty attributes row by row, keeping your exported CSV, JSON, and Excel tables clean and lightweight.
- **Resilient Infrastructure**: Direct residential proxy integration guarantees high extraction uptime across international regions without interruptions.

***

### Practical Use Cases & Applications

The reddit comment search supports a wide range of commercial, academic, and analytical workflows:

#### 1. Consumer Sentiment & Opinion Mining

Uncover authentic customer sentiments regarding products, services, or industry developments. Sentiment analysis teams utilize this reddit comment search to extract genuine user feedback, recurring grievances, and unvarnished praise from organic community discussions.

#### 2. Market Research & Problem Discovery

Discover real problems and pain points expressed by active users in niche communities. Product managers rely on the reddit comment search to identify unmet consumer needs and validate product concepts before building new features.

#### 3. Brand Reputation & Crisis Monitoring

Detect early signals of emerging public relations issues. PR agencies and brand managers utilize this reddit comment search to monitor discussions mentioning brand trademarks, tracking how conversations evolve in real time.

#### 4. AI Training & Fine-Tuning Conversational Models

Acquire conversational datasets for training large language models, dialogue systems, question-answering bots, and community moderation tools. The reddit comment search delivers clean comment bodies formatted for immediate ingestion.

#### 5. Competitive Intelligence & Product Benchmarking

Analyze what consumers discuss about competitors' features, customer service quality, and pricing. By running targeted keyword queries with the reddit comment search, market analysts can benchmark competitor reception across diverse subreddits.

#### 6. Academic Research in Digital Sociology & Linguistics

Study community communication patterns, slang adoption, debate rhetoric, and discourse dynamics across social media platforms with this reddit comment search.

***

### Target Audiences & Engineering Teams

This reddit comment search is purpose-built for diverse professionals seeking automated conversational data extraction:

- **NLP & Data Science Engineers**: Feed conversational text corpora directly into sentiment models, entity extraction pipelines, and language model fine-tuning sets.
- **Market Research Analysts**: Gather qualitative insights and consumer viewpoints without spending countless hours manually reading discussion threads.
- **Brand Strategy & PR Teams**: Track mentions of key executives, products, and competitors across millions of Reddit users with the reddit comment search.
- **Academic & Social Researchers**: Collect large-scale observational datasets for sociological and computational linguistic research.
- **Automation Developers**: Seamlessly connect comment data streams into automated alert bots, business intelligence dashboards, and cloud storage systems.

***

### Key Architectural Advantages & Reliability

The reddit comment search incorporates enterprise-grade engineering principles to ensure consistent data delivery:

#### Strict Deduplication Parity

When collecting extensive search results, online communities often return repeated comments across result boundaries. The reddit comment search maintains an internal verified identifier index. Duplicate items are instantly discarded without charging events or advancing progress trackers, guaranteeing 100% parity between target counts and final dataset rows.

#### Zero-Null Data Purity Standard

Traditional scrapers often clutter output tables with hundreds of empty columns or null values. This reddit comment search implements recursive dynamic field inclusion: any attribute lacking data for a specific comment is completely omitted from that row, maximizing storage efficiency and downstream analytical speed.

#### Anti-Interruption Fallback

Network hiccups and platform adjustments are handled gracefully. In the rare event of a connection interruption, the reddit comment search safely seals all collected records in the cloud dataset and finishes with a clean exit status, preventing data loss.

#### Budget-Capped Spending Protection

Utilize Apify Max Total Charge limits with confidence. The reddit comment search checks spending limits after every single charge event, immediately pausing further operations the instant your predefined budget ceiling is reached.

***

### Quickstart: Step-by-Step Execution Guide

Getting started with the reddit comment search takes less than one minute:

1. **Set Up Search Keywords**: Enter your target terms in the `keyword` input field (e.g. `flower`, `battery life`, `movie recommendation`).
2. **Define Output Volume**: Set `max_items` to the number of unique comments you wish to collect (prefilled to 10 for free accounts).
3. **Select Sort Order**: Choose how results should be ordered—Relevance (default, free), Top, or New.
4. **Choose Origin Country**: Select your preferred Connection Country (defaults to United States for optimal responsiveness).
5. **Run the Scraper**: Click the **Start** button on the Apify Console. Watch the live progress tracker step toward your target count.
6. **Export Your Dataset**: Download your structured records in JSON, CSV, Excel, XML, or Parquet format with a single click.

***

### Input Parameters & Configuration Reference

The reddit comment search provides an intuitive configuration interface:

| Parameter Key | UI Title | Data Type | Default | Description |
|---|---|---|---|---|
| `keyword` | Search Keyword(s) | Array of Strings | `["flower"]` | Target search terms to query. Provide one or multiple keywords to discover matching comments with the reddit comment search. |
| `max_items` | Max Comments | Integer | `10` | Total number of unique comments to extract. Free tier accounts are capped at 10 items per run; paid accounts have no volume limit. |
| `sort` | Sort Order | String (Select) | `relevance` | Ordering method for comment search results. Options: `relevance`, `top`, `new`. Filters are free of charge. |
| `proxyCountry` | Connection Country | String (Select) | `US` | Origin country for network connections. Defaults to United States for optimal platform responsiveness. |

> **Note on Free Account Limits**: Free Apify tier accounts are capped at a maximum of 10 items per run. Upgrading to any paid Apify tier unlocks unlimited volume per run with this reddit comment search.

***

### Extracted Dataset Schema & Field Definitions

The reddit comment search extracts rich, normalized attributes for every discovered discussion reply. Output fields are organized into two availability tiers:

#### Fields That Most of the Time May Come in the Output

*Fields that are consistently populated across standard comment extractions:*

- `id` *(string)*: Unique platform identifier for the comment (e.g. `t1_abc123`).
- `body` *(string)*: Full text content of the extracted comment reply.
- `url` *(string)*: Direct canonical link to the specific comment within its host thread.
- `author` *(string)*: Public username of the user who submitted the comment.
- `subreddit` *(string)*: Prefixed community name where the comment was published (e.g. `r/gardening`).
- `score` *(integer)*: Net score (upvotes minus downvotes) recorded at extraction time.
- `created_at` *(string)*: Publication timestamp formatted in standard ISO 8601.
- `query` *(string)*: The specific keyword query that discovered this comment.
- `scraped_at` *(string)*: ISO timestamp recording when the record was extracted.

#### Fields Less Often Available (Present When Provided by the Listing or Broadcaster)

*Fields included when provided by the thread context or author profile:*

- `author_id` *(string)*: Internal user account identifier of the comment author.
- `subreddit_id` *(string)*: Unique identifier of the host community.
- `post_id` *(string)*: Identifier of the parent post thread (`t3_...`).
- `post_title` *(string)*: Headline title of the submission thread hosting this comment.
- `post_url` *(string)*: Direct link to the parent submission thread.

> *Note on Dynamic Field Inclusion: A field with no value is omitted from the row.*

#### Sample JSON Output Record

```json
{
  "id": "t1_m1z987x",
  "body": "I really love how this flower blooms early in the spring season. It brings so much vibrant color to the backyard garden.",
  "url": "https://www.reddit.com/r/gardening/comments/1h7a9bc/spring_flowers/m1z987x/",
  "author": "green_thumb_99",
  "author_id": "t2_abc123xyz",
  "subreddit": "r/gardening",
  "subreddit_id": "t5_2qgzy",
  "post_id": "t3_1h7a9bc",
  "post_title": "What are your favorite spring flowers to plant?",
  "post_url": "https://www.reddit.com/r/gardening/comments/1h7a9bc/spring_flowers/",
  "score": 45,
  "created_at": "2024-05-18T16:20:00.000Z",
  "query": "flower",
  "scraped_at": "2024-11-20T11:30:00.000Z"
}
```

***

### Operational Constraints & Platform Limits

When designing workflows around the reddit comment search, consider the following platform characteristics:

- **Public Content Scope**: The reddit comment search extracts publicly accessible comments. Private, restricted, or quarantined subreddits requiring special permissions are excluded.
- **Search Depth Boundaries**: Like all major online platforms, search result directories reflect a finite depth of matching comments for any single keyword and filter configuration.
- **Deleted or Removed Comments**: Comments that have been removed by moderators or deleted by authors prior to extraction will not appear in search results.
- **Free Account Quota**: Free tier accounts on Apify are subject to a strict 10-item cap per run. Paid subscription plans have no volume restrictions.
- **Filter Scope**: Comments search on Reddit features three sorting options (`Relevance`, `Top`, `New`) and does not utilize secondary time window filters.

***

### Best Practices & Performance Optimization

To maximize the value and efficiency of your conversational data extraction operations:

1. **Use Specific Search Keywords**: Target phrase-level queries or brand product names (e.g. `espresso machine maintenance`) rather than generic single terms to harvest higher-intent discussions with the reddit comment search.
2. **Combine Sorting Strategies**: Run parallel jobs with `Top` (for historical high-impact community comments) and `New` (for real-time sentiment monitoring) using this reddit comment search.
3. **Monitor Sentiment Trajectories**: Schedule regular weekly extractions to observe how community sentiments and common concerns change over time.
4. **Schedule Recurring Runs**: Automate recurring runs via the Apify platform scheduler (e.g. every weekday at 09:00 UTC) to continuously feed your analytics dashboards with the reddit comment search.
5. **Set Realistic Target Counts**: For niche discussion topics with limited reply volume, setting `max_items` to 50–100 ensures fast completion without requesting non-existent items.

***

### Troubleshooting & Frequently Asked Questions

#### Why did my run stop at exactly 10 comments?

Free tier accounts on the Apify platform are capped at 10 items per run (`FREE_USER_MAX_ITEMS = 10`). To extract larger volumes of comments, upgrade your Apify account to any paid tier. If you are already on a paid tier and encounter this limit, please report it via the Issues tab on this actor Console with your Run ID.

#### Is the 10-item free limit per day or per run?

The limit applies per run. Free accounts can test the reddit comment search with up to 10 items on any execution.

#### Does the comment search scraper support time filtering?

Reddit's platform architecture for comments search does not provide time window filters. It supports three sorting methods: Relevance, Top, and New. The reddit comment search accurately reflects this native platform design.

#### Can I search multiple keywords in a single run?

Yes. You can provide multiple keywords in the `keyword` string list input. The reddit comment search processes each term in sequence until your total target comment count is fulfilled.

#### What happens if a keyword has fewer results than my requested max_items?

The reddit comment search exhausts all available matching comments on the platform, saves all unique records collected, and exits cleanly with a normal completion status.

#### How does Pay-Per-Event billing work?

You are charged strictly for successfully extracted and stored comment records. If an error occurs or zero results match your query, no comment billing events occur.

***

### Technical Architecture Glossary

- **Pay-Per-Event (PPE)**: A transparent monetization architecture where charges occur only upon verified record extraction, eliminating upfront subscription waste.
- **Deduplication Parity**: An algorithmic check that guarantees the final dataset row count matches the exact number of unique items discovered, discarding repeated records.
- **Zero-Null Standard**: An output standard where empty, null, or blank attributes are completely removed from the pushed record to ensure pristine data tables.
- **Comment Reply**: A user-authored response posted within a Reddit submission thread contributing to discussion.
- **Comment Permalink**: The unique, direct URL leading to a specific comment inside a discussion thread.
- **Parent Submission**: The original post thread containing the discussion context in which a comment resides.
- **Net Score**: The aggregate upvote tally calculated by subtracting downvotes from upvotes on a comment.
- **Free Account Cap**: A standard 10-item volume limit applied per run to free Apify accounts to facilitate safe testing.

***

### Support & Feedback Channels

We actively maintain the **Reddit Comment Search** to ensure total synchronization with platform updates.

- **Bug Reports & Inquiries**: If you experience an issue or wish to request additional filter options, open a ticket directly in the **Issues** tab on the Apify Actor Console.
- **Include Your Run ID**: To accelerate investigation, please include your specific **Run ID** when submitting an issue.
- **Continuous Maintenance**: Our engineering team monitors platform changes daily to provide rapid updates and ensure uninterrupted extraction reliability.

# Actor input Schema

## `keyword` (type: `array`):

One or more search keywords to find Reddit comments for (e.g. 'flower', 'iPhone 15 battery', 'movie review'). Free plan users can collect up to 10 comments per run; paid users have unlimited collection.

## `max_items` (type: `integer`):

Maximum number of unique Reddit comments to collect for each search keyword. Free plan accounts are capped at 10 items total per run; paid accounts have no volume limit.

## `sort` (type: `string`):

Select how comment search results should be sorted: Relevance, Top, or New.

## `proxyCountry` (type: `string`):

Select the country connection for network queries. Defaults to United States (US).

## Actor input object example

```json
{
  "keyword": [
    "flower"
  ],
  "max_items": 10,
  "sort": "relevance",
  "proxyCountry": "US"
}
```

# Actor output Schema

## `results` (type: `string`):

All collected Reddit comment records from this run. Use the Export button on the Output tab to download in CSV, Excel, JSON, or XML format.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keyword": [
        "flower"
    ],
    "max_items": 10,
    "sort": "relevance",
    "proxyCountry": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlix/reddit-comment-search").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "keyword": ["flower"],
    "max_items": 10,
    "sort": "relevance",
    "proxyCountry": "US",
}

# Run the Actor and wait for it to finish
run = client.actor("crawlix/reddit-comment-search").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keyword": [
    "flower"
  ],
  "max_items": 10,
  "sort": "relevance",
  "proxyCountry": "US"
}' |
apify call crawlix/reddit-comment-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawlix/reddit-comment-search"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/36hJ1m44RCSh9YStG/builds/0RdX5cRF6dTkVBNVl/openapi.json
