{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Video Transcript · Reels, Watch · AI, no API key",
    "description": "Transcripts for Facebook videos, Reels and Watch links. Uses Facebook's captions when they exist and built-in Whisper AI when they don't — no API key needed, no login. Any language. Quality-gated: empty or garbage results are never returned or charged.",
    "version": "0.1",
    "x-build-id": "O76aqrSaMrVYFKY6c"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blue59~facebook-transcript-ai/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blue59-facebook-transcript-ai",
        "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/blue59~facebook-transcript-ai/runs": {
      "post": {
        "operationId": "runs-sync-blue59-facebook-transcript-ai",
        "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/blue59~facebook-transcript-ai/run-sync": {
      "post": {
        "operationId": "run-sync-blue59-facebook-transcript-ai",
        "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": [
          "videoUrls"
        ],
        "properties": {
          "videoUrls": {
            "title": "Facebook video / Reel / Watch URLs",
            "type": "array",
            "description": "只接受已知的公開影片連結，不會展開 Facebook 頁面、個人檔案或搜尋。Provide only known public video URLs, one per entry; no Facebook page/profile/search expansion. Replace these illustrative placeholders: Watch https://www.facebook.com/watch/?v=EXAMPLE_VIDEO_ID ; Reel https://www.facebook.com/reel/EXAMPLE_REEL_ID ; short link https://fb.watch/EXAMPLE_CODE/ . No login is used. The underlying parser also accepts other platforms; this is an input-use boundary, not an enforced domain allowlist.",
            "items": {
              "type": "string"
            }
          },
          "aiTranscription": {
            "title": "AI transcription when the video has no captions",
            "type": "boolean",
            "description": "Captions first; AI runs only if no caption track is selected (built-in key by default, or your own Groq key). Caption download/validation failure does not trigger AI. Off: no selected captions means a logged failure with no transcript result/minute event. Built-in-key successful result subtotal (USD, start separate): FREE 1/5/10 audio minutes = $0.04/$0.08/$0.13 ($0.03 per video + $0.01 per started minute); BRONZE = $0.038/$0.076/$0.1235 ($0.0285 + $0.0095 per started minute). Rates: latest startedAt record in supplied public/facebook-transcript-ai.json, pricingPerEvent.actorChargeEvents, eventTieredPricingUsd.FREE/BRONZE. Minutes round up, minimum one. Start: $0.00005 per event, one per GB of Actor memory, minimum one event. With your own key: byok-result only, no Actor minute event; Groq account charges are separate. Partial/status rows have no result/minute events; earlier complete results may be charged.",
            "default": true
          },
          "languageHint": {
            "title": "Spoken language (optional)",
            "type": "string",
            "description": "Optional spoken-language code sent only to AI, e.g. en, zh, ja, es. Empty means no language hint is sent. AI output language is the supplied hint or literal auto, not a detected-language field. Chinese cleanup with chineseScript=auto: zh/zh-CN/zh-Hans use Simplified; zh-TW/zh-Hant/zh-HK use Traditional with Taiwan usage. Without a hint, confirmed Chinese uses Simplified. chineseScript can override the script for Chinese only. 中文整理預設：zh/zh-CN/zh-Hans 與自動判中用簡體；zh-TW/zh-Hant/zh-HK 用繁體與台灣用語；可用 chineseScript 覆寫中文字體。"
          },
          "subtitleFormats": {
            "title": "Subtitle files (SRT / VTT)",
            "type": "array",
            "description": "Optional SRT/WebVTT, with no extra Actor billing event. When requested, segments contains start/end seconds and text; requested srt/vtt are added only if usable timing exists. Otherwise segments is empty and subtitleNote explains missing timing. Leave empty for plain transcripts. Partial text can also carry subtitles when timing is available.",
            "items": {
              "type": "string",
              "enum": [
                "srt",
                "vtt"
              ],
              "enumTitles": [
                "SRT (.srt)",
                "WebVTT (.vtt)"
              ]
            },
            "default": []
          },
          "maxMinutes": {
            "title": "Max minutes per video for AI",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "AI media-duration ceiling in minutes (including with your own Groq key), not a processing-time allowance or a whole-run charge cap. Longer known-duration media are rejected for AI; captions have no duration ceiling. Unknown duration may require download before a second check and cannot provide a reliable cap if still unknown. Set Apify run timeout separately. Finished rows are retained; available validated audio-chunk text may be saved as partial, without Actor result/minute events. Early-stop rows and RUN_STATUS explain incomplete work; forced termination/storage failure may prevent final writes. Earlier completed results may already be charged.",
            "default": 60
          },
          "groqApiKey": {
            "title": "Your own Groq API key (optional, cheaper)",
            "type": "string",
            "description": "Optional own Groq key, preferred over the built-in key. Complete AI results use byok-result only (no Actor minute event); your Groq account usage is separate. This does not bypass maxMinutes. Caption extraction needs no key."
          },
          "preferredLanguages": {
            "title": "Caption language priority",
            "type": "array",
            "description": "Caption preference list after metadata language or a title/description language guess. Manual tracks are tried before automatic tracks; exact matches before language-family matches. If manual tracks exist but none match, the first manual track is used. Does not translate transcripts.",
            "default": [
              "en",
              "zh-Hant",
              "zh-TW",
              "zh-Hans",
              "zh",
              "ja",
              "ko",
              "es",
              "fr",
              "de",
              "pt"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max videos",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper limit on selected videos per run. The schema default is 100; raw input omitting this field falls back to 50 in the entry point. Completion also depends on the Apify run timeout; use smaller batches or more time as needed. This is not a total-charge cap.",
            "default": 100
          },
          "minChars": {
            "title": "Min transcript length",
            "minimum": 1,
            "type": "integer",
            "description": "Results shorter than this are treated as failures (not charged).",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Schema default enables Apify Proxy. If omitted/empty in raw input, the entry point uses no primary proxy and starts directly. A nonempty setting is passed to Apify to create the primary proxy. Independently, residential and default datacenter configurations are attempted even if the primary proxy is disabled; their creation errors are logged. Metadata tries primary/direct first, then residential with android/ios, then residential default client only on errors matching Sign in to confirm, not a bot, or page needs to be reloaded. Other errors retry without automatically switching. Caption/audio use the successful metadata route. The extra datacenter route is only for TikTok native captions, not a general Facebook fallback. Primary creation errors can stop initialization; no proxy guarantees access.",
            "default": {
              "useApifyProxy": true
            }
          },
          "chineseTranscriptCleanup": {
            "title": "中文 AI 轉錄整理 / Chinese AI transcript cleanup",
            "type": "boolean",
            "description": "預設開：中文 AI 加繁簡與標點提示詞，並移除段首／段尾完整符合清單的已知幻覺句，移除數寫入 log。自動模式多一次最多 30 秒的語言辨識請求（Groq 每次至少計 10 秒）；正式英文轉錄欄位不變。關閉保留原始 AI 路徑，不加提示詞、不探測、不過濾。字幕來源與 Actor 計費不變。On by default: Chinese AI style/punctuation prompts and exact edge-only known-phrase removal, with counts in logs. Auto mode adds one language probe of up to 30 seconds (Groq minimum 10 seconds per request). English production fields are unchanged. Off keeps the original AI path with no prompt, probe or filter. Caption sources and Actor billing are unchanged.",
            "default": true
          },
          "chineseScript": {
            "title": "中文 AI 字體 / Chinese AI script",
            "enum": [
              "auto",
              "simplified",
              "traditional"
            ],
            "type": "string",
            "description": "預設 auto：自動判中或 languageHint=zh/zh-CN/zh-Hans 用簡體與標點；只有明確 zh-TW/zh-Hant/zh-HK 用繁體與台灣用語。香港、台灣客人可選 traditional 強制繁體，或維持 auto 並指定上述繁體語言碼；simplified 強制簡體。強制選項優先於中文 languageHint，但不強制語言、不翻譯英文等其他語言。只影響 AI，不改平台字幕；chineseTranscriptCleanup=false 時此欄無效。 Default auto: detected Chinese and zh/zh-CN/zh-Hans use Simplified with punctuation; explicit zh-TW/zh-Hant/zh-HK use Traditional with Taiwan usage. Hong Kong/Taiwan users can select traditional, or keep auto and set a Traditional language hint. simplified forces Simplified. Overrides Chinese hint script only, never language or non-Chinese text. AI only; captions are unchanged. Ignored when chineseTranscriptCleanup=false.",
            "default": "auto"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}