{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Reels Scraper: Views, Likes, Comments & Transcripts",
    "description": "Scrape public Facebook Reels from any page: caption, date, views, duration, video and cover links, back to a start date. Optional exact likes, reactions, comments, shares, transcripts and comment text. Watch mode, webhook. No login.",
    "version": "0.1",
    "x-build-id": "SV4mtf2Na2ZG5EaOZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alexmorain~facebook-reels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alexmorain-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/alexmorain~facebook-reels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alexmorain-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/alexmorain~facebook-reels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alexmorain-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",
        "required": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Facebook pages or reels",
            "type": "array",
            "description": "One entry per line. A page: a URL such as <code>https://www.facebook.com/natgeo</code> (the <code>/reels/</code> tab works too), a page name such as <code>natgeo</code> or <code>@natgeo</code>, a numeric id or a <code>profile.php?id=…</code> link. A single reel: <code>https://www.facebook.com/reel/&lt;id&gt;</code>, <code>/watch/?v=&lt;id&gt;</code> or <code>/&lt;page&gt;/videos/&lt;id&gt;</code>. A reel URL always comes with details. Pages and reels that do not exist are skipped and not charged. Short <code>fb.watch</code> links, groups and private profiles are not supported.",
            "items": {
              "type": "string"
            }
          },
          "maxReelsPerPage": {
            "title": "Max reels per page",
            "minimum": 1,
            "type": "integer",
            "description": "Stop reading a page after this many reels. A page is read at roughly 100 reels per minute, many pages in parallel. <code>resultsLimit</code> is accepted as an alias.",
            "default": 50
          },
          "maxItems": {
            "title": "Max reels in total",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on reels for the whole run, all pages together. Only delivered reels are charged.",
            "default": 1000
          },
          "onlyReelsNewerThan": {
            "title": "Only reels newer than",
            "pattern": "^$|^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])(T[0-2]\\d:[0-5]\\d(:[0-5]\\d)?(\\.\\d+)?Z?)?$|^(\\d+)\\s*(minute|hour|day|week|month|year)s?$",
            "type": "string",
            "description": "Optional. Only reels published on or after this date: <code>YYYY-MM-DD</code> (UTC) or a relative period such as <code>7 days</code> or <code>3 months</code>. Reading stops as soon as older reels are reached, so a short window is also a cheap and fast run. <code>onlyPostsNewerThan</code> is accepted as an alias."
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Skip reels with fewer views, based on the views shown in the reels tab. Skipped reels are not charged and no details are read for them.",
            "default": 0
          },
          "includeDetails": {
            "title": "Details: exact views, likes, reactions, comments and shares",
            "type": "boolean",
            "description": "Reads each reel: exact view count, total reactions and reactions by type, comment and share counts, full caption. Charged as a reel with details instead of a reel.",
            "default": false
          },
          "includeTranscript": {
            "title": "Transcript of the spoken words",
            "type": "boolean",
            "description": "Adds the spoken text of each reel. Reels without speech (music only) return no transcript and are not charged for it.",
            "default": false
          },
          "maxCommentsPerReel": {
            "title": "Comments per reel",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Adds up to this many top-level comments per reel (text, author, date, reactions, reply count). 0 = no comments. Each delivered comment is charged.",
            "default": 0
          },
          "newOnly": {
            "title": "Watch mode: only new reels",
            "type": "boolean",
            "description": "Returns only the reels you have not received in an earlier run with the same watch name. The first run sets the starting point and delivers the reels it reads. Run it on a schedule (hourly, daily) to monitor pages. Reel URLs are always delivered.",
            "default": false
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Memory of what was already delivered. Use one name per list of pages and per purpose, for example <code>competitors</code> and <code>creators</code>, so two schedules do not share the same memory.",
            "default": "default"
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. When the run ends with reels, a summary and the latest reels are sent there by POST (Slack, Discord, Zapier, your own endpoint). The URL is never written to a log."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}