# Facebook Video Downloader: MP4, Reels, Audio (`automation_craft/facebook-video-downloader`) Actor

Facebook video downloader by URL, no login: paste reel, watch, share or fb.watch links, or name pages and hashtags. Each video gives HD and SD MP4 links with sound, the audio link, title, owner, plays and link expiry. Add stored MP4 or MP3 files, ZIP or S3 upload. JSON, CSV or API, pay per video.

- **URL**: https://apify.com/automation_craft/facebook-video-downloader.md
- **Developed by:** [Automation Craft](https://apify.com/automation_craft) (community)
- **Categories:** Social media, Videos, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.84 / 1,000 videos

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 Video Downloader: MP4, Reels, Audio

**Facebook video downloader by URL, with no login and no cookies.** Paste the links of public Facebook videos and reels, or name a page or a hashtag, and get one row per video with the HD and SD MP4 file links (both with sound), the audio only link, the title, the owner, the publish time, the duration, the play count, the thumbnail and the time the links stop working. Download Facebook video files in bulk as a Facebook MP4 link, store them in Apify storage, convert the Facebook video to MP3 or another audio format, bundle them in one ZIP or send them to your own S3 or R2 bucket. It works as a Facebook reels downloader and an FB video downloader for whole lists, and as a Facebook video downloader API for n8n, Make, Zapier or your own code. A removed, private, live or repeated link gets a free status row. Each video is charged once per run, from $2.84 per 1,000 videos.

#### What it is for

- **Archives and backups**: save the reels of a page, or a list of videos, as MP4 files that stay in your Apify storage after Facebook's own links expire.
- **Content and clipping teams**: the HD file with sound, the audio track and the title of every video in one table, ready to edit or repost the videos you have the rights to.
- **Audio work**: the audio track as M4A, or converted to MP3, OGG, Opus or WAV, with the title and owner written into the file.
- **Automation users**: one row per video with direct file links, ready for n8n, Make, Zapier, Google Drive, a database or your own bucket.

### Quick start

1. Paste your links into **Video links**, one per line: reels, `/watch/?v=` links, a page's video links, video posts, share links or `fb.watch` links. Or name pages in **Pages (their reels)** or tags in **Hashtags**.
2. Optional: turn on **Store the video file** (pick a quality) or **Store the audio file** (pick a format such as MP3). Both are paid add-ons, off by default.
3. Click **Start**. Download the rows as JSON, CSV or Excel, or read them through the API. The MP4 links are in `videoUrl`, `videoUrlHd` and `videoUrlSd`; stored files are in `storedVideoUrl` and `storedAudioUrl`.

### What you get

One row per video (`type: "video"`), the Video event. Rows of a post with several videos come one per video. Fill rates were measured 2026-11-09 on 33 public video links (31 distinct live videos of news, brand, sports, music, science and small creator pages, 19 reels and 13 long videos, 4 live replays, 1 removed video) through the two reads every link gets (the video's embed and its end card); the file sizes and link lifetimes on the 32 videos with files.

| Field | What it holds | Filled |
|---|---|---|
| `videoId`, `kind`, `url` | Facebook's number of the video, `reel` or `video`, and its own link | every row |
| `inputUrl`, `position` | the link you gave and its place in your input | every row |
| `videoUrl` | the best file with sound: the HD file, else the SD file | 30 of 33 |
| `videoUrlHd`, `videoQualityHd`, `videoCodecHd` | the HD MP4 with sound, its quality class (`720p`, `1080p` on some videos) and codec | 30 of 33 |
| `videoUrlSd`, `videoQualitySd` | the SD MP4 with sound (the 360p class) | 30 of 33 |
| `audioUrl`, `audioCodec`, `audioBitrate` | the audio only track, an M4A file (AAC) | 30 of 33 |
| `videoBytesHd`, `videoBytesSd`, `audioBytes` | the exact size of each file in bytes (with `includeFileSizes`, on by default) | 96 of 96 files |
| `linksExpireAt` | when Facebook's file links on the row stop working (UTC) | 32 of 32 videos with files |
| `videoVariants` | every video only tier Facebook serves (no sound): `quality`, `width`, `height`, `codec`, `bitrate`, `approxBytes`, `url` (with `includeVideoVariants`, on by default) | 30 of 33 |
| `title`, `caption`, `hashtags` | the title (the caption when there is none), the video's text and the hashtags written in it | 30 of 33 |
| `ownerName`, `ownerId`, `ownerUsername`, `ownerUrl` | the page or profile that posted the video | 32 of 33 |
| `ownerType`, `ownerPictureUrl` | the owner's kind and picture | where Facebook names them |
| `publishedAt` | when the video was published (UTC) | 32 of 33 |
| `durationSeconds` | the length in seconds | 32 of 33 |
| `playCount` | Facebook's play count | 32 of 33 |
| `thumbnailUrl` | the preview image | 32 of 33 |
| `width`, `height` | the frame size | 30 of 33 |
| `isLiveReplay`, `isPremiere` | a recorded live broadcast, a premiere | every row (the live flag was read on 32 of 33) |
| `captionsUrl` | Facebook's own captions file (an .srt) where the video has one | 8 of 33 (the videos with captions) |
| `captionsText`, `captionsStatus` | with `includeCaptions`: the text of that captions file (`ok`, `truncated`, `no_captions`, `failed`, `not_read`) | where the video has captions |
| `reactionCount`, `reactions`, `commentCount`, `shareCount`, `viewCount`, `engagementStatus` | with `includeEngagement`: reactions (total and by type), comments, shares and views from the video's own page | where Facebook shows them |
| `dashManifest` | with `includeDashManifest`: the DASH manifest (XML) Facebook's player reads | 30 of 33 |
| `storedVideoUrl`, `storedVideoKey`, `storedVideoBytes`, `storedVideoQuality`, `storedVideoCodec`, `storedVideoStatus` | with `storeVideo`: the Apify link of the stored video file and its details | every row of a run that stores |
| `storedAudioUrl`, `storedAudioKey`, `storedAudioBytes`, `storedAudioFormat`, `storedAudioStatus` | with `storeAudio`: the Apify link of the stored audio file and its details | every row of a run that stores |
| `bucketVideoUrl`, `bucketVideoKey`, `bucketVideoBytes`, `bucketVideoStatus` (and the `bucketAudio...` fields) | with the S3 settings: the file's address in your own bucket | every row of a run that uploads |
| `foundVia`, `foundIn` | for a video found on a page or a hashtag: `page` or `hashtag`, and its name | rows of a page or hashtag |
| `postMediaShown`, `postMediaTotal` | for an album post whose page shows only part of its photos and videos to a reader without a login: how many it showed and how many the album holds (the others are not read) | rows of such an album post |
| `readVia`, `scrapedAt` | which read gave the files (`embed` or `page`), and when the row was made | every row |
| `partial`, `partialReason` | a row whose file links were read but not the video's details (title, owner, plays): delivered free, with the reason | partial rows |
| `linkDone` | `true` on the row that closes its input link (a restarted run does not read that link again) | every row |

**Photo rows** (`type: "photo"`, with **Read photo links too**): `photoId`, `url`, `inputUrl`, `position`, `imageUrl` (the largest image link Facebook shows without a login), `width`, `height`, `altText`, the post it belongs to (`postId`, `postUrl`, `publishedAt`, `caption`), its owner (`ownerName`, `ownerId`), `postMediaShown` and `postMediaTotal` for an album post shown in part, `linkDone` and `scrapedAt`.

What fell short in the measure: 1 removed video (it gets a free row), 1 reel whose owner does not allow embedding (the video's own page then gives its files, as it did for 31 of 32 videos when read alone), 1 read that timed out once (the next read answered), and 2 videos whose end card carries no title.

A stored file's status is `stored`, or says why it was not stored and not charged: `too_large` (over your size cap), `failed`, `no_file` (Facebook serves no file of the quality asked), `charge_limit`, `work_allowance`, `not_stored` (the run stopped first) or `bucket_only` (with `s3Only`); an upload says `uploaded`.

Facebook's HD file is the 720p class on most videos (22 of 32), the 1080p class on some (6 of 32, four of them VP9 and one AV1, codecs some editors do not open; `videoCodecHd` names it), and on recorded live broadcasts it is no HD: the same file size as the SD one. The highest video only tier in `videoVariants` was 1080p on 28 of 32 videos (1440p on 1, 720p on 2, 432p on 1).

#### Example output row

The Nike reel `2166091230582141`, read on the platform on 2026-11-09 with `storeVideo`, `storeAudio` (MP3) and `includeEngagement` on (long Facebook links shortened with "..."):

```json
{
  "type": "video",
  "videoId": "2166091230582141",
  "kind": "reel",
  "url": "https://www.facebook.com/reel/2166091230582141/",
  "inputUrl": "https://www.facebook.com/reel/2166091230582141/",
  "position": 1,
  "title": "Leave your limits at the surface. #JustDoIt",
  "caption": "Leave your limits at the surface. #JustDoIt",
  "hashtags": ["JustDoIt"],
  "ownerName": "Nike",
  "ownerId": "100044541544829",
  "ownerUsername": "nike",
  "ownerUrl": "https://www.facebook.com/nike",
  "publishedAt": "2025-09-15T16:01:55.000Z",
  "durationSeconds": 31,
  "playCount": 3793578,
  "thumbnailUrl": "https://scontent-atl3-2.xx.fbcdn.net/v/t51.82787-10/549104239_...jpg?...",
  "width": 1080,
  "height": 1920,
  "isLiveReplay": false,
  "isPremiere": false,
  "videoUrl": "https://video-atl3-1.xx.fbcdn.net/o1/v/t2/f2/m86/AQNrPdap...mp4?...",
  "videoUrlHd": "https://video-atl3-1.xx.fbcdn.net/o1/v/t2/f2/m86/AQNrPdap...mp4?...",
  "videoQualityHd": "720p",
  "videoCodecHd": "h264",
  "videoBytesHd": 3205805,
  "videoUrlSd": "https://video-atl3-1.xx.fbcdn.net/o1/v/t2/f2/m86/AQN_d55O...mp4?...",
  "videoQualitySd": "360p",
  "videoBytesSd": 997443,
  "audioUrl": "https://video-atl3-2.xx.fbcdn.net/o1/v/t2/f2/m86/AQNDA-Gk...mp4?...",
  "audioCodec": "aac",
  "audioBitrate": 78518,
  "audioBytes": 295007,
  "linksExpireAt": "2026-11-10T16:33:48.000Z",
  "videoVariants": [
    { "quality": "1080p", "width": 1080, "height": 1920, "codec": "av1", "bitrate": 1033333, "approxBytes": 4004165, "hasAudio": false, "url": "https://video-atl3-1.xx.fbcdn.net/o1/v/t2/f2/m367/AQOW09n6...mp4?..." }
  ],
  "captionsUrl": null,
  "reactionCount": 8634,
  "reactions": null,
  "commentCount": 2748,
  "shareCount": 1200,
  "viewCount": null,
  "engagementStatus": "ok",
  "storedVideoUrl": "https://api.apify.com/v2/key-value-stores/3H7O26lqtwPib86Jx/records/2166091230582141.mp4?signature=...",
  "storedVideoKey": "2166091230582141.mp4",
  "storedVideoBytes": 3205805,
  "storedVideoQuality": "720p",
  "storedVideoCodec": "h264",
  "storedVideoStatus": "stored",
  "storedAudioUrl": "https://api.apify.com/v2/key-value-stores/3H7O26lqtwPib86Jx/records/2166091230582141-audio.mp3?signature=...",
  "storedAudioKey": "2166091230582141-audio.mp3",
  "storedAudioBytes": 480545,
  "storedAudioFormat": "mp3",
  "storedAudioStatus": "stored",
  "readVia": "embed",
  "scrapedAt": "2026-11-09T06:30:23.086Z"
}
```

The real row lists 7 video only tiers (1080p down to 270p); one is shown here.

#### Free rows

- **Status rows** (`type: "status"`) answer every link that does not become a video row, with its `position`: `video_not_available` (removed, private, restricted or never published), `live_broadcast_in_progress` (still on air), `post_without_video`, `post_media_not_all_shown` (an album post whose page shows only part of its photos and videos, none of them a video), `login_required` (Facebook asked for a login on every address tried), `link_unresolved` (a share link that leads to something this Actor does not read), `duplicate` (another link of the run already delivered the video), `lookup_failed` (Facebook did not answer; run it again), `link_not_read` (values that are not a video link, one row per kind), `skipped` (links a stopped run did not read) and `invalid` (the input could not be used; nothing was fetched and only the run's start fee was charged).
- **Coverage rows** (`type: "coverage"`) close each page or hashtag, a failed one too: `videosFound`, `complete` and why the walk ended.
- **The summary row** (`type: "summary"`) closes every run with its counters and what was charged.
- A video whose files were read but whose details (title, owner, play count) were not is delivered free and marked `partial`.

#### How long the links work, and what a stored file gives

Facebook's file links are signed and stop working at `linksExpireAt`: measured 32 to 108 hours after the read, in two groups: 104 to 108 hours, and about 32 to 36 hours for the 1080p class files and the live replay files. Run the video again for fresh links.

A stored file (`storeVideo` or `storeAudio`) is a copy in Apify storage, so its link does not depend on Facebook's. It sits in the run's own key-value store, kept for your plan's data retention, or, with **Named store for the files** (`storageName`), in a named store of your account, kept until you delete it. The link is Apify's public record link (with its signature), so it opens without an Apify token. It does not answer Range requests: download the whole file rather than stream or seek in it.

### Links it reads

| Link | Example | Read how |
|---|---|---|
| Reel | `facebook.com/reel/2166091230582141/`, `/reels/...` | the reel's embed and end card |
| Watch and video | `facebook.com/watch/?v=...`, `/watch/live/?v=...`, `facebook.com/nba/videos/1587340782718608/`, a bare video number | the video's embed and end card; its own page when the owner does not allow embedding |
| Mobile and outgoing links | `m.facebook.com/...`, `web.facebook.com/...`, `l.facebook.com/l.php?u=...` | the same video |
| Video post | `facebook.com/nytimes/posts/...`, a public group post, `permalink.php`, `story.php` | the post's page, then each video it carries |
| Share and short links | `facebook.com/share/r/...`, `/share/v/...`, `/share/p/...`, `fb.watch/...` | the link's first redirect names the video |
| Page (in **Pages**) | `facebook.com/natgeo`, `natgeo`, `@natgeo`, a page number | the page's Reels tab, newest first |
| Hashtag (in **Hashtags**) | `comedy`, `#comedy`, `facebook.com/hashtag/comedy` | the hashtag's top posts, then its recent posts; every post with a video gives a row (an album post gives the videos its feed card shows) |

Profile, group and story links and photo links in **Video links** get a free `link_not_read` row (photo links are read with **Read photo links too**).

### How much does it cost to download Facebook videos?

Pay per event: you pay for each video delivered and for the files you ask to store; status rows, coverage rows and the summary are free.

| Event (per 1,000) | Free plan | Bronze | Silver | Gold |
|---|---|---|---|---|
| Video | $3.98 | $3.64 | $3.29 | $2.84 |
| Stored video | $21.00 | $19.20 | $17.40 | $15.00 |
| Stored audio | $4.20 | $3.84 | $3.48 | $3.00 |
| Stored megabyte | $0.84 | $0.77 | $0.70 | $0.60 |
| Uploaded megabyte | $3.50 | $3.20 | $2.90 | $2.50 |
| Photo | $3.98 | $3.64 | $3.29 | $2.84 |
| Actor start (per run) | $0.008 | $0.008 | $0.008 | $0.008 |

Platinum and Diamond plans pay the Gold price. The Store pricing card shows these same prices per 1,000 events. In plain terms, at Gold:

- **Video**: "$2.84 / 1,000" means one video costs about 0.28 cents ($0.00284).
- **Stored video**: "$15.00 / 1,000" means one stored video file costs 1.5 cents, with its first 20 MB included.
- **Stored audio**: "$3.00 / 1,000" means one stored audio file costs 0.3 cents, with its first 4 MB included.
- **Stored megabyte**: "$0.60 / 1,000" means each started megabyte (1,000,000 bytes) past those first 20 MB or 4 MB, and each started megabyte of the ZIP archive, costs 0.06 cents.
- **Uploaded megabyte**: "$2.50 / 1,000" means each started megabyte sent to your own bucket costs 0.25 cents.
- **Photo** (with **Read photo links too**): "$2.84 / 1,000" means one photo costs about 0.28 cents.

The Actor start is charged once per run by the platform (a 256 MB run pays one), with no plan discount. With **Bucket only** (`s3Only`) a file is not put in Apify storage: its Stored video or Stored audio is charged on the upload and no Stored megabytes are charged.

Examples at the Gold price:

- 100 links, file links only: $0.008 + 100 x $0.00284 = **$0.292**.
- 100 links with the HD file stored, at a typical 13 MB (inside the 20 MB included): $0.008 + $0.284 + 100 x $0.015 = **$1.792**.
- 100 links with the audio stored as MP3, each under 4 MB (videos up to about 4 minutes at the default 128 kbps): $0.008 + $0.284 + 100 x $0.003 = **$0.592**.
- One long video stored at 100 MB: $0.00284 + $0.015 + 80 x $0.0006 = **$0.06584**, plus the run's start fee.

Never charged: a removed, private, live or repeated link, a link Facebook does not answer, a file over your size cap, a file whose store or upload failed, a partial row, and the sample reel of an empty input (a run started that way pays only the start fee). A row delivered free (the sample, a partial row, or a row after the platform restarted the run) gets no stored file: its file fields say `not_stored_free_row`.

### Input

| Field | What it does |
|---|---|
| `videoUrls` | video and reel links, one per line (up to 5,000 links, pages and hashtags in one run). `startUrls` with `{ "url": ... }` objects, `urls`, `directUrls`, `links` and `postUrls` are read too |
| `pageUrls`, `maxVideosPerPage` | pages or profiles whose reels to download, newest first, and how many per page (1 to 1,000, default 50) |
| `hashtags`, `maxVideosPerHashtag` | hashtags whose videos and reels to download, and how many per hashtag (1 to 1,000, default 50) |
| `includePhotos` | also read photo links and the photos of the posts you link, one Photo row per photo (paid add-on, off by default) |
| `maxVideos` | stop after this many video rows (empty: every link) |
| `storeVideo`, `videoQuality`, `preferredCodec` | store each video file (off by default). `videoQuality`: `hd` (default), `sd`, or a video only tier without sound: `highest_no_sound`, `1080_no_sound`, `720_no_sound`, `480_no_sound`, `360_no_sound`. `preferredCodec` (`any`, `h264`, `vp9`, `av1`) applies to the video only tiers |
| `storeAudio`, `audioFormat`, `audioBitrateKbps`, `embedMetadata` | store each audio track (off by default). `audioFormat`: `m4a` (Facebook's own AAC file, stored as served, the default), `mp3`, `ogg`, `opus` or `wav`. `audioBitrateKbps` (32 to 320, default 128) applies to MP3, OGG and Opus. `embedMetadata` (on by default) writes the title, the owner as artist, the link and the publish date into a converted file's tags |
| `maxFileSizeMb` | a file larger than this is not stored or charged (1 to 2,000, default 100; 1 MB is 1,000,000 bytes) |
| `fileNameStyle` | `id` (`2166091230582141.mp4`, the default), `owner_id` (`nike-2166091230582141.mp4`) or `title_id`; audio files end in `-audio` |
| `storageName` | store the files in a named key-value store of your account (kept until you delete it) instead of the run's own store; a later run into the same store replaces a file of the same name |
| `zipFiles` | also bundle every file the run stores and bills into one ZIP (`files-<run>.zip`), delivered as an `archive` row; every started MB of it is a Stored megabyte. An archive that could not read every file again is not built (`failed`, the file named) and is not charged; a run the platform restarted builds none |
| `s3Bucket`, `s3Region`, `s3AccessKeyId`, `s3SecretAccessKey`, `s3KeyPrefix`, `s3Endpoint`, `s3Only` | also upload every stored file to your own S3 bucket or an S3 compatible one (Cloudflare R2 with region `auto` and its endpoint, MinIO, DigitalOcean Spaces, Backblaze B2). The key and the secret are used only to sign the uploads. `s3Only`: the bucket only, not Apify storage (no `storageName` or `zipFiles` with it) |
| `includeFileSizes` | the exact byte size of the HD, SD and audio files (on by default, no extra charge) |
| `includeVideoVariants` | the list of video only tiers with their links (on by default, no extra charge) |
| `includeDashManifest` | add the DASH manifest text (off by default, no extra charge) |
| `includeEngagement` | read each video's page for reactions, comments, shares and views (off by default, no extra charge) |
| `includeCaptions` | add the text of Facebook's own captions file (off by default, no extra charge) |
| `maxConcurrency` | links read at once (1 to 8, default 4) |
| `requestTimeoutSecs` | how long one read may take before another address is tried (5 to 60, default 18) |
| `maxRetries` | addresses one read is tried on (1 to 8, default 4) |
| `proxyConfiguration` | leave as is: the Apify datacenter proxy, which the price includes. You may give your own proxy addresses instead (`http://user:password@host:port`, or `http://host:port`). A named proxy group, a country, or the Apify proxy switched off without addresses of your own refuse the input |

A setting name this Actor does not know, or two keys of one meaning sent together, refuse the input with a free `invalid` row, so a typo never runs a paid job you did not ask for. Settings that belong to another one are refused the same way when it is off: `videoQuality` and `preferredCodec` need `storeVideo`, `audioFormat`, `audioBitrateKbps` and `embedMetadata` turned off need `storeAudio`, and `maxFileSizeMb`, `fileNameStyle`, `storageName`, `zipFiles` and the S3 settings need one of the two. With `s3Only` nothing goes into Apify storage, so `storageName` and `zipFiles` are refused beside it.

Example:

```json
{
  "videoUrls": [
    "https://www.facebook.com/reel/2166091230582141/",
    "https://www.facebook.com/nba/videos/1587340782718608/"
  ],
  "storeVideo": true,
  "videoQuality": "hd",
  "storeAudio": true,
  "audioFormat": "mp3",
  "includeEngagement": true
}
```

### Facebook video downloader API

```bash
curl -X POST "https://api.apify.com/v2/acts/automation_craft~facebook-video-downloader/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"videoUrls": ["https://www.facebook.com/reel/2166091230582141/"]}'
```

```js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('automation_craft/facebook-video-downloader').call({ videoUrls: ['https://www.facebook.com/reel/2166091230582141/'], storeVideo: true });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((x) => x.type === 'video').map((x) => x.storedVideoUrl));
```

```python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_TOKEN>")
run = client.actor("automation_craft/facebook-video-downloader").call(run_input={"videoUrls": ["https://www.facebook.com/nba/videos/1587340782718608/"], "storeAudio": True, "audioFormat": "mp3"})
videos = [x for x in client.dataset(run["defaultDatasetId"]).iterate_items() if x["type"] == "video"]
```

### What this Actor does NOT do

- **No login, no cookies, no private videos.** It reads what Facebook shows a logged out visitor. Private, friends only and group members only videos get a free `login_required` or `video_not_available` row.
- **No joining of the 1080p video only tier with its audio.** Facebook serves its highest tiers as video only files; this Actor delivers that tier and the audio as two separate files (`videoQuality: 1080_no_sound` and `storeAudio`) and never joins them into one. The HD file with sound is the 720p class on most videos.
- **No AI transcripts, translations, summaries or burned in captions.** This Actor uses no outside AI service. Facebook's own captions file is delivered (`captionsUrl`, and its text with `includeCaptions`) where the video has one.
- **No live broadcasts still on air.** Facebook serves no video file until a broadcast ends: the link gets a free `live_broadcast_in_progress` row; run it again after it ends. Recorded live broadcasts are read.
- **No stories.** Story links get a free `link_not_read` row.
- **No long videos of a page's Videos tab from Pages.** **Pages** reads a page's Reels tab; paste the links of its other videos into **Video links**.
- **No streaming from the stored link.** The Apify link does not answer Range requests, so a player cannot seek in it: download the file.
- **No platforms other than Facebook.**

### FAQ

#### How do I download all videos from a Facebook page?

Put the page's link or username into **Pages (their reels)** and set **Reels per page** (up to 1,000). Every reel found becomes a row with its MP4 links, and a coverage row says how many were found and whether the walk reached the end of the page's Reels tab. For the page's other videos, paste their links into **Video links**.

#### Is it legal to download a video from someone else's Facebook?

The video's owner holds its copyright. Download only videos you have the right to use, and reuse them only with permission or where the law allows. You are responsible for lawful use, including the GDPR and similar laws where rows hold personal data such as owner names.

#### How do I convert a Facebook video to MP3?

Turn on **Store the audio file** and set **Audio format** to `mp3` (or OGG, Opus or WAV); the row's `storedAudioUrl` is the MP3 file, with the title and owner written into its tags. One stored audio costs 0.3 cents at Gold with its first 4 MB included.

#### How long do the download links work?

Facebook's links stop working at the row's `linksExpireAt`: 32 to 108 hours after the read in our measure, and about 32 to 36 hours for 1080p class files and live replays. A stored file's Apify link lasts as long as the store: your plan's data retention for the run's store, or until you delete a named store.

#### Can I download Facebook reels in HD?

Yes, where Facebook serves HD: `videoUrlHd` is the HD MP4 with sound (the 720p class, 1080p on some videos), and `videoVariants` lists the video only tiers, up to 1080p on most videos. Set **Video quality to store** to keep the file you want in Apify storage.

#### Why does this Actor run with limited permissions?

It runs with the least privilege Apify offers: it reads Facebook and writes only to its own run's storage, plus the named store you give in **Named store for the files**, which it opens in your account under that name. It cannot see your other Actors, datasets or account data.

You are responsible for the lawful use of any personal data in the rows (GDPR and similar laws).

### More data tools by Automation Craft

- [Facebook Post Scraper: Reactions and Shares by URL](https://apify.com/automation_craft/facebook-post-scraper)
- [Facebook Videos Scraper: Page Videos, Views](https://apify.com/automation_craft/facebook-videos-scraper)
- [Facebook Reels Scraper: Views, Likes, No Login](https://apify.com/automation_craft/facebook-reels-scraper)
- [Facebook Comments Scraper: Replies, No Login](https://apify.com/automation_craft/facebook-comments-scraper)
- [Facebook Video Search Scraper: Reels, No Login](https://apify.com/automation_craft/facebook-video-search-scraper)
- [Facebook Hashtag Scraper: Hashtag Posts, No Login](https://apify.com/automation_craft/facebook-hashtag-scraper)
- [Facebook Posts Scraper - Page Posts, No Login](https://apify.com/automation_craft/facebook-posts-scraper)

### Changelog

See the Changelog tab.

# Changelog

This Actor's version history is a separate document: https://apify.com/automation_craft/facebook-video-downloader/changelog.md

# Actor input Schema

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

Links of public Facebook videos and reels, one per line: reel links (facebook.com/reel/...), watch links (facebook.com/watch/?v=...), a page's video links (facebook.com/<page>/videos/...), video post links, share links (facebook.com/share/r/..., /share/v/...), fb.watch links, m. and web. links, l.facebook.com links, or a bare video number. Up to 5,000 links a run. Page, profile, group and photo links are not read (they get a free row).

## `pageUrls` (type: `array`):

Facebook pages or profiles whose reels to download, newest first: a page link (facebook.com/natgeo or facebook.com/natgeo/reels/), a username (natgeo, @natgeo) or a page number. Each reel found is one video row, read like a pasted link.

## `maxVideosPerPage` (type: `integer`):

How many of each page's newest reels to read, from 1 to 1,000. Default 50. Applies only with "Pages".

## `hashtags` (type: `array`):

Hashtags whose videos and reels to download: comedy, #comedy or a facebook.com/hashtag/comedy link. Facebook's hashtag feed is read (its top posts, then its recent posts) and every post that carries a video gives a video row.

## `maxVideosPerHashtag` (type: `integer`):

How many videos to read per hashtag, from 1 to 1,000. Default 50. Only some posts of a hashtag feed carry a video (about 1 in 5 on #comedy, 2026-11-09), so a high number reads many feed pages. Applies only with "Hashtags".

## `includePhotos` (type: `boolean`):

Also read photo links and the photos of posts: one Photo row per photo with the largest image link Facebook shows without a login. Paid add-on (Photo), off by default; photo links get a free row when off.

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

Stop after this many video rows. Leave empty to read every link. Links not read get one free row listing them.

## `storeVideo` (type: `boolean`):

Save each video file into Apify storage, so the row carries an Apify link that does not expire with Facebook's link. Paid add-on, off by default: Stored video (the first 20 MB included) and Stored megabyte for each started MB past that. A file over the size cap is not stored or charged.

## `videoQuality` (type: `string`):

Which file to store. HD and SD are the files with sound Facebook's player plays (HD is the 720p class, 1080p on some videos). The video only choices take a higher resolution tier without sound (1080p on most videos, 1440p on a few). Applies only with "Store the video file" on; default HD.

## `preferredCodec` (type: `string`):

For the video only qualities: store a tier in this codec. H.264 plays everywhere, AV1 gives the smallest files. Applies only with a video only quality; default any codec.

## `storeAudio` (type: `boolean`):

Save each video's audio track into Apify storage, as Facebook serves it (M4A) or converted. Paid add-on, off by default: Stored audio (the first 4 MB included) and Stored megabyte for each started MB past that.

## `audioFormat` (type: `string`):

The format of the stored audio file. M4A is Facebook's own AAC track, stored as served; MP3, OGG, Opus and WAV are converted. Applies only with "Store the audio file" on; default M4A.

## `audioBitrateKbps` (type: `integer`):

The bitrate of a converted MP3, OGG or Opus file, from 32 to 320. Applies only to those formats; default 128.

## `embedMetadata` (type: `boolean`):

A converted audio file carries the video's title, its owner as the artist, its link as a comment and its publish date in the file's own tags. On by default.

## `embedVideoMetadata` (type: `boolean`):

A stored video carries the video's title, its owner, its link and its publish date in its own tags. The file is remuxed without re-encoding into a fragmented MP4 (every current player reads it); off by default, a stored video is Facebook's own file byte for byte.

## `maxFileSizeMb` (type: `integer`):

A file larger than this is not stored or charged (its row says so). 1 MB is 1,000,000 bytes. From 1 to 2,000; default 100.

## `fileNameStyle` (type: `string`):

How the stored files are named. Every name ends with the video number, so names never collide within a run; a later run into the same named store or bucket replaces a file of the same name. Default: the video number.

## `storageName` (type: `string`):

Store the files in a named key-value store of your Apify account (kept until you delete it) instead of the run's own store (kept for your plan's data retention). Letters, digits and hyphens.

## `zipFiles` (type: `boolean`):

Also bundle every file this run stores and bills into one ZIP archive in Apify storage (files-<run>.zip; not with Bucket only). Its megabytes are charged as Stored megabytes (every started MB of the archive). Off by default.

## `s3Bucket` (type: `string`):

Also upload every stored file to your own S3 bucket or an S3 compatible one (Cloudflare R2, MinIO, DigitalOcean Spaces, Backblaze B2). Paid add-on: Uploaded megabyte for each started MB sent. The key needs write permission on the bucket only.

## `s3Region` (type: `string`):

The bucket's region, such as us-east-1 (auto for Cloudflare R2).

## `s3AccessKeyId` (type: `string`):

The access key id of a key allowed to write to the bucket.

## `s3SecretAccessKey` (type: `string`):

The secret of that key.

## `s3KeyPrefix` (type: `string`):

A folder path inside the bucket, such as videos/2026/ (letters, digits, \_ . - and /).

## `s3Endpoint` (type: `string`):

Only for an S3 compatible store: its https endpoint, such as https://<account>.r2.cloudflarestorage.com. Leave empty for AWS S3.

## `s3Only` (type: `boolean`):

Upload the files to your bucket only, not into Apify storage (no Stored megabytes; the file event is charged on the upload; not with a named store or a ZIP). Off unless set.

## `includeFileSizes` (type: `boolean`):

Read the exact byte size of the HD, SD and audio files (a 1 byte read of each, no extra charge). On by default.

## `includeVideoVariants` (type: `boolean`):

List every video only tier Facebook serves (1080p on most videos): resolution, codec, bitrate, estimated size and its file link. On by default.

## `includeDashManifest` (type: `boolean`):

Add the DASH manifest Facebook's player reads (its XML text) to each row. Off by default.

## `includeEngagement` (type: `boolean`):

Read each video's own page for its reactions (total and by type), comment count, share count and view count. One more page read per video, no extra charge. Off by default.

## `includeCaptions` (type: `boolean`):

Add the text of Facebook's own captions file where the video has one (its link is always on the row). Off by default.

## `maxConcurrency` (type: `integer`):

How many links are read at the same time, from 1 to 8. Default 4.

## `requestTimeoutSecs` (type: `integer`):

How long one read of Facebook may take before it is tried on another address, from 5 to 60. Default 18.

## `maxRetries` (type: `integer`):

How many proxy addresses one read is tried on when Facebook does not answer, from 1 to 8. Default 4.

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

Leave as is: this Actor reads Facebook through the Apify datacenter proxy, which the price includes. You may give your own proxy addresses instead.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.facebook.com/reel/2166091230582141/",
    "https://www.facebook.com/nba/videos/1587340782718608/"
  ],
  "includePhotos": false,
  "storeVideo": false,
  "storeAudio": false,
  "embedMetadata": true,
  "embedVideoMetadata": false,
  "zipFiles": false,
  "includeFileSizes": true,
  "includeVideoVariants": true,
  "includeDashManifest": false,
  "includeEngagement": false,
  "includeCaptions": false
}
```

# Actor output Schema

## `items` (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 = {
    "videoUrls": [
        "https://www.facebook.com/reel/2166091230582141/",
        "https://www.facebook.com/nba/videos/1587340782718608/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation_craft/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/2166091230582141/",
        "https://www.facebook.com/nba/videos/1587340782718608/",
    ] }

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

```

## MCP server setup

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