{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Reels Downloader and Facebook Video Downloader",
    "description": "🚀 This Facebook Video Downloadder & Facebook Reels Downloader actor Instantly\n fetches Facebook Reels and regular videos in high quality, merges video+audio, and stores the final MP4 directly in your Apify storage. Fast, stable, and designed for smooth multi-URL processing.",
    "version": "0.0",
    "x-build-id": "wx4vFk2HtgFiyaYPO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~facebook-reels-downloader-and-facebook-video-downloader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-facebook-reels-downloader-and-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/neuro-scraper~facebook-reels-downloader-and-facebook-video-downloader/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-facebook-reels-downloader-and-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/neuro-scraper~facebook-reels-downloader-and-facebook-video-downloader/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-facebook-reels-downloader-and-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",
        "required": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Provide one or multiple Facebook post or video URLs (e.g., https://www.facebook.com/username/posts/ID).",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL",
                  "description": "Facebook post or video URL to extract (required)."
                }
              },
              "required": [
                "url"
              ]
            }
          },
          "download": {
            "title": "Download media",
            "type": "boolean",
            "description": "If enabled, the actor will attempt to download video and/or audio streams and store binaries in the Key-Value store.",
            "default": true
          },
          "download_video": {
            "title": "Download video-only",
            "type": "boolean",
            "description": "When enabled, the actor will download video streams (video-only formats where applicable).",
            "default": true
          },
          "download_audio": {
            "title": "Download audio-only",
            "type": "boolean",
            "description": "When enabled, the actor will download audio streams (audio-only formats where applicable).",
            "default": true
          },
          "download_merged": {
            "title": "Download merged (preferred)",
            "type": "boolean",
            "description": "If available, prefer downloading merged video+audio files. If not available, the actor may download separate video/audio and merge them if configured.",
            "default": true
          },
          "desired_resolution": {
            "title": "Desired resolution",
            "enum": [
              "2160p",
              "1440p",
              "1080p",
              "720p",
              "480p",
              "360p"
            ],
            "type": "string",
            "description": "Preferred video resolution to extract/download (the actor will pick the closest available H.264 format at or below this resolution).",
            "default": "1080p"
          },
          "merge_if_ffmpeg": {
            "title": "Merge video+audio with ffmpeg (if available)",
            "type": "boolean",
            "description": "If both video and audio are downloaded separately, merge them locally using ffmpeg when available.",
            "default": true
          },
          "cookiesFile": {
            "title": "Cookie file path",
            "type": "string",
            "description": "Optional path to a cookie file inside the container for authenticated extraction (Netscape or JSON cookie file)."
          },
          "cookie_file": {
            "title": "Cookie file (alias)",
            "type": "string",
            "description": "Alias for cookiesFile — alternative input name for the same cookie file path."
          },
          "diagnostic": {
            "title": "Diagnostic mode",
            "type": "boolean",
            "description": "Enable verbose debug logs for troubleshooting. When false, yt-dlp warnings/errors are suppressed.",
            "default": true
          },
          "hide_media_links": {
            "title": "Hide media links in output",
            "type": "boolean",
            "description": "If true, direct media URLs are not shown in the final JSON output (useful for privacy).",
            "default": false
          },
          "preserve_thumbnails": {
            "title": "Preserve thumbnail URLs",
            "type": "boolean",
            "description": "Keep thumbnail URL(s) in the output metadata.",
            "default": true
          },
          "preserve_downloads": {
            "title": "Preserve downloaded files locally",
            "type": "boolean",
            "description": "If true, downloaded media files are kept in the actor's output directory in addition to saving to KV (useful for debugging).",
            "default": true
          },
          "maxItems": {
            "title": "Maximum Items",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of URLs to process from startUrls (0 = all).",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of concurrent extraction/download workers.",
            "default": 5
          },
          "suppress_errors": {
            "title": "Suppress non-fatal errors",
            "type": "boolean",
            "description": "When true, non-critical errors during extraction are suppressed and processing continues for other items.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration (advanced)",
            "type": "object",
            "description": "Advanced Apify proxy configuration object. If provided, it overrides the simple proxy preferences above."
          },
          "output_kv_key": {
            "title": "Output KV key (aggregated)",
            "type": "string",
            "description": "Key under which aggregated results (dataset) are stored in the Key-Value store.",
            "default": "OUTPUT"
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}