{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Page Video Downloader",
    "description": "Discover videos from public Facebook Page Videos and Reels tabs, paginate and deduplicate results, and save bounded MP4 files with source metadata and download status.",
    "version": "0.4",
    "x-build-id": "6LBHyEKfzRNT9Zn4W"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~facebook-page-video-downloader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-facebook-page-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/khadinakbar~facebook-page-video-downloader/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-facebook-page-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/khadinakbar~facebook-page-video-downloader/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-facebook-page-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": {
          "pageUrls": {
            "title": "Facebook Page URLs",
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "description": "Enter 1–10 HTTPS public Facebook Page home URLs or Videos/Reels tab URLs. The Actor reads the public Videos listing or Reels grid without a login. Example: https://www.facebook.com/NASA/. Use Facebook Video Downloader when you already have individual video URLs.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Video discovery source",
            "enum": [
              "feed",
              "reels",
              "both"
            ],
            "type": "string",
            "description": "Read the public Videos listing, Reels grid, or both. The stable API value feed selects the Videos listing. Discovery rotates through input Page/source pairs before fetching more pages. Only videos owned by the resolved Page enter the Dataset.",
            "default": "feed"
          },
          "maxVideos": {
            "title": "Maximum video results",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Stop after this many unique video records across all input Pages. Duplicate video IDs are returned once. This caps video-result events. The scan cap can stop discovery earlier.",
            "default": 10
          },
          "maxScans": {
            "title": "Maximum discovery pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Cap logical discovery pages across Pages and sources, including unsuccessful attempts. Native discovery has no scan-event fee. A discovery page can need a bounded redirect or a public query request. Increase this limit to paginate further, subject to the run deadline.",
            "default": 2
          },
          "downloadMp4": {
            "title": "Save MP4 files",
            "type": "boolean",
            "description": "Save complete MP4 copies to this run’s key-value store. Direct links and metadata are returned when files are unavailable or exceed the limits. Download status explains skipped files. Platform transfer and storage usage are additional.",
            "default": true
          },
          "quality": {
            "title": "Preferred MP4 quality",
            "enum": [
              "sd",
              "hd"
            ],
            "type": "string",
            "description": "Choose SD for smaller files or HD when exposed. The Actor uses the available quality if the preferred URL is absent. HD is not guaranteed. Large files can be skipped under your byte limits.",
            "default": "sd"
          },
          "maxFileSizeMB": {
            "title": "Maximum single file size (MiB)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Limit each stored MP4 by actual bytes read, even without a size header. Oversized files are skipped with a reason. Direct links remain in the Dataset. The unit is 1,048,576 bytes.",
            "default": 25
          },
          "maxTotalDownloadMB": {
            "title": "Maximum total stored files (MiB)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Cap combined saved MP4 bytes across the run. Further files are skipped after the limit. Video link results continue to your maxVideos cap. The unit is 1,048,576 bytes.",
            "default": 100
          },
          "videoUrls": {
            "title": "Known video URLs (optional add-on)",
            "maxItems": 50,
            "type": "array",
            "description": "Add up to 50 individual public Facebook video or Reel URLs. Each one is a separate paid result (url-video-result). For a job made only of single video links, our Facebook Video Downloader Actor is the dedicated tool; this switch is for adding known videos to a Page run.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Keyword video search (optional add-on)",
            "maxItems": 5,
            "type": "array",
            "description": "Up to 5 keywords. Returns public video links, captions, authors and dates (no MP4 files; pass the links into Known video URLs to download). Each result is a search-video-result.",
            "items": {
              "type": "string"
            }
          },
          "maxSearchResults": {
            "title": "Maximum search results per keyword",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Cap on keyword search results for each keyword. Default 10, maximum 50.",
            "default": 10
          },
          "includeTranscript": {
            "title": "Add transcript (optional, extra charge per transcript)",
            "type": "boolean",
            "description": "Adds the spoken text to each video row when captions or speech are available (videos up to about 2 minutes). Charged only when a transcript is returned.",
            "default": false
          },
          "includeComments": {
            "title": "Add comments (optional, extra charge per comment)",
            "type": "boolean",
            "description": "Adds public comments as separate rows (recordType comment) after each video. Charged per comment row returned.",
            "default": false
          },
          "maxCommentsPerVideo": {
            "title": "Maximum comments per video",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Cap on comments returned for each video when comments are on. Default 20, maximum 100.",
            "default": 20
          },
          "includeAudio": {
            "title": "Save audio track as M4A (optional, extra charge per file)",
            "type": "boolean",
            "description": "Extracts the audio from each video into an M4A file in the run storage. Charged per saved audio file. Uses the same per-file size limit as MP4 files.",
            "default": false
          },
          "includePageProfile": {
            "title": "Add Page profile (optional, extra charge per Page)",
            "type": "boolean",
            "description": "Adds one profile row per Page (recordType pageProfile): name, category, followers, website, public email, about text.",
            "default": false
          },
          "minViews": {
            "title": "Minimum views (free filter)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip videos with fewer public views. Videos with an unknown view count are skipped when this is set. Skipped videos are not charged."
          },
          "publishedAfter": {
            "title": "Published after (free filter)",
            "type": "string",
            "description": "Skip videos published before this date, for example 2026-01-31. Skipped videos are not charged."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}