# Reddit Subreddit Post Media Downloader⚡ (`scrapearchitect/reddit-subreddit-post-media-downloader`) Actor

📦 Download media from subreddit posts only (r/ URLs). ⚠️ Returns: MP4 download links, audio streams, all quality formats, gallery items, external embeds, thumbnails. One grouped row per URL with media\_items array⚡6 parallel engines. ✨Reddit Subreddit Post Media Downloader⚡

- **URL**: https://apify.com/scrapearchitect/reddit-subreddit-post-media-downloader.md
- **Developed by:** [Scrape Architect](https://apify.com/scrapearchitect) (community)
- **Categories:** Social media, Automation, Developer tools
- **Stats:** 15 total users, 3 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

$8.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

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

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

## ⚡Reddit Subreddit Post Media Downloader

The **Reddit Subreddit Post Media Downloader** is a focused Apify actor for downloading media from Reddit subreddit posts. Paste subreddit post URLs (r/) and get direct download links for videos, images, galleries, and external embeds. The **Reddit Subreddit Post Media Downloader** automatically filters out profile/user post URLs — only subreddit posts are processed.

---

### What Is the Reddit Subreddit Post Media Downloader?

The **Reddit Subreddit Post Media Downloader** is a media-focused extraction tool that accepts only subreddit post URLs (`r/`) and returns:

- **Direct download URLs** — MP4 video, full-resolution images, gallery items, audio streams
- **All quality formats** — every available resolution, codec, and bitrate for video posts
- **Audio stream URLs** — Reddit stores video and audio separately; this actor extracts both
- **Gallery/carousel items** — each image, video, or GIF extracted individually
- **External embed data** — YouTube, Vimeo, and other oembed providers
- **Essential post context** — post type, title, author, subreddit, score, and media fields only

The **Reddit Subreddit Post Media Downloader** uses 6 parallel extraction engines for maximum speed and reliability.

---

### What This Actor Does

- Downloads media metadata and URLs from Reddit subreddit post URLs only
- Accepts only `r/` post URLs — profile URLs (`u/`) are automatically skipped
- Extracts video, image, gallery, external embed media from subreddit posts
- Returns lightweight post summaries plus download-ready media records
- No comments — media download data only

### What This Actor Does NOT Do

The **Reddit Subreddit Post Media Downloader** does **not**:

- Process profile/user post URLs (`u/`) — those are automatically skipped with a warning
- Scrape entire subreddits — only individual post URLs
- Include comments in output
- Download actual media files — it returns direct download URLs
- Return full 60+ field metadata (see the main Metadata Scraper actor for that)

---

### How URL Filtering Works

The **Reddit Subreddit Post Media Downloader** automatically checks every input URL:

| URL Pattern | Action |
|---|---|
| `reddit.com/r/subreddit/comments/...` | **Processed** — subreddit post |
| `reddit.com/user/username/comments/...` | **Skipped** — profile post, logged as skipped |
| Other URLs | **Skipped** — not a subreddit post |

Skipped URLs are logged in the actor output so you can see which URLs were filtered out.

---

### Supported Post Types

The **Reddit Subreddit Post Media Downloader** handles all subreddit post types:

| Post Type | Media Output |
|---|---|
| **Video Posts** | Direct MP4 download URL, separate audio stream, DASH/HLS manifests, all quality formats |
| **Image Posts** | Full-resolution image URL, all resolution variants |
| **Gallery/Carousel** | Individual download link per gallery item (image, video, or GIF) |
| **Text Posts** | Post summary only (no downloadable media) |
| **External Links** | External embed URL, oembed metadata, thumbnail, provider info |
| **Rich Video** | External video embed URL, iframe HTML, provider name |
| **Mixed Carousels** | Each item separately with correct media type |

---

### Input

Provide one or more subreddit post URLs:

````

https://www.reddit.com/r/subreddit/comments/postid/
https://www.reddit.com/r/Damnthatsinteresting/comments/1sa33fi/

````

#### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `post_urls` | Array | *required* | Subreddit post URLs to download media from |
| `max_results` | Integer | `0` | Max media items to return. `0` = unlimited |

#### Example Input

```json
{
  "post_urls": [
    { "url": "https://www.reddit.com/r/Damnthatsinteresting/comments/1sa33fi/" },
    { "url": "https://www.reddit.com/r/TikTokCringe/comments/1s9kusm/" },
    { "url": "https://www.reddit.com/r/Wellthatsucks/comments/1s9q97r/" },
    { "url": "https://www.reddit.com/r/Weird/comments/1s9s2iw/" },
    { "url": "https://www.reddit.com/r/AITAH/comments/1s9vzep/" },
    { "url": "https://www.reddit.com/r/videos/comments/1s9z2z5/" }
  ],
  "max_results": 0
}
````

***

### Output Structure

The **Reddit Subreddit Post Media Downloader** produces two record types, tagged with `_item_type`.

#### Media Record (`_item_type: "media"`)

One record per downloadable media element:

| Field | Type | Description |
|---|---|---|
| `download_url` | string | **Best quality direct download URL** |
| `media_type` | string | `video`, `image`, `gif`, `gallery`, `rich_video` |
| `audio_url` | string | Separate audio stream (Reddit videos) |
| `source_url` | string | Original source URL |
| `width` | integer | Width in pixels |
| `height` | integer | Height in pixels |
| `duration` | float | Duration in seconds (video) |
| `file_size` | integer | File size in bytes |
| `ext` | string | File extension |
| `thumbnail_url` | string | Thumbnail URL |
| `media_id` | string | Unique media ID |
| `title` | string | Media/post title |
| `uploader` | string | Post author |
| `subreddit` | string | Subreddit name |
| `reddit_post_url` | string | Source post URL |
| `post_score` | integer | Post score |
| `post_created_at` | string | Post creation time |
| `flair` | string | Post flair |
| `is_reddit_hosted` | boolean | True = Reddit-hosted, False = external |
| `embed_url` | string | External embed URL |
| `provider_name` | string | External provider name |
| `oembed_title` | string | Embedded content title |
| `all_formats` | array | All quality options with URLs, codecs, bitrates |

#### Post Summary Record (`_item_type: "post"`)

Lightweight context for each subreddit post:

| Field | Type | Description |
|---|---|---|
| `post_id` | string | Reddit post ID |
| `post_type` | string | `video`, `image`, `gallery`, `text`, `link`, `rich_video` |
| `title` | string | Post title |
| `author` | string | Post author |
| `subreddit` | string | Subreddit name |
| `permalink` | string | Full Reddit permalink |
| `url` | string | Target URL |
| `media_url` | string | Media destination URL |
| `domain` | string | Content domain |
| `score` | integer | Net upvotes |
| `num_comments` | integer | Comment count |
| `created_at` | string | ISO-8601 creation time |
| `is_video` | boolean | Video flag |
| `is_gallery` | boolean | Gallery flag |
| `over_18` | boolean | NSFW flag |
| `flair` | string | Post flair |
| `thumbnail` | string | Thumbnail URL |
| `video_info` | object | Video details |
| `gallery_items` | array | Gallery items |
| `preview_images` | array | Preview images |
| `oembed` | object | External embed data |

***

### Video Download Example

```json
{
  "_item_type": "media",
  "download_url": "https://v.redd.it/93jz90kreosg1/CMAF_720.mp4?source=fallback",
  "media_type": "video",
  "audio_url": "https://v.redd.it/93jz90kreosg1/DASH_audio.mp4",
  "width": 1280,
  "height": 720,
  "duration": 123.0,
  "subreddit": "Damnthatsinteresting",
  "all_formats": [
    { "label": "fallback", "url": "...", "type": "mp4/video" },
    { "label": "audio", "url": "...", "type": "mp4/audio" }
  ]
}
```

***

### Privacy & Compliance

The **Reddit Subreddit Post Media Downloader** only accesses publicly available data through Reddit's public API endpoints. No login credentials are used. Ensure your use complies with Reddit's Terms of Service.

# Actor input Schema

## `post_urls` (type: `array`):

One or more Reddit subreddit post URLs to download media from.

Accepted format:
https://www.reddit.com/r/subreddit/comments/postid/

⚠️ Profile URLs (u/username) are automatically skipped.
Only subreddit posts (r/) are processed.

## `max_results` (type: `integer`):

Maximum number of media items to return.

0 = no limit (default).

## Actor input object example

```json
{
  "post_urls": [
    {
      "url": "https://www.reddit.com/r/Damnthatsinteresting/comments/1sa33fi/"
    }
  ],
  "max_results": 0
}
```

# 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 = {
    "post_urls": [
        {
            "url": "https://www.reddit.com/r/Damnthatsinteresting/comments/1sa33fi/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapearchitect/reddit-subreddit-post-media-downloader").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 = { "post_urls": [{ "url": "https://www.reddit.com/r/Damnthatsinteresting/comments/1sa33fi/" }] }

# Run the Actor and wait for it to finish
run = client.actor("scrapearchitect/reddit-subreddit-post-media-downloader").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 '{
  "post_urls": [
    {
      "url": "https://www.reddit.com/r/Damnthatsinteresting/comments/1sa33fi/"
    }
  ]
}' |
apify call scrapearchitect/reddit-subreddit-post-media-downloader --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Reddit Subreddit Post Media Downloader⚡",
        "description": "📦 Download media from subreddit posts only (r/ URLs). ⚠️ Returns: MP4 download links, audio streams, all quality formats, gallery items, external embeds, thumbnails. One grouped row per URL with media_items array⚡6 parallel engines. ✨Reddit Subreddit Post Media Downloader⚡",
        "version": "0.0",
        "x-build-id": "fKGNWlKTTNAGFR1Ww"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapearchitect~reddit-subreddit-post-media-downloader/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapearchitect-reddit-subreddit-post-media-downloader",
                "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/scrapearchitect~reddit-subreddit-post-media-downloader/runs": {
            "post": {
                "operationId": "runs-sync-scrapearchitect-reddit-subreddit-post-media-downloader",
                "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/scrapearchitect~reddit-subreddit-post-media-downloader/run-sync": {
            "post": {
                "operationId": "run-sync-scrapearchitect-reddit-subreddit-post-media-downloader",
                "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": [
                    "post_urls"
                ],
                "properties": {
                    "post_urls": {
                        "title": "🔗 Subreddit Post URLs",
                        "type": "array",
                        "description": "One or more Reddit subreddit post URLs to download media from.\n\nAccepted format:\n  https://www.reddit.com/r/subreddit/comments/postid/\n\n⚠️ Profile URLs (u/username) are automatically skipped.\nOnly subreddit posts (r/) are processed.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "url": {
                                    "title": "URL",
                                    "type": "string",
                                    "description": "Reddit subreddit post URL (r/ only)"
                                }
                            },
                            "required": [
                                "url"
                            ]
                        }
                    },
                    "max_results": {
                        "title": "🔢 Max Results",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of media items to return.\n\n0 = no limit (default).",
                        "default": 0
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
