# Sub Reddit Feed Post Scraper (`saswave/sub-reddit-feed-post-scraper`) Actor

$0.8 / 1000 results. High-speed data extraction tool designed to monitor and archive the "Hot," "New," or "Top" feeds of any subreddit.  Tracking breaking news in r/worldnews or monitoring market-moving memes in r/wallstreetbets, this scraper delivers the full technical data

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

## Pricing

from $0.80 / 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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

### Sub Reddit Feed Post Scraper

High-speed data extraction tool designed to monitor and archive the "Hot," "New," or "Top" feeds of any subreddit. 

Whether you are tracking breaking news in r/worldnews or monitoring market-moving memes in r/wallstreetbets, this scraper delivers the full technical data

### FEATURES

Feed-Wide Extraction: Scrape entire subreddit feeds based on sorting (Hot, New, Top, Rising).

Multimedia Support: Automatically detects and extracts direct links to images (i.redd.it), videos, and external domains.

Engagement Metrics: Capture real-time ups (upvotes), upvote_ratio, and num_comments to identify viral content instantly.

Rich Flair Data: Access link flairs (e.g., "Meme," "News," "Technical Analysis") including background colors and richtext templates for easy filtering.

Subreddit Growth Tracking: Monitor subreddit_subscribers counts at the time of the scrape to correlate post performance with community size.

SEO & Preview Data: Pulls high-resolution thumbnail arrays and preview images for gallery-style applications.

### USE CASES

Trend Spotting: Identify breakout topics in niche communities before they hit the mainstream news cycle.

Sentiment Monitoring: Track how specific brands or assets are being discussed in real-time across financial or consumer subreddits.

Content Aggregation: Build a specialized newsfeed or dashboard by pulling media-rich posts from multiple targeted subreddits.

Viral Content Analysis: Use upvote_ratio and num_comments data to study what makes content go viral in specific internet subcultures.

Market Intelligence: Monitor communities like r/wallstreetbets for sudden spikes in mentions of specific stocks or financial job market trends.

### OUTPUT

Post
```json
{
  "approved_at_utc": null,
  "subreddit": "wallstreetbets",
  "selftext": "",
  "author_fullname": "t2_19nu489oi4",
  "saved": false,
  "mod_reason_title": null,
  "gilded": 0,
  "clicked": false,
  "title": "Sir, job applications at JP Morgan are up 686,000% this morning",
  "link_flair_richtext": [
    {
      "e": "text",
      "t": "Meme"
    }
  ],
  "subreddit_name_prefixed": "r/wallstreetbets",
  "hidden": false,
  "pwls": 6,
  "link_flair_css_class": "",
  "downs": 0,
  "thumbnail_height": 125,
  "top_awarded_type": null,
  "hide_score": false,
  "name": "t3_1t08345",
  "quarantine": false,
  "link_flair_text_color": "dark",
  "upvote_ratio": 0.94,
  "author_flair_background_color": null,
  "ups": 22606,
  "total_awards_received": 0,
  "media_embed": {},
  "thumbnail_width": 140,
  "author_flair_template_id": null,
  "is_original_content": false,
  "user_reports": [],
  "secure_media": null,
  "is_reddit_media_domain": true,
  "is_meta": false,
  "category": null,
  "secure_media_embed": {},
  "link_flair_text": "Meme",
  "can_mod_post": false,
  "score": 22606,
  "approved_by": null,
  "is_created_from_ads_ui": false,
  "author_premium": false,
  "thumbnail": "https://preview.redd.it/1p4udoi21eyg1.jpeg?width=140&amp;height=125&amp;auto=webp&amp;s=b6098b30f7e51f51c61cad0c7f3a1a57bee22f8d",
  "edited": false,
  "author_flair_css_class": null,
  "author_flair_richtext": [],
  "gildings": {},
  "post_hint": "image",
  "content_categories": null,
  "is_self": false,
  "subreddit_type": "public",
  "created": 1777581044.0,
  "link_flair_type": "richtext",
  "wls": 6,
  "removed_by_category": null,
  "banned_by": null,
  "author_flair_type": "text",
  "domain": "i.redd.it",
  "allow_live_comments": false,
  "selftext_html": null,
  "likes": null,
  "suggested_sort": "confidence",
  "banned_at_utc": null,
  "url_overridden_by_dest": "https://i.redd.it/1p4udoi21eyg1.jpeg",
  "view_count": null,
  "archived": false,
  "no_follow": false,
  "is_crosspostable": false,
  "pinned": false,
  "over_18": false,
  "preview": {
    "images": [
      {
        "source": {
          "url": "https://preview.redd.it/1p4udoi21eyg1.jpeg?auto=webp&amp;s=f65230b90574c298fafff529e5d4198aeaa41668",
          "width": 679,
          "height": 611
        },
        "resolutions": [
          {
            "url": "https://preview.redd.it/1p4udoi21eyg1.jpeg?width=108&amp;crop=smart&amp;auto=webp&amp;s=eca3cc65b3e986eb0245e1973a586376af76a305",
            "width": 108,
            "height": 97
          },
          {
            "url": "https://preview.redd.it/1p4udoi21eyg1.jpeg?width=216&amp;crop=smart&amp;auto=webp&amp;s=42ca67085cc37856f3e4cad29ee89d2d47b39b40",
            "width": 216,
            "height": 194
          },
          {
            "url": "https://preview.redd.it/1p4udoi21eyg1.jpeg?width=320&amp;crop=smart&amp;auto=webp&amp;s=5a27a5a9a380bb5131a854348da5f8d44dde9e20",
            "width": 320,
            "height": 287
          },
          {
            "url": "https://preview.redd.it/1p4udoi21eyg1.jpeg?width=640&amp;crop=smart&amp;auto=webp&amp;s=324440f6d7c1b08eef04fb966c04e773956bbad1",
            "width": 640,
            "height": 575
          }
        ],
        "variants": {},
        "id": "1p4udoi21eyg1"
      }
    ],
    "enabled": true
  },
  "all_awardings": [],
  "awarders": [],
  "media_only": false,
  "link_flair_template_id": "d798a224-b973-11ef-a7e7-d606063d31a6",
  "can_gild": false,
  "spoiler": false,
  "locked": false,
  "author_flair_text": null,
  "treatment_tags": [],
  "visited": false,
  "removed_by": null,
  "mod_note": null,
  "distinguished": null,
  "subreddit_id": "t5_2th52",
  "author_is_blocked": false,
  "mod_reason_by": null,
  "num_reports": null,
  "removal_reason": null,
  "link_flair_background_color": "#20b3df",
  "id": "1t08345",
  "is_robot_indexable": true,
  "report_reasons": null,
  "author": "MysteriousSlice007",
  "discussion_type": null,
  "num_comments": 1025,
  "send_replies": true,
  "contest_mode": false,
  "mod_reports": [],
  "author_patreon_flair": false,
  "author_flair_text_color": null,
  "permalink": "/r/wallstreetbets/comments/1t08345/sir_job_applications_at_jp_morgan_are_up_686000/",
  "stickied": false,
  "url": "https://i.redd.it/1p4udoi21eyg1.jpeg",
  "subreddit_subscribers": 19951541,
  "created_utc": 1777581044.0,
  "num_crossposts": 3,
  "media": null,
  "is_video": false
}
````

### 🛟 SUPPORT

Share your runs with the developer team and create issues on error to help us improve actor quality.

You might discover edge case we didn't test yet

We stay available anytime

# Actor input Schema

## `sub_reddits` (type: `array`):

Url contains /r/

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

Select feature when providing users

## Actor input object example

```json
{
  "sub_reddits": [
    "wallstreetbets"
  ],
  "sort": "top_day"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "sub_reddits": [
        "wallstreetbets"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("saswave/sub-reddit-feed-post-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 = { "sub_reddits": ["wallstreetbets"] }

# Run the Actor and wait for it to finish
run = client.actor("saswave/sub-reddit-feed-post-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 '{
  "sub_reddits": [
    "wallstreetbets"
  ]
}' |
apify call saswave/sub-reddit-feed-post-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Sub Reddit Feed Post Scraper",
        "description": "$0.8 / 1000 results. High-speed data extraction tool designed to monitor and archive the \"Hot,\" \"New,\" or \"Top\" feeds of any subreddit.  Tracking breaking news in r/worldnews or monitoring market-moving memes in r/wallstreetbets, this scraper delivers the full technical data",
        "version": "0.0",
        "x-build-id": "G7RkyxnggaUtEh9Sk"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/saswave~sub-reddit-feed-post-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-saswave-sub-reddit-feed-post-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/saswave~sub-reddit-feed-post-scraper/runs": {
            "post": {
                "operationId": "runs-sync-saswave-sub-reddit-feed-post-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/saswave~sub-reddit-feed-post-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-saswave-sub-reddit-feed-post-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "sub_reddits"
                ],
                "properties": {
                    "sub_reddits": {
                        "title": "Sub reddits /r/",
                        "type": "array",
                        "description": "Url contains /r/",
                        "items": {
                            "type": "string"
                        }
                    },
                    "sort": {
                        "title": "Posts Sort",
                        "enum": [
                            "best",
                            "rising",
                            "hot",
                            "new",
                            "top_day",
                            "top_week",
                            "top_month",
                            "top_year",
                            "top_all"
                        ],
                        "type": "string",
                        "description": "Select feature when providing users",
                        "default": "top_day"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
