{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Reels Scraper",
    "description": "Facebook Reels Scraper extracts captions, play counts, reactions, hashtags and HD/SD video links — scrape Facebook Reels in bulk for analytics, influencer research, monitoring and short-video content export.",
    "version": "1.3",
    "x-build-id": "7zRaPJQEmzZoI9duL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data_minds~facebook-reels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data_minds-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/data_minds~facebook-reels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-data_minds-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/data_minds~facebook-reels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-data_minds-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": "🔗 Facebook links",
            "type": "array",
            "description": "Page or profile links, Reels tab links, single reel links or share links. Bulk paste works, one link per line. Add at least one link here or one username below.",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "👤 Usernames or profile IDs",
            "type": "array",
            "description": "Optional. One page username or numeric profile ID per line, for example Cristiano or 100044203430980. Used together with the links above.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max reels per input",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum reels collected for each link or username. 0 means every reel the page has. A single reel link always gives one reel.",
            "default": 20
          },
          "onlyPostsNewerThan": {
            "title": "📅 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*(second|minute|hour|day|week|month|year)s?(\\s*ago)?$",
            "type": "string",
            "description": "Keep only reels posted on or after this date. Use YYYY-MM-DD, a full UTC timestamp, or a relative value like 3 days, 2 weeks or 6 months. Reading stops once the feed is older than this date."
          },
          "onlyPostsOlderThan": {
            "title": "📅 Reels older 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*(second|minute|hour|day|week|month|year)s?(\\s*ago)?$",
            "type": "string",
            "description": "Keep only reels posted on or before this date. Same formats as above. Combine both dates for an exact range. Old dates need many batches, so runs take longer."
          },
          "language": {
            "title": "🌍 Content language",
            "enum": [
              "en-US",
              "en-GB",
              "es-ES",
              "es-LA",
              "fr-FR",
              "de-DE",
              "it-IT",
              "pt-BR",
              "pt-PT",
              "nl-NL",
              "tr-TR",
              "ru-RU",
              "ar-AR",
              "id-ID",
              "hi-IN",
              "ja-JP",
              "ko-KR",
              "zh-CN"
            ],
            "type": "string",
            "description": "Language Facebook uses for labels in the results.",
            "default": "en-US"
          },
          "captionKeywords": {
            "title": "🎯 Caption keywords",
            "type": "array",
            "description": "Optional. Keep only reels whose caption or hashtags contain at least one of these words. Not case sensitive.",
            "items": {
              "type": "string"
            }
          },
          "minPlayCount": {
            "title": "🎯 Minimum plays",
            "minimum": 0,
            "type": "integer",
            "description": "Skip reels with fewer plays than this. Page lists show rounded play counts."
          },
          "maxPlayCount": {
            "title": "🎯 Maximum plays",
            "minimum": 0,
            "type": "integer",
            "description": "Skip reels with more plays than this."
          },
          "minDurationSeconds": {
            "title": "🎯 Minimum length (seconds)",
            "minimum": 0,
            "type": "number",
            "description": "Skip reels shorter than this many seconds."
          },
          "maxDurationSeconds": {
            "title": "🎯 Maximum length (seconds)",
            "minimum": 0,
            "type": "number",
            "description": "Skip reels longer than this many seconds."
          },
          "downloadVideos": {
            "title": "📦 Save video files",
            "type": "boolean",
            "description": "Save the video file of every reel in the run storage and put a lasting link in the saved video link field. Facebook video links expire after a few hours. Slower and uses more storage.",
            "default": false
          },
          "videoQuality": {
            "title": "📦 Video file quality",
            "enum": [
              "hd",
              "sd"
            ],
            "type": "string",
            "description": "Quality of the saved video files. HD falls back to SD when only SD exists.",
            "default": "hd"
          },
          "includeDashManifest": {
            "title": "📦 Full playback data",
            "type": "boolean",
            "description": "Keep the complete playback data of every reel. Turn off for smaller rows; the video links and quality list stay.",
            "default": true
          },
          "includeRawNode": {
            "title": "📦 Raw reel data",
            "type": "boolean",
            "description": "Add the complete raw reel object in the raw field. Makes rows much larger.",
            "default": false
          },
          "concurrency": {
            "title": "⚡ Inputs in parallel",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many links or usernames are read at the same time. 2 to 5 is a good balance.",
            "default": 3
          },
          "maxProfiles": {
            "title": "🔢 Max inputs to read",
            "minimum": 0,
            "type": "integer",
            "description": "Read only the first N links and usernames after duplicates are removed. 0 means all.",
            "default": 0
          },
          "maxPages": {
            "title": "🔢 Max batches per input",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Safety cap on reel batches (about 10 reels each) read per input. 0 means no cap.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Optional. Sets the network settings for the run. The defaults work for most runs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}