# Search Reddit Comments: Keyword Threads

Finds Reddit posts matching your keyword and returns each with its full comment thread, so you can read every comment about the topic. Reddit blocks direct comment search for logged-out visitors; this is the closest public route.

- Actor: openclawai/reddit-scraper (Reddit Scraper), https://datapika.com/actors/reddit-scraper
- Run on Apify: https://apify.com/openclawai/reddit-scraper
- Tested: 2026-11-23, 5 rows in 20 seconds, $0.13 at free-plan prices

## Input

```json
{
  "searches": [
    "best password manager"
  ],
  "sort": "relevance",
  "time": "year",
  "includeComments": true,
  "maxCommentsPerPost": 50,
  "maxItems": 20
}
```

## Output fields

- `title`: Title
- `subreddit`: Subreddit
- `author`: Author
- `score`: Score
- `upvoteRatio`: Upvote %
- `numComments`: Comments
- `createdAt`: Posted
- `url`: Link

## Sample rows (personal data masked)

```json
[
  {
    "title": "Which is the best password manager available today?",
    "subreddit": "PasswordManagers",
    "author": "Visible-Reason9593",
    "score": 31,
    "upvoteRatio": 0.83,
    "numComments": 154,
    "createdAt": "2026-10-13T22:05:16Z",
    "url": "https://www.reddit.com/r/PasswordManagers/comments/1x5a6q5/which_is_the_best_password_manager_available_today/"
  },
  {
    "title": "Hello what password manager do you guys recommend and Is there any tip so I cannot forgot my password frequently",
    "subreddit": "PasswordManagers",
    "author": "Huge-Appointment8685",
    "score": 17,
    "upvoteRatio": 0.95,
    "numComments": 76,
    "createdAt": "2026-11-18T08:43:50Z",
    "url": "https://www.reddit.com/r/PasswordManagers/comments/1xzaaab/hello_what_password_manager_do_you_guys_recommend/"
  },
  {
    "title": "Give me your best password mangers ranking in Fall 2026",
    "subreddit": "PasswordManagers",
    "author": "UnamedWitch",
    "score": 16,
    "upvoteRatio": 0.69,
    "numComments": 137,
    "createdAt": "2026-10-17T09:02:11Z",
    "url": "https://www.reddit.com/r/PasswordManagers/comments/1x85jft/give_me_your_best_password_mangers_ranking_in/"
  }
]
```

Full sample: https://datapika.com/data/tasks/search-reddit-comments-by-keyword.json

## How to run it

1. **Open the actor on Apify.** Click Copy input, then Run on Apify to open the Reddit Scraper. Sign in or create a free account, open the JSON tab of the input form and paste the input.
2. **Start the "Search Reddit Comments: Keyword Threads" task.** Press Start. Change any input field first if you need a different topic, account or size; the fields are listed above.
3. **Get the results.** Rows arrive in a dataset while the run works. Our test returned 5 rows in 20 seconds.
4. **Use the data.** Download JSON, CSV or Excel, call the run from the API, schedule it, or let an AI agent run it through MCP.

API (replace the token):

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/openclawai~reddit-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=1" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searches":["best password manager"],"sort":"relevance","time":"year","includeComments":true,"maxCommentsPerPost":50,"maxItems":20}'
```

## Change it

- Put your own keywords in searches; each keyword runs as its own search.
- time narrows the period: hour, day, week, month, year or all.
- includeComments attaches each post's comment thread; maxCommentsPerPost caps it.
- maxCommentsPerPost sets how many comments come with each post.
- Raise maxItems for a bigger dataset; you pay per result delivered.

## FAQ

### Can it search inside comment text?

Reddit blocks keyword search of comments for logged-out visitors, so the task finds posts matching your keyword and returns their full comment threads.

### How many comments do I get per post?

Set maxCommentsPerPost. Small threads come back complete; very big threads return about 120 to 220 comments per post, the top of the tree first.

### Do I need a Reddit account or API key?

No. It reads public Reddit data anonymously, with no login, cookie, app registration or API key.

### How much does it cost?

You pay per result delivered to your dataset: posts, comments, users or communities. There is no start fee. The current prices are on the Pricing tab.
