# Reddit Video Metadata Scraper (`w3crawler/reddit-video-metadata-scraper`) Actor

Collect public Reddit post metadata and publicly exposed video or media URLs from direct posts and bounded subreddit listings without bypassing access controls.

- **URL**: https://apify.com/w3crawler/reddit-video-metadata-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 video metadata

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Reddit Video Metadata Scraper

Collect public Reddit post metadata and publicly exposed video or media URLs from direct post links and bounded subreddit listings. When a public `v.redd.it` URL is available, the Actor reads the public MPEG-DASH manifest to report dimensions, duration, bitrate variants, codecs, and audio-track presence. It does not download, transcode, merge, or host media bytes.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/reddit-video-metadata-scraper) and select **Try for free** or open the **Input** tab.
2. Supply at least one direct post in `postUrls` or one community in `subreddits`. Direct post URLs are the most predictable starting point.
3. Set `maxVideos` per source and adjust `quality`, `includeAudio`, and the listing options as needed.
4. Start the Actor, open the dataset, and export the rows as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT`) to check counts and media outcomes.

### Input

All fields are optional in the schema, but at least one of `postUrls` or `subreddits` must contain a source, and the combined source list is capped at 50 entries. The defaults below are ready to use.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `postUrls` | string array | Conditional | Not supplied (prefill: one Reddit post URL) | Direct public Reddit post URLs to inspect, up to 50 entries. |
| `subreddits` | string array | Conditional | Not supplied | Public subreddit names without `r/`, up to 50 entries. Each name is turned into a bounded listing source. |
| `maxVideos` | integer | Optional | `10` | Maximum public video-related records inspected per source, from 1 to 100. This is a per-source cap, not a global row cap. |
| `sort` | string enum | Optional | `hot` | Listing order for subreddit sources: `hot`, `new`, `top`, `rising`, or `controversial`. |
| `timeFilter` | string enum | Optional | `week` | Time window applied to `top` and `controversial` listings: `hour`, `day`, `week`, `month`, `year`, or `all`. |
| `quality` | string enum | Optional | `best` | Preferred DASH video height: `best`, `1080`, `720`, `480`, `360`, or `worst`. The closest available manifest variant is selected; this is not transcoding. |
| `includeAudio` | boolean | Optional | `true` | Report whether an audio track is present. The Actor never merges audio and video. |
| `proxyConfiguration` | object | Optional | Not supplied | Standard Apify Proxy settings for public Reddit requests. Leave unset to run directly. |

Example input using the prefilled post URL and the schema defaults:

```json
{
  "postUrls": [
    "https://www.reddit.com/r/HPVictus/comments/1r62x2u/whatchall_think/"
  ],
  "maxVideos": 10,
  "sort": "hot",
  "timeFilter": "week",
  "quality": "best",
  "includeAudio": true
}
```

The Actor uses bounded public HTTP representations and stops at login walls, CAPTCHAs, WAF responses, rate limits, or off-domain redirects.

### Output

The dataset contains usable public post/media metadata. It does not contain diagnostic rows; access and extraction problems are recorded in `OUTPUT` and logs. Optional values are omitted when the source does not expose them.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordType` | string enum | Always | Usable record type: `reddit-video-post`, `reddit-video-oembed`, or `reddit-video-page`. |
| `recordId` | string | Always | Stable identifier derived from the public post or source. |
| `sourceTransport` | string | Always | Public response path that produced the row, such as `reddit-rss`, `reddit-json`, `reddit-oembed`, or `reddit-html`. |
| `sourceUrl` | string | Always | Public URL requested for the source representation. |
| `postId` | string | When a post identity is available | Bare Reddit base36 post ID. |
| `fullname` | string | When a post identity is available | Reddit fullname in `t3_<postId>` form. |
| `subreddit` | string | When exposed | Public subreddit name. |
| `subredditNamePrefixed` | string | When exposed | Subreddit name with the `r/` prefix. |
| `author` | string | When exposed | Public post author. |
| `authorFullname` | string | When exposed | Public author fullname. |
| `authorUrl` | string | When exposed | Public author profile URL. |
| `title` | string | When exposed | Public post or embed title. |
| `selftext` | string | When the post has text | Public post body. |
| `permalink` | string | When exposed | Canonical public Reddit permalink. |
| `postUrl` | string | When exposed | Public post or media URL. |
| `domain` | string | When exposed | Public content domain. |
| `postHint` | string | When exposed | Reddit's post hint. |
| `score` | number | When exposed | Public score at collection time. |
| `upvoteRatio` | number | When exposed | Public upvote ratio. |
| `numComments` | number | When exposed | Public comment count at collection time. |
| `createdUtc` | number | When exposed | Public creation time as Unix seconds. |
| `createdIso` | string | When exposed | Public creation time in ISO UTC. |
| `publishedAt` | string | When exposed by the RSS representation | Public RSS publication time. |
| `isVideo` | boolean | When exposed | Whether the post is identified as video. |
| `videoAvailable` | boolean | Always | Whether a public video URL was found. |
| `videoUrl` | string | When a public video URL is found | Selected public media URL. |
| `videoWidth` | number | When DASH metadata is available | Width of the selected video variant. |
| `videoHeight` | number | When DASH metadata is available | Height of the selected video variant. |
| `videoDurationSeconds` | number | When DASH metadata is available | Video duration in seconds. |
| `videoBitrateVariants` | string array | When DASH metadata is available | All public video variant URLs found in the manifest. |
| `mediaLinks` | string array | When public media links exist | Public media and post links exposed by the source. |
| `audioIncluded` | boolean | When an audio track is detected | Whether `includeAudio` was enabled and the manifest contains audio. |
| `includeAudioRequested` | boolean | Always | Whether audio reporting was requested. |
| `hasAudio` | boolean | When DASH metadata is available | Whether the manifest contains at least one audio representation. |
| `thumbnailUrl` | string | When exposed | Public thumbnail URL. |
| `previewImages` | object array | When exposed | Public preview image objects. |
| `mediaMetadata` | object | When DASH metadata is available | Public manifest metadata, including `manifestType`, `manifestUrl`, `audioVariantCount`, and `videoVariants`. |
| `nsfw` | boolean | When exposed | Whether Reddit marks the post mature. |
| `requestedMaxVideos` | integer | Always | Per-source bound recorded for the run. |
| `qualityRequested` | string | Always | Quality preference used for the run. |
| `videoUnavailableReason` | string | When a video URL is not exposed | Public reason the media URL was unavailable. |
| `embedHtml` | string | When an embed is exposed | Public embed markup. |
| `providerName` | string | When an embed is exposed | Public embed provider name. |
| `providerUrl` | string | When an embed is exposed | Public embed provider URL. |
| `embedType` | string | When an embed is exposed | Public embed type. |
| `embedWidth` | number | When an embed is exposed | Public embed width. |
| `embedHeight` | number | When an embed is exposed | Public embed height. |
| `transcriptAvailable` | boolean | When reported | Whether public transcript metadata is available. |
| `pageTitle` | string | When the HTML representation is used | Public page title. |
| `description` | string | When the HTML representation is used | Public HTML description metadata. |
| `openGraphTitle` | string | When the HTML representation is used | Public Open Graph title. |
| `openGraphDescription` | string | When the HTML representation is used | Public Open Graph description. |
| `openGraphImage` | string | When the HTML representation is used | Public Open Graph image URL. |
| `canonicalUrl` | string | When the HTML representation is used | Public canonical page URL. |
| `structuredData` | object array | When JSON-LD is present | Public JSON-LD objects. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |

The example below is the complete saved row from the 2026-10-25 run. The source was one direct post, and the public DASH manifest exposed five video variants and two audio variants.

```json
{
  "recordType": "reddit-video-post",
  "sourceTransport": "reddit-rss",
  "sourceUrl": "https://www.reddit.com/r/HPVictus/comments/1r62x2u/whatchall_think.rss",
  "postId": "1r62x2u",
  "fullname": "t3_1r62x2u",
  "subreddit": "HPVictus",
  "author": "PinkerSplash",
  "title": "Whatchall think?",
  "selftext": "Been gamin like this for a solid 5 months and its held up pretty good submitted by /u/PinkerSplash [link] [comments]",
  "permalink": "https://www.reddit.com/r/HPVictus/comments/1r62x2u/whatchall_think/",
  "postUrl": "https://www.reddit.com/r/HPVictus/comments/1r62x2u/whatchall_think/",
  "videoAvailable": true,
  "videoUrl": "https://v.redd.it/fr20420f3tjg1/CMAF_720.mp4",
  "mediaLinks": [
    "https://www.reddit.com/r/HPVictus/comments/1r62x2u/whatchall_think/",
    "https://v.redd.it/fr20420f3tjg1",
    "https://v.redd.it/fr20420f3tjg1/DASHPlaylist.mpd"
  ],
  "publishedAt": "2026-02-16T07:10:50+00:00",
  "createdIso": "2026-02-16T07:10:50.000Z",
  "requestedMaxVideos": 1,
  "includeAudioRequested": true,
  "scrapedAt": "2026-10-25T21:00:49.750Z",
  "videoWidth": 1280,
  "videoHeight": 720,
  "videoDurationSeconds": 16.5,
  "videoBitrateVariants": [
    "https://v.redd.it/fr20420f3tjg1/CMAF_220.mp4",
    "https://v.redd.it/fr20420f3tjg1/CMAF_270.mp4",
    "https://v.redd.it/fr20420f3tjg1/CMAF_360.mp4",
    "https://v.redd.it/fr20420f3tjg1/CMAF_480.mp4",
    "https://v.redd.it/fr20420f3tjg1/CMAF_720.mp4"
  ],
  "hasAudio": true,
  "audioIncluded": true,
  "mediaMetadata": {
    "manifestType": "mpeg-dash",
    "manifestUrl": "https://v.redd.it/fr20420f3tjg1/DASHPlaylist.mpd",
    "audioVariantCount": 2,
    "videoVariants": [
      {
        "url": "https://v.redd.it/fr20420f3tjg1/CMAF_220.mp4",
        "width": 392,
        "height": 220,
        "bandwidth": 228750,
        "codecs": "avc1.4d401e"
      },
      {
        "url": "https://v.redd.it/fr20420f3tjg1/CMAF_270.mp4",
        "width": 480,
        "height": 270,
        "bandwidth": 421412,
        "codecs": "avc1.4d401e"
      },
      {
        "url": "https://v.redd.it/fr20420f3tjg1/CMAF_360.mp4",
        "width": 640,
        "height": 360,
        "bandwidth": 746634,
        "codecs": "avc1.4d401e"
      },
      {
        "url": "https://v.redd.it/fr20420f3tjg1/CMAF_480.mp4",
        "width": 854,
        "height": 480,
        "bandwidth": 1150616,
        "codecs": "avc1.4d401f"
      },
      {
        "url": "https://v.redd.it/fr20420f3tjg1/CMAF_720.mp4",
        "width": 1280,
        "height": 720,
        "bandwidth": 2132424,
        "codecs": "avc1.4d401f"
      }
    ]
  },
  "qualityRequested": "best",
  "recordId": "reddit-video:7cd5560252e56b3df597"
}
```

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT`.

| Field | Meaning |
| --- | --- |
| `recordType` | Summary discriminator; `runSummary`. |
| `status` | Actor process outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of the dataset: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `source` | Public source label recorded for the run. |
| `sourceCount` | Number of validated post or subreddit sources processed. |
| `requestedMaxVideos` | Per-source record bound used for the run. |
| `itemCount` | Rows saved to the dataset. |
| `foundCount` | Usable public records found before output validation. |
| `diagnosticCount` | Operational issues recorded in the summary. |
| `sourceFailureCount` | Source requests that failed after bounded handling. |
| `outputWriteFailureCount` | Summary-write failures; details remain in the logs. |
| `videoAvailableCount` | Saved rows with a public video URL. |
| `mediaMetadataEnrichedCount` | Rows enriched with public MPEG-DASH manifest metadata. |
| `partialMetadataCount` | Rows with usable post data but incomplete media metadata. |
| `dataAvailable` | Whether at least one usable row was saved. |
| `videoAvailable` | Whether any saved row exposed a public video URL. |
| `sort` | Listing order used for subreddit sources. |
| `timeFilter` | Time window recorded for `top` and `controversial`. |
| `qualityRequested` | Quality preference used for variant selection. |
| `includeAudioRequested` | Whether audio reporting was requested. |
| `proxyConfigured` | Whether a proxy configuration was supplied. |
| `completedAt` | Time the summary was written, in ISO UTC. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Usable rows were saved without an operational problem. |
| `SUCCEEDED` | `PARTIAL` | Rows were saved, but some sources or media requests were incomplete. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | Sources completed cleanly and exposed no usable public records. |
| `FAILED` | `FAILED` | A fatal error or total source failure occurred before any usable row was saved. |

Example `OUTPUT` from the 2026-10-25 run:

```json
{
  "recordType": "runSummary",
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "COMPLETE",
  "source": "https://www.reddit.com",
  "sourceCount": 1,
  "requestedMaxVideos": 1,
  "itemCount": 1,
  "foundCount": 1,
  "diagnosticCount": 0,
  "sourceFailureCount": 0,
  "outputWriteFailureCount": 0,
  "videoAvailableCount": 1,
  "mediaMetadataEnrichedCount": 1,
  "partialMetadataCount": 0,
  "dataAvailable": true,
  "videoAvailable": true,
  "sort": "new",
  "timeFilter": "week",
  "qualityRequested": "best",
  "includeAudioRequested": true,
  "proxyConfigured": true,
  "completedAt": "2026-10-25T21:00:51.409Z"
}
```

### Coverage and limitations

The Actor reads public post and page representations. It does not download media bytes, transcode, merge audio and video, or host files. `videoUrl` and `videoBitrateVariants` are public URLs; availability can change after the run.

`maxVideos` applies per source, so a run with multiple subreddits or post URLs can produce more rows than `maxVideos`. Subreddit sources use the public listing route and a bounded result set; they do not enumerate every post in a community. `quality` selects the closest height present in the public DASH manifest and is also recorded in `qualityRequested`; when no manifest is available, it is only a recorded preference.

DASH-derived dimensions, duration, codecs, and audio counts depend on the manifest Reddit returns. A post can still produce a row with `videoAvailable: true` but without DASH fields. OEmbed, HTML, or JSON fallbacks can expose fewer fields than the RSS and manifest path. Private, deleted, quarantined, login-gated, or region-restricted media is omitted. No CAPTCHA or access control is bypassed.

### Usage and support

Compute, response size, dataset storage, and optional proxy traffic determine Apify cost; the Actor does not charge a separate per-download or per-byte fee. Start with one direct post or a small subreddit source, inspect the dataset and `OUTPUT`, then scale gradually. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/reddit-video-metadata-scraper/issues) to report a problem. Include the run ID, the input used, and the `OUTPUT` summary; do not include tokens, cookies, or private data. This Actor is not affiliated with Reddit, Apify, or any media provider. Use it only for public data and in accordance with the applicable terms, robots guidance, and law. Public posts can contain personal information; use the output only for lawful purposes.

# Actor input Schema

## `postUrls` (type: `array`):

Direct public Reddit post URLs to inspect for exposed video metadata. Supports reddit.com and redd.it hosts.

## `subreddits` (type: `array`):

List of public subreddit names to scan for posts with exposed video metadata, without the r/ prefix.

## `maxVideos` (type: `integer`):

Maximum number of public video-related records to inspect from each supplied post URL or subreddit source.

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

How to sort posts when scraping subreddits.

## `timeFilter` (type: `string`):

Time filter when sorting by 'top' or 'controversial'.

## `quality` (type: `string`):

Preferred video quality label retained in output. The Actor does not transcode or merge media bytes.

## `includeAudio` (type: `boolean`):

Report whether public metadata exposes audio when available. The Actor does not merge tracks.

## `proxyConfiguration` (type: `object`):

Optional Apify proxy configuration for public Reddit requests. Leave unset to run without a proxy.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.reddit.com/r/HPVictus/comments/1r62x2u/whatchall_think/",
    "https://old.reddit.com/r/funny/comments/example/"
  ],
  "subreddits": [
    "funny",
    "gaming"
  ],
  "maxVideos": 10,
  "sort": "hot",
  "timeFilter": "week",
  "quality": "best",
  "includeAudio": true
}
```

# Actor output Schema

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

Dataset containing only usable public Reddit video metadata records. Run diagnostics are stored in OUTPUT and logs.

## `runSummary` (type: `string`):

Fixed OUTPUT key-value record containing run status, source counts, result counts, and bounded diagnostic counts.

# 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 = {
    "postUrls": [
        "https://www.reddit.com/r/HPVictus/comments/1r62x2u/whatchall_think/"
    ],
    "maxVideos": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/reddit-video-metadata-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 = {
    "postUrls": ["https://www.reddit.com/r/HPVictus/comments/1r62x2u/whatchall_think/"],
    "maxVideos": 10,
}

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

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

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

```

## CLI example

```bash
echo '{
  "postUrls": [
    "https://www.reddit.com/r/HPVictus/comments/1r62x2u/whatchall_think/"
  ],
  "maxVideos": 10
}' |
apify call w3crawler/reddit-video-metadata-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/reddit-video-metadata-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/qoykFdBiu3ARkKLh6/builds/eNE2Poz9HolspscHM/openapi.json
