{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Reels Scraper | Plays, Likes, Shares | $2.85/1K reels",
    "description": "Public reels from Pages and profiles: plays, likes, comments, shares, HD video. A reel link gives views. $2.85/1,000 reels on Free, $2.09 on Gold. No login.",
    "version": "0.1",
    "x-build-id": "uIQt7d5AJydg3n5GS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataizi-srl~facebook-reels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataizi-srl-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/dataizi-srl~facebook-reels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dataizi-srl-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/dataizi-srl~facebook-reels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dataizi-srl-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 links",
            "minItems": 1,
            "type": "array",
            "description": "Pages, profiles, Reels tabs or single reel links, one per line, for example `https://www.facebook.com/natgeo/reels/` or `https://www.facebook.com/reel/1234567890123456`. A Page or profile returns its newest public reels; a reel link returns that one reel with its exact counts. Share links (`facebook.com/share/r/...`, `fb.watch/...`) are followed to the reel. A link that is not a Facebook link is skipped, named in the run summary and never billed. This scraper does not search Facebook: it needs Pages, profiles or reel links.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxReelsPerSource": {
            "title": "Maximum reels per Page or profile",
            "minimum": 1,
            "type": "integer",
            "description": "The most reels collected from each Page or profile in `Facebook links`. A Page lists 10 reels per request, newest first. Default 20. Reel links are not affected.",
            "default": 20
          },
          "maxItems": {
            "title": "Maximum reels in total",
            "minimum": 1,
            "type": "integer",
            "description": "Stops the run after this many reel rows over all Pages, profiles and reel links. The default of 100 keeps a first run small; raise it for bigger jobs. The run also stops cleanly when your maximum cost per run is reached, and keeps every row it saved.",
            "default": 100
          },
          "onlyPostsNewerThan": {
            "title": "Only reels newer than",
            "type": "string",
            "description": "Keep only reels published on or after this date. Use a date such as `2026-10-01` or a relative time such as `7 days`, `2 weeks`, `3 months`. Pages list newest first, so a Page stops being read once it passes the date: this filter also saves time. A reel link is always returned."
          },
          "onlyPostsOlderThan": {
            "title": "Only reels older than",
            "type": "string",
            "description": "Keep only reels published before this date, for a historic window. Use a date or a relative time. Newer reels are read and skipped, never billed, and a Page stops after a large number of reels without a match (the run summary says so). Combine with `Only reels newer than` for a window."
          },
          "captionKeywords": {
            "title": "Caption contains",
            "uniqueItems": true,
            "type": "array",
            "description": "Only keep reels whose caption or hashtags contain any of these words, ignoring case and accents. This filters the reels of your Pages; it does not search Facebook. Skipped reels are never billed, and a Page stops after a large number of reels without a match (the run summary says so).",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "minPlays": {
            "title": "Minimum plays",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep reels with at least this many plays, using the number Facebook shows (rounded to 0.1 million above 1 million). Skipped reels are never billed, and a Page stops after a large number of reels without a match. Leave empty, or 0, for no minimum."
          },
          "excludeReelIds": {
            "title": "Reel ids to skip",
            "uniqueItems": true,
            "type": "array",
            "description": "Reel ids or links you already hold, for example the `reelId` column of an earlier run. They are skipped and never billed. A Page stops being read after 10 skipped reels in a row, because Pages list newest first: use it to collect only new reels on repeat runs.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "includeExactCounts": {
            "title": "Include exact counts",
            "type": "boolean",
            "description": "Adds related reels and the reaction label by opening each reel's page, and reads reactions, comments and shares there too. One extra page read per reel, so the run takes longer. Without it, reels found on a Page still carry the reactions, comments and shares the Page lists, and `relatedReels` and `reactionsText` are `null` (reel links always get them). Plays stay as Facebook shows them: exact below 1 million, rounded above.",
            "default": false
          },
          "includeComments": {
            "title": "Include comments (contains personal data)",
            "type": "boolean",
            "description": "Adds the first page of public top-level comments to each reel: about 9 comments, no replies. Comments contain names and profile links of private people, so you need a lawful basis under the GDPR and other privacy laws to use them. One extra page read per reel. Off by default.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "No proxy by default, which works for most runs. If Facebook refuses a run, switch on Apify Proxy (datacenter). Residential proxies, search-engine proxies and custom proxy URLs are not supported.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}