# Facebook Video Downloader (`codenest/facebook-video-downloader`) Actor

✨(Cheapest rate) Enterprise-grade tool for downloading Facebook videos in multiple resolutions. Extracts direct CDN links, preserves metadata, and supports various URL formats for professional content archiving and processing. ✨Facebook Video  Downloader 🎵.

- **URL**: https://apify.com/codenest/facebook-video-downloader.md
- **Developed by:** [CodeNest](https://apify.com/codenest) (community)
- **Categories:** Videos, Social media, Automation
- **Stats:** 5 total users, 3 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$6.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/actors/running/actors-in-store.md#rental-actors

## 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 - Professional Media Extraction Tool 🎬

**Effortlessly download Facebook videos with our enterprise-grade powerful actor! This Apify **Facebook Video Downloader** enables you to batch download Facebook content while preserving high video quality, comprehensive metadata, and direct CDN access. The **Facebook Video Downloader** supports all video types including watch, reel, and post formats.**

***

### 📊 Overview

Need to archive Facebook content or repurpose videos? This **Facebook Video Downloader** actor delivers:

- **Audio/video separation**: Get separate tracks for professional editing
- **Multiple quality options**: From 360p to 1080p HD
- **Full metadata extraction**: Titles, video details, and technical specifications
- **Proxy-ready architecture**: Bypass geo/IP restrictions effortlessly

Perfect for digital marketers 📈, content creators 🎥, researchers 🔍, and app developers 📱!

### 🚀 Core Capabilities/Key Features

#### 🎥 Media Options

- **Multiple Formats**: Video-only MP4 + separate M4A audio
- **Progressive Variants**: Combined audio+video files
- **High-Quality Thumbnails**: Multiple preview images
- **Bulk Processing**: Download multiple videos simultaneously

#### 📋 Metadata Mastery

- **Video Titles**: Complete descriptive titles
- **Quality Details**: Resolution, codecs, bitrates
- **Technical Specifications**: Full format information
- **Direct URLs**: Access to Facebook CDN sources

#### ⚙️ Advanced Tech Features

- **DASH Streaming Support**: Modern streaming format extraction
- **Multiple Codecs**: VP9, H.264, AAC audio
- **Quality Variants**: 4+ resolution options per video
- **CDN Optimization**: Multiple server access points

***

### ⚙️ Input Configuration

Simply enter Facebook video URLs in the Input Section, then click "start" and wait for results. Use this **Facebook Video Downloader** with URLs like:

```json
{
  "post_urls": [
    {
      "url": "https://web.facebook.com/watch/?v=783325287492075",
      "method": "GET"
    }
  ]
}
```

#### 📋 Input Specifications

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `post_urls` | Array | Yes | Facebook video URLs to process |
| `url` | String | Yes | Valid Facebook video URL (watch/, reel/, post formats) |
| `method` | String | Yes | HTTP method (GET recommended) |

***

### 📤 Output Structure

The **Facebook Video Downloader** provides comprehensive output:

```json
[
  {
    "url": "https://www.facebook.com/watch/?v=783325287492075",
    "title": "Fallout – Season Two Teaser Trailer | Prime Video India",
    "Video_download_url": "https://video-ord5-3.xx.fbcdn.net/o1/v/t2/f2/m366/AQNjaDL3vScMLe18cLkZdUlDWPDguTZpkr8FPyoDDVsHY9znX4dy_5g1vNBbWs0UMp23rm-6yJXDZ3hdgwzJY6M9G3egOFM1Asa1jiZ6zGnqvw.mp4",
    "audio_download_url": "https://video-ord5-1.xx.fbcdn.net/o1/v/t2/f2/m412/AQPd0dM3jFV-5yAp6leVfTA5mEtM7xEL8Saon4i2r3SGxFTGz3mFr6gjXxia6bLhHir095IjBf2rj_vUcazFac3yC5TY-bOCQtPA4GE.mp4",
    "thumbnail_url": "https://scontent-ord5-3.xx.fbcdn.net/v/t15.5256-10/536625016_1422113702239824_8997957425835878271_n.jpg",
    "format_id": "hd",
    "ext": "mp4",
    "video_variants": [
      {
        "height": 1080,
        "width": 1920,
        "url": "https://video-ord5-1.xx.fbcdn.net/o1/v/t2/f2/m366/AQM1X6B2FbczJnj1TlqP2ITCNuq7P-1g_NBYw7NkuLEIVIx43AHGNf23yLaUVMizYeKI0AGi9YUEeSF2xluw6hQ0ZnXrMwRRbx1vawFUa89XaA.mp4",
        "format_id": "1558135922036878v",
        "ext": "mp4",
        "vcodec": "vp09.00.40.08.00.01.01.01.00",
        "acodec": "none",
        "protocol": "https",
        "tbr": 2066.965,
        "kind": "video_only",
        "note": "DASH video"
      }
    ]
  }
]
```

#### 📝 Output Field Documentation

**Basic Metadata**
| Field | Description |
|-------|-------------|
| `url` | Original Facebook video URL |
| `title` | Complete video title/description |
| `format_id` | Quality identifier (hd, sd, etc.) |
| `ext` | Container format (mp4, m4a) |

**Media Assets**
| Field | Description |
|-------|-------------|
| `Video_download_url` | Primary video download URL |
| `audio_download_url` | Separate audio stream URL |
| `thumbnail_url` | High-quality preview image |

**Quality Options**
| Field | Description |
|-------|-------------|
| `video_variants` | Array of video-only streams |
| `video_with_audio_variants` | Combined audio+video files |
| `audio_variants` | Audio-only streams |
| `thumbnails` | Multiple thumbnail images |

**Technical Specifications**
| Field | Description |
|-------|-------------|
| `height` | Vertical resolution in pixels |
| `width` | Horizontal resolution in pixels |
| `vcodec` | Video codec (VP9, H.264) |
| `acodec` | Audio codec specification |
| `tbr` | Average bitrate in kbps |
| `protocol` | Transfer protocol |

***

### 📈 Quality Tiers Available

This **Facebook Video Downloader** automatically detects and provides multiple quality options:

1. **Full HD** - 1920x1080 (1080p) with VP9 codec support
2. **High Definition** - 1280x720 (720p) multiple variants
3. **Standard Definition** - 960x540 (540p) balanced quality
4. **Mobile Optimized** - 640x360 (360p) for bandwidth conservation

Each quality tier includes technical specifications for professional editing workflows using this **Facebook Video Downloader**.

***

### 🔧 Technical Features

#### 🎞️ Advanced Format Support

- **DASH video streaming** format extraction
- **Multiple codec support** (VP9, H.264, AAC)
- **Separate audio/video stream** access
- **Progressive download** options

#### 📊 Metadata Extraction

- **Complete title information** extraction
- **Multiple thumbnail** variants
- **Technical specifications** (bitrate, codec, resolution)
- **Direct CDN URLs** for reliable downloads

#### ⚡ Reliability Features

- **Direct Facebook CDN access** for maximum reliability
- **Multiple quality fallback** options
- **Comprehensive error handling**
- **URL validation and normalization**

***

### 💼 Use Cases

- **Content Creators** – Archive and repurpose Facebook videos
- **Digital Marketers** – Analyze competitor video content
- **Researchers** – Study social media video trends
- **App Developers** – Build video aggregation applications
- **Educators** – Save educational content for offline use
- **Journalists** – Archive news and event coverage

#### 🏆 Why Choose Our Facebook Video Downloader?

- **High-Quality Downloads**: Access to original Facebook video quality
- **Comprehensive Metadata**: Get all video details in structured format
- **Reliable Performance**: Stable extraction from Facebook's CDN
- **Regular Updates**: Maintained for Facebook platform changes
- **SEO Optimized**: This **Facebook Video Downloader** is designed for visibility

#### ⚠️ Limitations

- Only works with publicly accessible Facebook videos
- May be subject to Facebook's rate limiting policies
- Requires valid video URLs (watch/, reel/, post formats)

***

### 🔗🛠 Related Actors (Full Content Scraping Suite)

Explore our full scraping suite for enhanced social media scraping:

#### 📺 Video Scrapers:

- [Instagram Reels Downloader](https://apify.com/codenest/instagram-reels-downloader)
- [YouTube Video Scraper](https://apify.com/codenest/youtube-video-scraper)
- [YouTube Video Extractor](https://apify.com/codenest/youtube-video-extractor)

#### 🎵 Facebook Scrapers:

- [Facebook Reels Downloader](https://apify.com/codenest/facebook-reels-downloader)

***

### 📧 Need Customization?

Want \*\*higher resolutions, \*\*batch downloads, or \**metadata enhancements* for your **Facebook Video Downloader**?

✉️ Email **<codenest2.0@gmail.com>** for tailored solutions!

***

*Note: The **Facebook Video Downloader** is designed for legitimate content archiving and analysis purposes. Always respect copyright and Facebook's terms of service when using this tool.*

# Actor input Schema

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

List of public Facebook video post URLs.

## Actor input object example

```json
{
  "post_urls": [
    {
      "url": "https://web.facebook.com/watch/?v=783325287492075"
    },
    {
      "url": "https://web.facebook.com/watch/?v=1374855850246642"
    }
  ]
}
```

# 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://web.facebook.com/watch/?v=783325287492075"
        },
        {
            "url": "https://web.facebook.com/watch/?v=1374855850246642"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("codenest/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 = { "post_urls": [
        { "url": "https://web.facebook.com/watch/?v=783325287492075" },
        { "url": "https://web.facebook.com/watch/?v=1374855850246642" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("codenest/facebook-video-downloader").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 '{
  "post_urls": [
    {
      "url": "https://web.facebook.com/watch/?v=783325287492075"
    },
    {
      "url": "https://web.facebook.com/watch/?v=1374855850246642"
    }
  ]
}' |
apify call codenest/facebook-video-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,codenest/facebook-video-downloader"
        }
    }
}

```

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/M7WbRaFC4eUdrEiPv/builds/KjKTI5WlLN15XmtTf/openapi.json
