# Reddit Search Tool: Posts by Keyword, No API Key

Runs a keyword search across all of Reddit and returns matching posts with title, body, subreddit, author, score, comment count and date. Sort by relevance, hot, top, new or comments and filter by hour, day, week, month, year or all time.

- 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 72 seconds, $0.01 at free-plan prices

## Input

```json
{
  "searches": [
    "claude code"
  ],
  "sort": "relevance",
  "time": "month",
  "maxItems": 100
}
```

## Output fields

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

## Sample rows (personal data masked)

```json
[
  {
    "title": "Claude Code is insane. My entire self-hosted Netflix is 17 MB.",
    "subreddit": "ClaudeAI",
    "author": "CoderLuii",
    "score": 4544,
    "upvoteRatio": 0.93,
    "numComments": 675,
    "flair": "Built with Claude",
    "createdAt": "2026-11-18T11:21:09Z",
    "url": "https://www.reddit.com/r/ClaudeAI/comments/1xzcsdg/claude_code_is_insane_my_entire_selfhosted/"
  },
  {
    "title": "Claude Code Is Designed to Make You Dumb",
    "subreddit": "developers",
    "author": "Ok-Committee5924",
    "score": 659,
    "upvoteRatio": 0.91,
    "numComments": 300,
    "flair": "General Discussion",
    "createdAt": "2026-11-18T12:03:23Z",
    "url": "https://www.reddit.com/r/developers/comments/1xzdjll/claude_code_is_designed_to_make_you_dumb/"
  },
  {
    "title": "Ho lasciato Claude Code nelle mani di mia madre per vedere se riusciva a sviluppare un'applicazione",
    "subreddit": "ItaliaCareerAdvice",
    "author": "Several-Specialist42",
    "score": 843,
    "upvoteRatio": 0.94,
    "numComments": 206,
    "flair": "Discussioni Generali",
    "createdAt": "2026-11-22T16:43:51Z",
    "url": "https://www.reddit.com/r/ItaliaCareerAdvice/comments/1y2top5/ho_lasciato_claude_code_nelle_mani_di_mia_madre/"
  }
]
```

Full sample: https://datapika.com/data/tasks/reddit-keyword-search-posts.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 "Reddit Search Tool: Posts by Keyword, No API Key" 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 72 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":["claude code"],"sort":"relevance","time":"month","maxItems":100}'
```

## 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.
- 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.

### Can I search several keywords at once?

Yes. Add more entries to searches; posts found by more than one keyword are delivered once.

### 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.
