# Example: 25 hot posts from r/programming

**Use case:** 

Runs the Reddit Subreddit Scraper on r/programming and returns the 25 current hot posts as JSON rows.

## Input

```json
{
  "subreddits": [
    "programming"
  ],
  "listingSort": "hot",
  "time": "all",
  "maxItems": 25,
  "postedAfter": "2026-01-01",
  "postedBefore": "2026-06-01",
  "includeNSFW": false,
  "onlyNew": false,
  "startUrls": [
    {
      "url": "https://www.reddit.com/r/programming/new/"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "id": {
    "label": "ID",
    "format": "string"
  },
  "subreddit": {
    "label": "Subreddit",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "string"
  },
  "score": {
    "label": "Score",
    "format": "integer"
  },
  "numComments": {
    "label": "Comment count",
    "format": "integer"
  },
  "flair": {
    "label": "Flair",
    "format": "string"
  },
  "nsfw": {
    "label": "NSFW",
    "format": "boolean"
  },
  "stickied": {
    "label": "Stickied",
    "format": "boolean"
  },
  "createdUtc": {
    "label": "Created (UTC, ISO)",
    "format": "string"
  },
  "url": {
    "label": "Link URL",
    "format": "string"
  },
  "permalink": {
    "label": "Permalink",
    "format": "string"
  },
  "selfText": {
    "label": "Self-text",
    "format": "string"
  }
}
```

## How it works

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

The Reddit Subreddit Scraper: Hot, New, Top Posts, $2/1K Posts Actor is ready to run with the inputs already set for "Example: 25 hot posts from r/programming". [Sign up or log in](https://console.apify.com/create-task-from-example/fYr5cCcsLhTjg52xY) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Example: 25 hot posts from r/programming" task

The Reddit Subreddit Scraper: Hot, New, Top Posts, $2/1K Posts Actor will start running based on the input automatically. You can also change all the input fields, like subreddits, listing sort, and more, to match your specific use case.

### 3. Receive the "Example: 25 hot posts from r/programming" 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 ID, subreddit, title, 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 hot posts from r/programming" task via API](https://apify.com/actorforgehq/reddit-subreddit-scraper.md).

## FAQ

### What does one row of the r/programming hot posts task contain?

The r/programming hot posts task returns one post per row: id, subreddit, title, author, score, numComments, flair, nsfw, stickied, createdUtc, url, permalink and selfText. flair appears only when the post has one.

### How do I change the subreddit or sort in the r/programming hot posts task?

In the r/programming hot posts task, change subreddits to other names without r/ and listingSort to hot, new, top or rising. The saved input is programming, hot, maxItems 25. time applies to top only.

### Can the r/programming hot posts task read feed links instead of names?

The r/programming hot posts task accepts subreddit feed links in startUrls, such as /r/programming/new/, and the sort in the link wins over listingSort. Links to posts, users or search pages are not read.

### How many posts can the r/programming hot posts task return?

The r/programming hot posts task keeps up to maxItems posts per subreddit, 25 in this task. maxItems is capped at 1,000 because Reddit serves about 1,000 posts per feed. One request returns about 25 posts.

### How do I monitor a subreddit with the r/programming hot posts task?

Run the r/programming hot posts task on an Apify Schedule with onlyNew on. Posts already delivered to you from the same subreddits, sort and time window are skipped. It can also be called through the Apify API.

### Does the r/programming hot posts task need a Reddit account or API key?

The r/programming hot posts task needs no Reddit account or API key. The Actor reads public pages as a logged-out visitor, never logs in, and NSFW posts are skipped unless includeNSFW is true.

### Does the r/programming hot posts task return comments?

The r/programming hot posts task returns posts only and fetches no comments. For a post with its first comments use the Reddit Data Scraper, and for whole threads use the Reddit Comments Scraper.

## About this Actor

This example demonstrates how to use [Reddit Subreddit Scraper: Hot, New, Top Posts, $2/1K Posts](https://apify.com/actorforgehq/reddit-subreddit-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/actorforgehq/reddit-subreddit-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-subreddit-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`).
