{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Reels Scraper + Transcripts",
    "description": "Scrape public Facebook Reels from reel links or whole pages: caption, plays, reactions, comments, shares, owner, video URLs, plus a spoken-word transcript (Facebook captions or built-in Whisper). No login or cookies.",
    "version": "0.1",
    "x-build-id": "h0VMRyvs5LiM8rrpC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/latentlark~facebook-reels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-latentlark-facebook-reels-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/latentlark~facebook-reels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-latentlark-facebook-reels-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/latentlark~facebook-reels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-latentlark-facebook-reels-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": "Reel URLs, page URLs or page handles",
            "type": "array",
            "description": "Mix freely: reel links (facebook.com/reel/123…, /watch?v=…, /<page>/videos/…, fb.watch and /share/r/ short links), page URLs (facebook.com/cnn or facebook.com/cnn/reels) or bare handles (cnn, @bbcnews). Pages are expanded into their latest public reels. Each reel row costs $0.0025.",
            "items": {
              "type": "string"
            }
          },
          "maxReelsPerPage": {
            "title": "Max reels per page",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "For page URLs/handles: how many of the newest reels to return per page.",
            "default": 20
          },
          "transcriptMode": {
            "title": "Transcripts",
            "enum": [
              "auto",
              "native",
              "whisper",
              "none"
            ],
            "type": "string",
            "description": "auto = Facebook's own captions when the reel has them (included in the reel price), otherwise Whisper speech-to-text (+$0.004 per transcript with speech). native = Facebook captions only, no Whisper charge. whisper = always Whisper. none = metadata only. Whisper needs at least 2048 MB run memory; 4096 MB is fastest.",
            "default": "auto"
          },
          "whisperModel": {
            "title": "Whisper quality",
            "enum": [
              "base",
              "small"
            ],
            "type": "string",
            "description": "base = fast and accurate for clear speech (default). small = higher accuracy, about 2.5x slower.",
            "default": "base"
          },
          "transcriptLanguage": {
            "title": "Spoken language hint (optional)",
            "type": "string",
            "description": "ISO code such as en, de, es. Leave empty to auto-detect per reel."
          },
          "maxWhisperTranscripts": {
            "title": "Max Whisper transcripts per run",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Budget cap for Whisper transcriptions in this run ($0.004 each). Reels over the cap still return metadata (transcriptStatus = skipped_budget, not charged).",
            "default": 200
          },
          "maxWhisperDurationSecs": {
            "title": "Skip Whisper for reels longer than (seconds)",
            "minimum": 10,
            "maximum": 1200,
            "type": "integer",
            "description": "Longer reels keep their metadata but skip Whisper (transcriptStatus = skipped_duration).",
            "default": 180
          },
          "includeSegments": {
            "title": "Include timed segments",
            "type": "boolean",
            "description": "segments: [{start, end, text}] in seconds.",
            "default": true
          },
          "includeSrt": {
            "title": "Include SRT subtitles",
            "type": "boolean",
            "description": "Adds an srt string per reel.",
            "default": false
          },
          "includeVideoUrls": {
            "title": "Include video download URLs",
            "type": "boolean",
            "description": "videoUrlSd / videoUrlHd (signed Facebook CDN links, expire after some hours).",
            "default": true
          },
          "proxyMode": {
            "title": "Network mode",
            "enum": [
              "auto",
              "proxy",
              "none"
            ],
            "type": "string",
            "description": "auto = direct connection first, Apify proxy as fallback (cheapest, recommended). proxy = always use the proxy below. none = never use a proxy.",
            "default": "auto"
          },
          "proxyConfiguration": {
            "title": "Proxy (fallback)",
            "type": "object",
            "description": "Used only when a direct request fails (or always in proxy mode). Datacenter proxy is enough.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Parallel reels processed. 8 is a safe default.",
            "default": 8
          },
          "maxPageConcurrency": {
            "title": "Pages listed in parallel",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "How many pages are listed at the same time.",
            "default": 2
          },
          "gqlDocId": {
            "title": "Listing query id override (debug)",
            "type": "string",
            "description": "Leave empty. Only for maintenance if Facebook rotates its reels-tab query id."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}