# Example: 25 newest Reddit posts about web scraping

**Use case:** 

Runs the Reddit Search Scraper for the phrase web scraping across Reddit and returns the 25 newest matching posts as JSON.

## Input

```json
{
  "searches": [
    "web scraping"
  ],
  "searchCommunityName": "webdev",
  "sort": "new",
  "time": "all",
  "maxItems": 25,
  "postedAfter": "2026-01-01",
  "postedBefore": "2026-06-01",
  "searchComments": false,
  "includeNSFW": false,
  "onlyNew": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "type": {
    "label": "Row type",
    "format": "string"
  },
  "id": {
    "label": "ID",
    "format": "string"
  },
  "subreddit": {
    "label": "Subreddit",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "score": {
    "label": "Score",
    "format": "integer"
  },
  "numComments": {
    "label": "Comment count",
    "format": "integer"
  },
  "body": {
    "label": "Body",
    "format": "string"
  },
  "createdUtc": {
    "label": "Created (UTC, ISO)",
    "format": "string"
  },
  "permalink": {
    "label": "Permalink",
    "format": "string"
  },
  "postId": {
    "label": "Post ID",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Reddit Search Scraper: Keywords & Mentions, $2/1K Posts Actor is ready to run with the inputs already set for "Example: 25 newest Reddit posts about web scraping". [Sign up or log in](https://console.apify.com/create-task-from-example/aRcoduVelppFxrmC0) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Example: 25 newest Reddit posts about web scraping" task

The Reddit Search Scraper: Keywords & Mentions, $2/1K Posts Actor will start running based on the input automatically. You can also change all the input fields, like keywords, subreddit (optional), and more, to match your specific use case.

### 3. Receive the "Example: 25 newest Reddit posts about web scraping" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as row type, ID, subreddit, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Example: 25 newest Reddit posts about web scraping" task via API](https://apify.com/actorforgehq/reddit-search-scraper.md).

## FAQ

### What does one row of the Reddit web scraping search task contain?

The Reddit web scraping search task returns one post per row: id, subreddit, author, title, score, numComments, createdUtc, permalink, nsfw, spoiler and stickied. Rows have no post text and no external link.

### How do I change the keyword or limit the Reddit web scraping search task to one subreddit?

In the Reddit web scraping search task, enter phrases in searches: each phrase is a separate search. Set searchCommunityName to a subreddit name without r/ to limit it. The saved input is web scraping with maxItems 25.

### Why does the Reddit web scraping search task return the newest posts?

The Reddit web scraping search task uses the default sort new, so it returns the newest matches. Other sorts are relevance, hot, top and comments. With sort new, postedAfter also stops paging early.

### How do I track new mentions with the Reddit web scraping search task?

Run the Reddit web scraping search task on an Apify Schedule with onlyNew true and sort new. Rows already delivered to you from the same searches are skipped, so each run adds only new hits.

### Can the Reddit web scraping search task also return matching comments?

The Reddit web scraping search task can return matching comments as extra rows when searchComments is true. These comments have depth 0 and no parentId, because search shows no thread position.

### What are the limits of the Reddit web scraping search task?

The Reddit web scraping search task returns what Reddit's own search shows a logged-out visitor, not every post with the words. One request returns about 7 posts and results end after a few hundred per phrase.

### Does the Reddit web scraping search task need a Reddit account, and how do I get post text?

The Reddit web scraping search task needs no Reddit account or API key. For post text, run the Reddit Comments Scraper on a result's permalink, and the post comes back as an extra row with its text.

## About this Actor

This example demonstrates how to use [Reddit Search Scraper: Keywords & Mentions, $2/1K Posts](https://apify.com/actorforgehq/reddit-search-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/actorforgehq/reddit-search-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/actorforgehq/reddit-search-scraper.md

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`).
