{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Reels Transcript Scraper API + AI Hook Analyzer",
    "description": "Facebook Reels transcript scraper: reels to text with Whisper on a GPU. Page names or reel links in; transcript, 3-second hook, SRT/VTT and plays out. Optional AI hook score, beats, CTA and rewrites, on-screen text for music-only reels, and new-reels-only watchlists. No login.",
    "version": "0.1",
    "x-build-id": "KW6SlW07TZpfemTb2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hayleai~facebook-reels-transcript/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hayleai-facebook-reels-transcript",
        "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/hayleai~facebook-reels-transcript/runs": {
      "post": {
        "operationId": "runs-sync-hayleai-facebook-reels-transcript",
        "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/hayleai~facebook-reels-transcript/run-sync": {
      "post": {
        "operationId": "run-sync-hayleai-facebook-reels-transcript",
        "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": {
          "urls": {
            "title": "Facebook pages, profiles or reel links",
            "type": "array",
            "description": "Page or profile links (https://www.facebook.com/natgeo/), page names (natgeo) or single reel links (https://www.facebook.com/reel/1659676638983554/). Public content only, no login. Reels are collected with Apify's Facebook Reels Scraper in your account: about $0.005 per reel on the Free plan (less on paid plans), shown as its own line on your Apify bill. All-in that is about $0.015 per transcribed reel.",
            "items": {
              "type": "string"
            }
          },
          "maxReelsPerPage": {
            "title": "Reels per page",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many recent reels to take from each page or profile.",
            "default": 10
          },
          "onlyReelsNewerThan": {
            "title": "Only reels newer than",
            "type": "string",
            "description": "A date (2026-10-01) or a relative time such as 7 days or 2 months. Leave empty for no date filter."
          },
          "datasetId": {
            "title": "Dataset from Facebook Reels Scraper (optional)",
            "type": "string",
            "description": "Already scraped the reels? Pick the dataset from Facebook Reels Scraper and every video in it is transcribed. Scrape and transcribe within a day, because Facebook's video links expire."
          },
          "videoUrls": {
            "title": "Direct video or audio links (optional)",
            "type": "array",
            "description": "Direct links to video or audio files, for example the browser_native_sd_url values from another scraper.",
            "items": {
              "type": "string"
            }
          },
          "analyzeScripts": {
            "title": "AI script analysis (hook type, beats, CTA, rewrite ideas)",
            "type": "boolean",
            "description": "Adds a strategist's breakdown to every transcribed reel: hook type and a 1-10 hook score, the script's beats in order, the call to action, why it works, 3 ideas for a stronger version and search keywords. Charged per analyzed reel (see Pricing). Turn off for transcripts only.",
            "default": true
          },
          "pageReport": {
            "title": "Page strategy report",
            "type": "boolean",
            "description": "For each page with at least 3 analyzed reels, writes one report: content pillars, winning hook patterns, what top reels do that weak ones don't, content gaps and 5 new reel ideas with hooks. Saved as a row with status page_report and in the key-value store as PAGE_REPORTS. Charged once per page (see Pricing). Needs AI script analysis.",
            "default": true
          },
          "includeOnScreenText": {
            "title": "Read on-screen text when nobody speaks",
            "type": "boolean",
            "description": "Many Facebook reels are music with captions on screen. Switch this on and the text shown in the video is read from its frames and delivered as the transcript (textSource: on_screen). Such a reel is charged as one reel transcript, the same price as a spoken one. Off (default): reels without speech stay free.",
            "default": false
          },
          "newReelsOnly": {
            "title": "Only new reels (watchlist)",
            "type": "boolean",
            "description": "Remembers every reel this Actor already transcribed and skips it on later runs. Put this Actor on a daily or weekly schedule to track creators: you only pay for reels posted since the last run. Skipped reels are never charged.",
            "default": false
          },
          "watchlistName": {
            "title": "Watchlist name",
            "type": "string",
            "description": "Keep separate lists with different names, for example one per client. Saved in your own account, in the key-value store hayleai-facebook-watchlist.",
            "default": "default"
          },
          "maxItems": {
            "title": "Maximum reels in total",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop after this many reels across all inputs. Use it to cap what one run can cost.",
            "default": 200
          },
          "maxMinutesPerReel": {
            "title": "Skip videos longer than (minutes)",
            "minimum": 1,
            "maximum": 240,
            "type": "integer",
            "description": "Videos longer than this are returned as skipped rows and are not charged.",
            "default": 15
          },
          "language": {
            "title": "Language (optional)",
            "type": "string",
            "description": "Two-letter language code such as en, es, de. Leave empty to detect it automatically for each reel."
          },
          "translateToEnglish": {
            "title": "Translate to English",
            "type": "boolean",
            "description": "Output English text for reels spoken in another language.",
            "default": false
          },
          "includeSegments": {
            "title": "Include timestamped segments",
            "type": "boolean",
            "description": "Adds a list of segments with start and end times to each row.",
            "default": true
          },
          "includeSubtitles": {
            "title": "Include SRT and VTT subtitles",
            "type": "boolean",
            "description": "Adds ready-to-use SRT and VTT subtitle text to each row.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}