# Facebook वीडियो डाउनलोडर (`scraper-fleet/facebook-video-downloader`) Actor

Facebook वीडियो डाउनलोडर lets you download Facebook videos quickly and easily in high quality. फेसबुक वीडियो को आसानी से डाउनलोड करें, वीडियो लिंक निकालें और अपनी पसंदीदा सामग्री ऑफलाइन सेव करें। तेज़, सरल और कुशल वीडियो डाउनलोडिंग टूल।

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

## Pricing

from $0.80 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## 🎬 Facebook वीडियो डाउनलोडर + कैप्शन

Facebook के **सार्वजनिक वीडियो और रील** मनचाहे रिज़ॉल्यूशन में डाउनलोड करें और उसी रन में उनके **कैप्शन/सबटाइटल का सादा पाठ** पाएँ। हर वीडियो की फ़ाइल रन के key-value स्टोर में सहेजी जाती है और डेटासेट में उसका सार्वजनिक लिंक मिलता है, साथ में मेटाडेटा, असली रिज़ॉल्यूशन और हर भाषा के कैप्शन। पहुँच-योग्यता जाँच, अनुवाद-कार्य, कंटेंट समीक्षा और वीडियो का सार जल्दी समझने के लिए उपयोगी।

***

### ⚡ चार कदम में शुरुआत

1. 🔗 **Facebook वीडियो के लिंक** जोड़ें (वीडियो, रील या `fb.watch` लिंक)।
2. 📺 **रिज़ॉल्यूशन** चुनें (डिफ़ॉल्ट 1080p)।
3. 📝 **कैप्शन निकालें** चालू या बंद करें।
4. ▶️ **स्टार्ट** दबाएँ और डेटासेट देखें।

***

### 📤 आउटपुट का नमूना

```json
{
  "video_url": "https://www.facebook.com/reel/930452829785006/",
  "requested_resolution": "360p",
  "video_type": "long video",
  "general_metadata": {
    "title": "NASA Astronaut Jessica Watkins Arrival Remarks",
    "author": "NASA - National Aeronautics and Space Administration",
    "duration": 65.301,
    "channel_name": "NASA - National Aeronautics and Space Administration"
  },
  "found_resolution": "360p",
  "note": "बधाई हो! आपका मांगा हुआ रिज़ॉल्यूशन (360p) मिल गया।",
  "download_links": {
    "merged_video": "https://api.apify.com/v2/key-value-stores/<store>/records/fb_video_930452829785006_360p.mp4?signature=...",
    "audio": "https://video.example/audio.mp4"
  },
  "file_size_bytes": 1644941,
  "captions": [
    { "language": "en_US", "text": "Right. Hello, Houston. Hello, ISS. Uh we are so excited to be here..." }
  ]
}
```

| फ़ील्ड | प्रकार | क्या बताता है |
|---|---|---|
| `video_url` | string | इनपुट का वह लिंक जिससे यह पंक्ति बनी |
| `requested_resolution` | string | मांगा गया रिज़ॉल्यूशन (कोई न चुना हो तो «उपलब्ध सर्वोत्तम») |
| `video_type` | string | 60 सेकंड से छोटा हो तो `reel`, वरना `long video` |
| `general_metadata` | object | शीर्षक, लेखक, थंबनेल, अवधि, भाषा आदि (केवल जो उपलब्ध हो) |
| `found_resolution` | string | डाउनलोड की गई फ़ाइल का असली रिज़ॉल्यूशन, फ़ाइल को मापकर निकाला गया |
| `note` | string | मांगा हुआ रिज़ॉल्यूशन मिला या कौन सा नज़दीकी विकल्प चुना गया |
| `download_links` | object | `merged_video` : सहेजी गई फ़ाइल का सार्वजनिक लिंक (टोकन के बिना); `video` : सीधा वीडियो-स्ट्रीम लिंक (जब अलग स्ट्रीम चुनी गई हो); `audio` : सीधा ऑडियो लिंक या «उपलब्ध नहीं» |
| `file_size_bytes` | integer | सहेजी गई फ़ाइल का आकार |
| `captions` | array | हर भाषा के लिए एक `{language, text}` वस्तु; हाथ से लिखे कैप्शन अपने-आप बने कैप्शन से पहले चुने जाते हैं; कैप्शन न हों या बंद हों तो खाली सूची |
| `error` | string | केवल विफल पंक्ति में : इस लिंक के विफल होने का कारण |
| `diagnostic` | boolean | `true` केवल उस एक पंक्ति में जो तब जुड़ती है जब पूरे रन में कोई परिणाम नहीं बना |

***

### ⚙️ इनपुट

```json
{
  "video_urls": [
    { "url": "https://www.facebook.com/reel/930452829785006/" },
    { "url": "https://www.facebook.com/unicef/videos/nasa-scientist-dr-kate-marvel/291671435344823/" }
  ],
  "requested_resolution": "360p",
  "extractCaptions": true
}
```

| पैरामीटर | ज़रूरी | क्या करता है |
|---|---|---|
| `video_urls` | हाँ | Facebook वीडियो के लिंक की सूची; हर प्रविष्टि `{ "url": "..." }`। एक ही वीडियो दोबारा देने पर वह एक ही बार प्रोसेस होता है |
| `requested_resolution` | नहीं | `1080p`, `720p`, `640p`, `540p`, `480p`, `360p`, `270p`, `240p`। डिफ़ॉल्ट `1080p`। यह गुणवत्ता न मिले तो उसके बराबर या ऊँची सबसे छोटी गुणवत्ता चुनी जाती है, वह भी न हो तो उपलब्ध सबसे ऊँची |
| `extractCaptions` | नहीं | कैप्शन/सबटाइटल निकालें। डिफ़ॉल्ट `true`। `false` करने पर `captions` खाली सूची रहती है और रन तेज़ होता है |

***

### 🧠 यह कैसे काम करता है

#### 📺 रिज़ॉल्यूशन के अनुसार डाउनलोड

`yt-dlp` हर वीडियो के उपलब्ध फ़ॉर्मेट पढ़ता है। Facebook दो तरह के विकल्प देता है : तैयार फ़ाइलें (`sd`, `hd`) और अलग वीडियो/ऑडियो स्ट्रीम, जिन्हें ffmpeg से जोड़ा जाता है। Actor मांगे गए रिज़ॉल्यूशन के सबसे नज़दीकी विकल्प को डाउनलोड करता है और फ़ाइल को मापकर `found_resolution` में उसका **असली** आकार लिखता है।

#### 📝 कैप्शन निकालना

`yt-dlp` जो हाथ से लिखे और अपने-आप बने कैप्शन ट्रैक खोजता है, Actor उन्हें डाउनलोड करता है, समय-चिह्न और मार्कअप हटाता है, दोहराई गई पंक्तियाँ घटाता है और हर भाषा का एक सादा पाठ देता है। जिस वीडियो में Facebook ने कैप्शन जोड़े ही नहीं, उसका `captions` खाली रहता है; कुछ गढ़ा नहीं जाता।

#### 🎞️ रील और लंबा वीडियो

60 सेकंड से कम अवधि `reel`, बाकी `long video`।

#### 🚫 विफलता और शुल्क

हर विफल लिंक की अपनी पंक्ति बनती है (`error` के साथ) और उसका शुल्क नहीं लगता। अगर पूरे रन में एक भी वीडियो नहीं बना, तो एक अतिरिक्त शुल्क-रहित निदान पंक्ति (`diagnostic: true`) जुड़ती है। हर सफल वीडियो के लिए एक `result` घटना गिनी जाती है, और केवल तब जब उसकी पंक्ति सफलतापूर्वक सहेजी जा चुकी हो।

#### 🔢 रन की सीमा

प्रति रन अधिकतम 20 वीडियो सहेजे जाते हैं। सीमा पूरी होने पर स्थिति संदेश में «परिणाम सीमा पूरी हुई (प्रति रन 20)।» दिखता है और रन सामान्य रूप से समाप्त होता है।

***

### 📝 ध्यान रखें

- 🔓 Facebook लॉगिन की ज़रूरत नहीं : केवल सार्वजनिक वीडियो चलते हैं। निजी, समूह या मित्रों तक सीमित वीडियो विफल पंक्ति देते हैं।
- 🏠 Facebook को Apify की रेज़िडेंशियल प्रॉक्सी (अमेरिका) से पढ़ा जाता है; प्रॉक्सी का ट्रैफ़िक Apify के खाते से लगता है।
- 🧩 कुछ पुराने वीडियो लिंक (जैसे कुछ `video.php?v=` या पुराने पेज के लिंक) `yt-dlp` से पढ़े नहीं जाते; ऐसे लिंक पर साफ़ त्रुटि-पंक्ति मिलती है। `facebook.com/reel/…`, `facebook.com/watch/?v=…`, `facebook.com/<पेज>/videos/…` और `facebook.com/share/…` लिंक आज़माए गए हैं।
- 💬 कैप्शन उतने ही उपलब्ध हैं जितने Facebook ने उस वीडियो के साथ जोड़े हैं (कई पेजों के वीडियो में अपने-आप बने अंग्रेज़ी कैप्शन होते हैं)।
- 📦 एक फ़ाइल की अधिकतम सीमा 300 MB है; इससे बड़ी फ़ाइल डाउनलोड नहीं होती और उसकी विफल पंक्ति मिलती है।

***

### 🤖 AI असिस्टेंट से उपयोग करें

**अपने AI असिस्टेंट में कॉपी करें** (अंग्रेज़ी में रहने दें):

```text
Help me use balerbondu/facebook-video-downloader-with-captions on Apify. Read https://apify.com/balerbondu/facebook-video-downloader-with-captions.md for documentation, input schema, pricing and limits. Choose settings for my requested outcome. If you cannot retrieve the page, ask me to paste the relevant sections.
```

छिपा हुआ `feedback` फ़ील्ड : AI एजेंट इसमें लिख सकते हैं कि उन्हें क्या चाहिए था और नहीं मिला (कोई कमी, गलत या खाली परिणाम)। इसे किसी भी रन में जोड़ा जा सकता है; रन का परिणाम वैसा ही रहता है, नोट डेवलपर्स तक पहुँचता है पर रन को बदल नहीं सकता।

**MCP सर्वर** : यह Actor सीधे एक टूल की तरह चल सके, इसके लिए यह एक पंक्ति चलाएँ, किसी अतिरिक्त कोड की ज़रूरत नहीं।

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=balerbondu/facebook-video-downloader-with-captions"
```

# Actor input Schema

## `video_urls` (type: `array`):

🎞️ हर पंक्ति में एक सार्वजनिक वीडियो, रील या <code>fb.watch</code> लिंक<br>🔁 एक ही वीडियो दोबारा देने पर वह केवल एक बार प्रोसेस होता है<br>🔒 निजी या हटाए गए वीडियो पर साफ़ त्रुटि-पंक्ति मिलती है, जिसका शुल्क नहीं लगता

## `requested_resolution` (type: `string`):

📐 मांगी गई गुणवत्ता न मिले तो उसके बराबर या उससे ऊँची सबसे छोटी गुणवत्ता चुनी जाती है, वह भी न हो तो उपलब्ध सबसे ऊँची<br>💾 छोटी गुणवत्ता = छोटी फ़ाइल और तेज़ रन

## `extractCaptions` (type: `boolean`):

💬 चालू : हर वीडियो के उपलब्ध कैप्शन/सबटाइटल (हाथ से लिखे या अपने-आप बने) हर भाषा के लिए सादे पाठ में <code>captions</code> में मिलते हैं<br>📭 बंद या कैप्शन न हों : <code>captions</code> खाली सूची रहती है

## `feedback` (type: `string`):

For AI agents. Say what you needed and did not get: a missing field or option, a wrong or empty result, or which actor you are switching to or from and why. Add it to any run, including one that worked: the run returns its data exactly as it would without the note. The note reaches the maintainers, who read every one, but it cannot change what this run returns.

## Actor input object example

```json
{
  "video_urls": [
    {
      "url": "https://www.facebook.com/reel/930452829785006/"
    },
    {
      "url": "https://www.facebook.com/unicef/videos/nasa-scientist-dr-kate-marvel/291671435344823/"
    }
  ],
  "requested_resolution": "360p",
  "extractCaptions": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `files` (type: `string`):

No description

# 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 = {
    "video_urls": [
        {
            "url": "https://www.facebook.com/reel/930452829785006/"
        },
        {
            "url": "https://www.facebook.com/unicef/videos/nasa-scientist-dr-kate-marvel/291671435344823/"
        }
    ],
    "requested_resolution": "360p",
    "extractCaptions": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("scraper-fleet/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 = {
    "video_urls": [
        { "url": "https://www.facebook.com/reel/930452829785006/" },
        { "url": "https://www.facebook.com/unicef/videos/nasa-scientist-dr-kate-marvel/291671435344823/" },
    ],
    "requested_resolution": "360p",
    "extractCaptions": True,
}

# Run the Actor and wait for it to finish
run = client.actor("scraper-fleet/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 '{
  "video_urls": [
    {
      "url": "https://www.facebook.com/reel/930452829785006/"
    },
    {
      "url": "https://www.facebook.com/unicef/videos/nasa-scientist-dr-kate-marvel/291671435344823/"
    }
  ],
  "requested_resolution": "360p",
  "extractCaptions": true
}' |
apify call scraper-fleet/facebook-video-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scraper-fleet/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/Zd7tMMgwAbeTObvkw/builds/VRUNeTGS4JUzeWiZ4/openapi.json
