# Reddit Archive Search: Old Posts by Keyword

Searches all of Reddit with the time filter set to all time and the most relevant posts first, so older posts about your keyword come back with their date, subreddit, score and link.

- 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, 4 rows in 14 seconds, $0.01 at free-plan prices

## Input

```json
{
  "searches": [
    "first iphone"
  ],
  "sort": "relevance",
  "time": "all",
  "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": "Best Iphone value 2026 ? (First time getting an iPhone)",
    "subreddit": "AppleWhatShouldIBuy",
    "author": "Chubby_latee",
    "score": 1,
    "upvoteRatio": 0.6,
    "numComments": 20,
    "flair": "iPhone",
    "createdAt": "2026-10-25T11:11:08Z",
    "url": "https://www.reddit.com/r/AppleWhatShouldIBuy/comments/1xeznul/best_iphone_value_2026_first_time_getting_an/"
  },
  {
    "title": "Photos show what it was like when the first iPhone went on sale (2007)",
    "subreddit": "HistoricalCapsule",
    "author": "zadraaa",
    "score": 3103,
    "upvoteRatio": 0.96,
    "numComments": 348,
    "flair": "",
    "createdAt": "2026-09-18T14:27:36Z",
    "url": "https://www.reddit.com/r/HistoricalCapsule/comments/1wjrqe3/photos_show_what_it_was_like_when_the_first/"
  },
  {
    "title": "In 2007, the original iPhone was released.  Marc Rebillet was first in line.  All kinds of schadenfreude ensued when some lady bought out his first position in line.",
    "subreddit": "nostalgia",
    "author": "ansyhrrian",
    "score": 18668,
    "upvoteRatio": 0.97,
    "numComments": 1045,
    "flair": "Nostalgia",
    "createdAt": "2026-09-28T18:16:32Z",
    "url": "https://www.reddit.com/r/nostalgia/comments/1wsmarb/in_2007_the_original_iphone_was_released_marc/"
  }
]
```

Full sample: https://datapika.com/data/tasks/reddit-archive-search-old-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 Archive Search: Old Posts by Keyword" 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 4 rows in 14 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":["first iphone"],"sort":"relevance","time":"all","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

### How old can results be?

Any age Reddit's search still returns. With time set to all, matching posts from every year are included; add postedBefore to keep only older ones.

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

### How do I export the results?

Download the dataset as JSON, CSV or Excel, read it through the Apify API, or run the task from an AI agent through the Apify MCP server.
