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

🎬 Download media from any Reddit post (r/ + u/ URLs). Returns: direct download URLs, audio streams, all quality formats, gallery items, embed data, thumbnails. Output: post summary + media\_items array grouped per URL. ⚡ 6 engines, fast & reliable. ⚡Reddit Post Media Downloader✨

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

## Pricing

$13.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 Post Media Downloader

---
The **Reddit Post Media Downloader** is a focused Apify actor for downloading media from any Reddit post. Paste Reddit post URLs and get direct download links for videos, images, galleries, and external embeds. The **Reddit Post Media Downloader** accepts both subreddit posts (r/) and profile posts (u/) — every URL is processed automatically.

### What Is the Reddit Post Media Downloader?

The **Reddit Post Media Downloader** is a media-focused extraction tool that takes individual Reddit post URLs and returns:

- **Direct download URLs** — MP4 video, full-resolution images, gallery items, audio streams
- **All quality formats** — every available resolution, codec, and bitrate option for video posts
- **Audio stream URLs** — Reddit stores video and audio separately; this actor extracts both
- **Gallery/carousel items** — each image, video, or GIF in a carousel extracted individually
- **External embed data** — YouTube, Vimeo, and other oembed providers with embed URLs and thumbnails
- **Essential post metadata** — post type, title, author, subreddit, score, and media-related fields only

The **Reddit Post Media Downloader** processes each URL through 6 parallel extraction engines for maximum reliability.

---

### What This Actor Does

- Downloads media metadata and URLs from individual Reddit post URLs
- Processes both subreddit posts (`r/`) and profile posts (`u/`)
- Extracts video, image, gallery, external embed, and promoted post media
- Returns lightweight post summaries with media-focused fields only
- No comments, no full metadata dump — just download-ready media data

### What This Actor Does NOT Do

The **Reddit Post Media Downloader** does **not**:

- Scrape entire subreddits or user profiles
- Include comments in output
- Download the actual media files — it provides direct download URLs
- Return full 60+ field post metadata (see the main Metadata Scraper actor for that)

---

### Supported Post Types

The **Reddit Post Media Downloader** handles all Reddit 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 media to download) |
| **External Links** | External embed URL, oembed metadata, thumbnail, provider info |
| **Rich Video** | External video embed URL, iframe HTML, provider name |
| **Promoted/Ad Posts** | Media URLs plus call-to-action, destination URL |
| **Mixed Carousels** | Each item extracted separately with correct media type |

---

### Input

Provide one or more Reddit post URLs. Both subreddit and profile post URLs are accepted:

````

https://www.reddit.com/r/subreddit/comments/postid/
https://www.reddit.com/user/username/comments/postid/
https://v.redd.it/videoid

````

#### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `post_urls` | Array | *required* | Reddit 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/Wellthatsucks/comments/1s9q97r/" },
    { "url": "https://www.reddit.com/r/Weird/comments/1s9s2iw/" },
    { "url": "https://www.reddit.com/user/DimraethDev/comments/1p6ubo6/" },
    { "url": "https://www.reddit.com/user/DavidFromNeo/comments/1rj3crp/" }
  ],
  "max_results": 0
}
````

***

### Output Structure

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

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

The primary output — one record per downloadable media element:

| Field | Type | Description |
|---|---|---|
| `download_url` | string | **Best quality direct download URL** |
| `audio_url` | string | Separate audio stream URL (Reddit videos) |
| `media_type` | string | `video`, `image`, `gif`, `gallery`, `rich_video` |
| `source_url` | string | Original source URL |
| `thumbnail_url` | string | Thumbnail 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 (`mp4`, `jpeg`, `png`) |
| `title` | string | Media/post title |
| `media_id` | string | Unique media ID |
| `uploader` | string | Post author |
| `subreddit` | string | Subreddit name |
| `reddit_post_url` | string | Source Reddit post URL |
| `post_score` | integer | Post score |
| `num_comments` | integer | Comment count |
| `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 (YouTube, Vimeo) |
| `oembed_title` | string | Embedded content title |
| `oembed_author` | string | Embedded content author |
| `all_formats` | array | All available quality options with URLs, codecs, bitrates |

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

Lightweight context about each processed post:

| Field | Type | Description |
|---|---|---|
| `post_id` | string | Reddit post ID |
| `title` | string | Post title |
| `post_type` | string | `video`, `image`, `gallery`, `text`, `link`, `rich_video`, `ad` |
| `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 |
| `upvote_ratio` | float | Upvote ratio |
| `num_comments` | integer | Comment count |
| `created_at` | string | ISO-8601 creation time |
| `is_video` | boolean | Video post flag |
| `is_gallery` | boolean | Gallery post flag |
| `over_18` | boolean | NSFW flag |
| `flair` | string | Post flair |
| `thumbnail` | string | Thumbnail URL |
| `is_promoted` | boolean | Promoted post flag |
| `is_ad` | boolean | Ad post flag |
| `video_info` | object | Video details (fallback URL, dimensions, duration) |
| `gallery_items` | array | Gallery items with URLs and dimensions |
| `preview_images` | array | Preview images at all resolutions |
| `oembed` | object | External embed metadata |

***

### Video Download Example

```json
{
  "_item_type": "media",
  "download_url": "https://v.redd.it/93jz90kreosg1/CMAF_720.mp4?source=fallback",
  "audio_url": "https://v.redd.it/93jz90kreosg1/DASH_audio.mp4",
  "media_type": "video",
  "width": 1280,
  "height": 720,
  "duration": 123.0,
  "title": "History has been made as NASA has successfully launched Artemis II",
  "all_formats": [
    { "label": "fallback", "url": "...", "type": "mp4/video" },
    { "label": "dash", "url": "...", "type": "dash" },
    { "label": "hls", "url": "...", "type": "hls" },
    { "label": "audio", "url": "...", "type": "mp4/audio" }
  ]
}
```

***

### Gallery/Carousel Example

For a post with 5 images, the **Reddit Post Media Downloader** returns 5 separate media records:

```json
{
  "_item_type": "media",
  "download_url": "https://preview.redd.it/abc123.jpeg",
  "media_type": "image",
  "width": 4284,
  "height": 5712,
  "ext": "jpeg"
}
```

***

### Limitations

- Extracts download URLs and metadata — does not download actual files
- Reddit rate limits apply to large batches
- Deleted or removed posts may return partial data
- Private subreddit/profile posts cannot be accessed

***

### Privacy & Compliance

The **Reddit 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 and applicable privacy regulations.

# Actor input Schema

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

One or more Reddit post URLs to download media from.

Accepted formats:
Subreddit posts:  https://www.reddit.com/r/subreddit/comments/postid/
Profile posts:    https://www.reddit.com/user/username/comments/postid/
Direct videos:    https://v.redd.it/videoid

Both subreddit (r/) and profile (u/) post URLs are accepted.

## `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-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-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-post-media-downloader --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Reddit Post Media Downloader✨",
        "description": "🎬 Download media from any Reddit post (r/ + u/ URLs). Returns: direct download URLs, audio streams, all quality formats, gallery items, embed data, thumbnails. Output: post summary + media_items array grouped per URL. ⚡ 6 engines, fast & reliable. ⚡Reddit Post Media Downloader✨",
        "version": "0.0",
        "x-build-id": "zHvqqQNmur547ppaP"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapearchitect~reddit-post-media-downloader/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapearchitect-reddit-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-post-media-downloader/runs": {
            "post": {
                "operationId": "runs-sync-scrapearchitect-reddit-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-post-media-downloader/run-sync": {
            "post": {
                "operationId": "run-sync-scrapearchitect-reddit-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": "🔗 Reddit Post URLs",
                        "type": "array",
                        "description": "One or more Reddit post URLs to download media from.\n\nAccepted formats:\n  Subreddit posts:  https://www.reddit.com/r/subreddit/comments/postid/\n  Profile posts:    https://www.reddit.com/user/username/comments/postid/\n  Direct videos:    https://v.redd.it/videoid\n\nBoth subreddit (r/) and profile (u/) post URLs are accepted.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "url": {
                                    "title": "URL",
                                    "type": "string",
                                    "description": "Reddit post URL"
                                }
                            },
                            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
