# Facebook Video Downloader - Reels & MP4 Links (`khadinakbar/facebook-video-downloader`) Actor

Download public Facebook videos, Reels, Watch pages, and video posts by URL. Returns direct media links and normalized metadata; optionally saves bounded MP4 files to run storage. No Facebook login or user cookies required. MCP-ready. $0.01/video.

- **URL**: https://apify.com/khadinakbar/facebook-video-downloader.md
- **Developed by:** [Khadin Akbar](https://apify.com/khadinakbar) (community)
- **Categories:** Social media, Videos, MCP servers
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 facebook video results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

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

## How to integrate an Actor?

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

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

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

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

# README

## Facebook Video Downloader

Resolve public Facebook video, Reel, Watch, and post URLs into direct media links, public metadata, and optional bounded MP4 copies in the run key-value store.

### Scope

Use this actor for public Facebook videos you are permitted to save or analyze. It accepts `facebook.com`, `m.facebook.com`, and `fb.watch` links. It does not access private, login-gated, deleted, photo-only, Marketplace, or DRM-protected content.

### Input

```json
{
  "videoUrls": ["https://www.facebook.com/reel/123456789012345/"],
  "maxVideos": 20,
  "providerOrder": "scrapecreators-first",
  "downloadMp4": false,
  "maxFileSizeMB": 200
}
```

`maxVideos` is a hard run-wide cap on saved and billed video records. Enable `downloadMp4` only when you need a stored copy; direct links are returned either way.

### Output

Each dataset row contains `downloadUrl`, optional `hdDownloadUrl`, `hlsManifestUrl`, `storedMp4Url`, `thumbnailUrl`, caption/title, public author information, dimensions, duration, provider, and scrape time. Direct Facebook CDN links can expire.

The `OUTPUT` and `RUN_SUMMARY` records contain the terminal outcome, provider attempts, result counts, warnings, and an estimated PPE cost.

### Pricing

The actor charges $0.00005 per valid run start and $0.01 per validated video result saved to the dataset. Optional MP4 storage is included in the video-result event when a progressive file is available.

### Reliability and legal use

ScrapeCreators is the default public-data provider with SociaVault as fallback. The actor never requests Facebook cookies. It records partial successes honestly and fails only when every provider route fails without useful output. Download only content you own or are authorized to use, and comply with Facebook's terms and applicable law.

# Actor input Schema

## `videoUrls` (type: `array`):

Use this when you have public Facebook video, Reel, Watch, or post URLs and need direct downloadable media links. Example: https://www.facebook.com/reel/123456789012345/. Accepts facebook.com, fb.watch, and m.facebook.com links. Not for private, login-gated, Marketplace, or photo-only posts.

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

Use this to set a hard run-wide cap on saved and billed video records. Defaults to 20; range 1-1000. A Facebook post can contain more than one public video. Not a per-URL cap.

## `providerOrder` (type: `string`):

Use this when you need to select the managed public-data provider order. Defaults to ScrapeCreators then SociaVault fallback. Provider-only choices help diagnose upstream availability. This is not a Facebook login, cookie, or proxy setting.

## `downloadMp4` (type: `boolean`):

Use this when you need the actor to copy an available progressive MP4 into this run's key-value store. Defaults to false; direct media links are always returned. HLS-only, DRM-protected, expired, or oversized media remain link-only. Only download media you are authorized to save.

## `maxFileSizeMB` (type: `integer`):

Use this to cap each optional MP4 file written to storage. Defaults to 200 MB; range 1-500 MB. Media exceeding this cap is not downloaded but its direct link remains in the dataset. Only applies when Save MP4 files is enabled.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.facebook.com/watch/?v=123456789012345"
  ],
  "maxVideos": 20,
  "providerOrder": "scrapecreators-first",
  "downloadMp4": false,
  "maxFileSizeMB": 200
}
```

# Actor output Schema

## `videos` (type: `string`):

Normalized public Facebook video results with direct media links, optional stored MP4 URL, thumbnail, author, caption, dimensions, and provider.

## `output` (type: `string`):

Stable terminal summary for agents and API consumers.

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

Detailed run diagnostics, provider attempts, stop reason, and warnings.

# 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 = {
    "videoUrls": [
        "https://www.facebook.com/reel/123456789012345/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("khadinakbar/facebook-video-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 = { "videoUrls": ["https://www.facebook.com/reel/123456789012345/"] }

# Run the Actor and wait for it to finish
run = client.actor("khadinakbar/facebook-video-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 '{
  "videoUrls": [
    "https://www.facebook.com/reel/123456789012345/"
  ]
}' |
apify call khadinakbar/facebook-video-downloader --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

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