{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Reels & Video Scraper - MP4, Transcript, No Login",
    "description": "Scrape & download public Facebook Reels and Videos without login. Get the MP4 link, thumbnail, caption, hashtags, views, reactions, comments, creator info and transcript/subtitles. Search by keyword, filter by date, geo-target, real-time webhook. Pay per result, hard cost caps - no runaway bills.",
    "version": "0.1",
    "x-build-id": "YSoqBdOaaLCGSvz8I"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apivault_labs~facebook-reels-video-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apivault_labs-facebook-reels-video-scraper",
        "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/apivault_labs~facebook-reels-video-scraper/runs": {
      "post": {
        "operationId": "runs-sync-apivault_labs-facebook-reels-video-scraper",
        "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/apivault_labs~facebook-reels-video-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-apivault_labs-facebook-reels-video-scraper",
        "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": {
          "startUrls": {
            "title": "Facebook Reel / Video URLs",
            "type": "array",
            "description": "Public Facebook Reel or Video URLs. Supports /reel/<id>, /watch/?v=<id>, /<page>/videos/<id>, fb.watch short links and bare numeric video IDs. Multiple inputs run in parallel.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Keyword / hashtag search (optional)",
            "type": "array",
            "description": "Optional. Keywords or #hashtags to discover public Reels/Videos via search engines (keyless) — results are resolved to reel/video pages and enriched. Use instead of, or together with, URLs.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results (cost cap)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on the number of videos scraped and billed. Protects against runaway cost from large searches. 0 = no cap.",
            "default": 50
          },
          "maxCostUsd": {
            "title": "Max cost USD (cost cap)",
            "minimum": 0,
            "type": "number",
            "description": "Hard budget in USD. The run stops charging/scraping once this estimated cost is reached. 0 = no budget cap.",
            "default": 0
          },
          "sinceDays": {
            "title": "Only videos from last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Recency filter (gap feature — only 1/12 competitors have it). Keep only videos published within the last N days. Empty = no date filter."
          },
          "keywordFilter": {
            "title": "Caption keyword filter",
            "type": "string",
            "description": "Optional. Keep only videos whose caption/description contains this keyword (case-insensitive)."
          },
          "enrichDetailPage": {
            "title": "Detail-page enrichment",
            "type": "boolean",
            "description": "Fetch the full video page for richer data — view count, exact publish time, full caption, captions/subtitle track, creator follower count (gap feature — only 1/12). Slightly slower per video.",
            "default": true
          },
          "downloadMp4": {
            "title": "Extract MP4 download URL",
            "type": "boolean",
            "description": "Extract direct MP4 (HD/SD) playable URLs for each video. URLs are time-limited by Facebook — download promptly.",
            "default": true
          },
          "includeTranscript": {
            "title": "Include native captions / transcript",
            "type": "boolean",
            "description": "When the video has Facebook auto-generated or uploaded captions, fetch and parse them into plain-text transcript + timed cues. Free (no third-party ASR).",
            "default": true
          },
          "transcribeWithAsr": {
            "title": "Transcribe audio with my ASR key (BYO)",
            "type": "boolean",
            "description": "Optional. When no native captions exist, download the audio and transcribe it via YOUR OpenAI-compatible speech-to-text endpoint. You pay the ASR provider directly with your key.",
            "default": false
          },
          "asrApiKey": {
            "title": "ASR API key (BYO)",
            "type": "string",
            "description": "Your OpenAI-compatible API key used only for audio transcription. Never stored or logged."
          },
          "asrModel": {
            "title": "ASR model",
            "type": "string",
            "description": "Speech-to-text model name (e.g. whisper-1).",
            "default": "whisper-1"
          },
          "asrBaseUrl": {
            "title": "ASR base URL",
            "type": "string",
            "description": "OpenAI-compatible base URL for the transcription endpoint.",
            "default": "https://api.openai.com/v1"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many videos to scrape in parallel. Higher is faster; residential IPs rotate per request. Recommended 5-10.",
            "default": 5
          },
          "timeout": {
            "title": "Timeout per video (seconds)",
            "minimum": 15,
            "maximum": 180,
            "type": "integer",
            "description": "Maximum time to wait for each video fetch.",
            "default": 45
          },
          "maxRetries": {
            "title": "Max retries per video",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Retries for a failed/blocked fetch, each rotating a fresh proxy IP with exponential backoff (gap feature — only 2/12). 0-8.",
            "default": 2
          },
          "useResidentialProxy": {
            "title": "Allow residential proxy fallback (recommended)",
            "type": "boolean",
            "description": "Datacenter proxy is used first (cheap). When a video is blocked on datacenter, the Actor escalates to Apify residential proxy. Disable to stay datacenter-only (cheapest, but a few blocked videos may fail).",
            "default": true
          },
          "proxyCountry": {
            "title": "Proxy country code (geo-targeting)",
            "type": "string",
            "description": "ISO 2-letter country code (e.g. US, GB, DE). Geo-targets both datacenter and residential proxy to get region-specific availability and avoid locale redirects. Empty = automatic.",
            "default": "US"
          },
          "dedupe": {
            "title": "Deduplicate",
            "type": "boolean",
            "description": "Drop duplicate input URLs and duplicate output videos (same video ID), so the same Reel is never scraped or billed twice.",
            "default": true
          },
          "notifyWebhookUrl": {
            "title": "Real-time webhook URL",
            "type": "string",
            "description": "Optional. Each scraped video is POSTed as JSON to this URL the moment it's found (Zapier / Make / n8n / Slack / Discord) — gap feature, only 1/12."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}