{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Video Downloader: MP4, Reels, Audio",
    "description": "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.",
    "version": "0.1",
    "x-build-id": "CfPPvL99URap1SrAJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~facebook-video-downloader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-facebook-video-downloader",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/automation_craft~facebook-video-downloader/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-facebook-video-downloader",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/automation_craft~facebook-video-downloader/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-facebook-video-downloader",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "videoUrls": {
            "title": "Video links",
            "type": "array",
            "description": "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).",
            "items": {
              "type": "string"
            }
          },
          "pageUrls": {
            "title": "Pages (their reels)",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerPage": {
            "title": "Reels per page",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many of each page's newest reels to read, from 1 to 1,000. Default 50. Applies only with \"Pages\"."
          },
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerHashtag": {
            "title": "Videos per hashtag",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "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": {
            "title": "Read photo links too",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "maxVideos": {
            "title": "Maximum videos",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many video rows. Leave empty to read every link. Links not read get one free row listing them."
          },
          "storeVideo": {
            "title": "Store the video file",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "videoQuality": {
            "title": "Video quality to store",
            "enum": [
              "hd",
              "sd",
              "highest_no_sound",
              "1080_no_sound",
              "720_no_sound",
              "480_no_sound",
              "360_no_sound"
            ],
            "type": "string",
            "description": "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": {
            "title": "Codec of a video only file",
            "enum": [
              "any",
              "h264",
              "vp9",
              "av1"
            ],
            "type": "string",
            "description": "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": {
            "title": "Store the audio file",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "audioFormat": {
            "title": "Audio format",
            "enum": [
              "m4a",
              "mp3",
              "ogg",
              "opus",
              "wav"
            ],
            "type": "string",
            "description": "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": {
            "title": "Audio bitrate (kbps)",
            "minimum": 32,
            "maximum": 320,
            "type": "integer",
            "description": "The bitrate of a converted MP3, OGG or Opus file, from 32 to 320. Applies only to those formats; default 128."
          },
          "embedMetadata": {
            "title": "Write the title and owner into converted audio files",
            "type": "boolean",
            "description": "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.",
            "default": true
          },
          "embedVideoMetadata": {
            "title": "Write the title and owner into stored video files",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "maxFileSizeMb": {
            "title": "Size cap per file (MB)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "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": {
            "title": "File names",
            "enum": [
              "id",
              "owner_id",
              "title_id"
            ],
            "type": "string",
            "description": "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": {
            "title": "Named store for the files",
            "type": "string",
            "description": "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": {
            "title": "One ZIP of all files",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "s3Bucket": {
            "title": "Your S3 bucket",
            "type": "string",
            "description": "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": {
            "title": "Region",
            "type": "string",
            "description": "The bucket's region, such as us-east-1 (auto for Cloudflare R2)."
          },
          "s3AccessKeyId": {
            "title": "Access key id",
            "type": "string",
            "description": "The access key id of a key allowed to write to the bucket."
          },
          "s3SecretAccessKey": {
            "title": "Secret access key",
            "type": "string",
            "description": "The secret of that key."
          },
          "s3KeyPrefix": {
            "title": "Folder in the bucket",
            "type": "string",
            "description": "A folder path inside the bucket, such as videos/2026/ (letters, digits, _ . - and /)."
          },
          "s3Endpoint": {
            "title": "Endpoint (S3 compatible stores)",
            "type": "string",
            "description": "Only for an S3 compatible store: its https endpoint, such as https://<account>.r2.cloudflarestorage.com. Leave empty for AWS S3."
          },
          "s3Only": {
            "title": "Bucket only",
            "type": "boolean",
            "description": "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": {
            "title": "Exact file sizes",
            "type": "boolean",
            "description": "Read the exact byte size of the HD, SD and audio files (a 1 byte read of each, no extra charge). On by default.",
            "default": true
          },
          "includeVideoVariants": {
            "title": "Video only quality tiers",
            "type": "boolean",
            "description": "List every video only tier Facebook serves (1080p on most videos): resolution, codec, bitrate, estimated size and its file link. On by default.",
            "default": true
          },
          "includeDashManifest": {
            "title": "DASH manifest",
            "type": "boolean",
            "description": "Add the DASH manifest Facebook's player reads (its XML text) to each row. Off by default.",
            "default": false
          },
          "includeEngagement": {
            "title": "Reactions, comments and shares",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "includeCaptions": {
            "title": "Captions text",
            "type": "boolean",
            "description": "Add the text of Facebook's own captions file where the video has one (its link is always on the row). Off by default.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Links read at once",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many links are read at the same time, from 1 to 8. Default 4."
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "How long one read of Facebook may take before it is tried on another address, from 5 to 60. Default 18."
          },
          "maxRetries": {
            "title": "Addresses tried per read",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many proxy addresses one read is tried on when Facebook does not answer, from 1 to 8. Default 4."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave as is: this Actor reads Facebook through the Apify datacenter proxy, which the price includes. You may give your own proxy addresses instead."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}