# Reddit Feed Scraper — Popular, Games & News (`toolzerhub/reddit-feed-scraper`) Actor

Collect posts from Reddit's Home, Popular, Games, or News feeds. Choose the feed at run time, paginate automatically, and export structured front-page content and engagement data.

- **URL**: https://apify.com/toolzerhub/reddit-feed-scraper.md
- **Developed by:** [ToolzerHub](https://apify.com/toolzerhub) (community)
- **Categories:** Social media, News, Automation
- **Stats:** 2 total users, 1 monthly users, 12.5% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

**Collect posts from Reddit's Home, Popular, Games, or News front-page feeds.**

Reddit Feeds Scraper is the ToolzerHub tool for trend-watching across Reddit's own front-page surfaces instead of a single subreddit. Pick a feed type at run time and it paginates through that feed's posts up to your result cap.

### Feed type chosen at run time drives the request

Choose Home, Popular, Games, or News as the feed type, pick a sort mode, and set Max Results to bound the run.

#### Collect a front-page feed

Choose a feed type (Home, Popular, Games, or News), a sort mode, and set Max Results.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `feed_type` | string | No | Which Reddit front-page feed to collect. |
| `sort` | string | No | Sort order for the feed or listing. |
| `maxItems` | integer | No | Maximum number of items to save. Set 0 for no limit. |

#### Example front-page pull

```json
{
  "feed_type": "popular",
  "sort": "HOT",
  "maxItems": 50
}
```

### A front-page feed built for trend-watching

#### 📝 Post identity

| Field | Type | Description |
| --- | --- | --- |
| `post_id` | string | Reddit post ID. |
| `title` | string | Post or subreddit title when available. |
| `author` | string | Username of the post or comment author. |
| `subreddit` | string | Subreddit display name the item belongs to. |

#### 📊 Engagement signals

| Field | Type | Description |
| --- | --- | --- |
| `created_at` | string | Creation timestamp reported by the source payload. |
| `score` | number | Net score (upvotes minus downvotes) when available. |
| `num_comments` | number | Number of comments on the post when available. |

#### Front-page preview

```json
{
  "post_id": "t3_1uw2gep",
  "title": "Cats being cats",
  "author": "Turbulent_Nerve3744",
  "subreddit": "pics",
  "score": 1250
}
```

### Cost of a front-page pull

This Actor uses Apify pay-per-result pricing. You are charged for successful dataset results according to the Actor pricing shown on the Apify Pricing tab.

Apify's free credits may cover small test runs and up to the free result allowance configured for the Actor.

Use Max Results to bound a run before scaling to larger subreddits, users, or query lists.

### Responsible feed-data use

This Actor extracts publicly available Reddit content. It should not be used to collect private user data. Make sure your use case complies with applicable privacy laws, Reddit's terms, and your own legal obligations. If you are unsure, consult a qualified lawyer.

### Run this Actor from code

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")
run = client.actor("toolzerhub/reddit-feed-scraper").call(run_input={
    "feed_type": "popular",
    "sort": "HOT",
    "maxItems": 50
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

#### Node.js

```javascript
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: "YOUR_APIFY_API_TOKEN" });
const run = await client.actor("toolzerhub/reddit-feed-scraper").call({
  "feed_type": "popular",
  "sort": "HOT",
  "maxItems": 50
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### Zoom into one subreddit or search by keyword instead

- [Reddit Subreddit Posts Scraper — Bulk Export](https://apify.com/toolzerhub/reddit-subreddit-posts-scraper) — Collect posts from any subreddit by Best, Hot, New, Top, or Rising. Paginate automatically, choose a maximum result count, and optionally enrich every item with complete post details.
- [Reddit Search Scraper — Posts, Users & More](https://apify.com/toolzerhub/reddit-search-scraper) — Search Reddit by keyword across posts, users, subreddits, or comments. Choose the result type, paginate automatically, and export structured search results for research and monitoring.
- [Reddit Post Scraper — Details by URL or ID](https://apify.com/toolzerhub/reddit-post-scraper) — Fetch complete Reddit post records by post ID or permalink URL, or batch multiple comma-separated post IDs in one run. Export structured post, author, content, and engagement data.

### ToolzerHub support

Use the Issues tab on the Actor page for bug reports, missing fields, and feature requests.

Contact: contact@toolzerhub.com

# Actor input Schema

## `feed_type` (type: `string`):

Which Reddit front-page feed to collect.

## `sort` (type: `string`):

Sort order for the feed or listing.

## `maxItems` (type: `integer`):

Maximum number of items to save. Set 0 for no limit.

## Actor input object example

```json
{
  "feed_type": "home",
  "sort": "BEST",
  "maxItems": 20
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all scraped data

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("toolzerhub/reddit-feed-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "maxItems": 20 }

# Run the Actor and wait for it to finish
run = client.actor("toolzerhub/reddit-feed-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxItems": 20
}' |
apify call toolzerhub/reddit-feed-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=toolzerhub/reddit-feed-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/uokc0tH5lBaRNbSQf/builds/CMauyufIQa6hXxTuW/openapi.json
