{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Pages Scraper",
    "description": "All-in-one Facebook Pages scraper organized by scenarios: Page info, Posts, Comments from Page posts, Media, Reviews, Events, Content monitoring, or All-in-one. Works anonymously by default; optional cookies are only for pages your own account can view.",
    "version": "0.1",
    "x-build-id": "SfixPtgC0LjN9m73n"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vortex_data~facebook-pages/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vortex_data-facebook-pages",
        "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/vortex_data~facebook-pages/runs": {
      "post": {
        "operationId": "runs-sync-vortex_data-facebook-pages",
        "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/vortex_data~facebook-pages/run-sync": {
      "post": {
        "operationId": "run-sync-vortex_data-facebook-pages",
        "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 Page URLs",
            "minItems": 1,
            "type": "array",
            "description": "Paste one or more Facebook Page URLs. Example: https://www.facebook.com/copperkettleyqr/. Groups are not supported.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "urls": {
            "title": "Page handles or numeric IDs",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "Alternative input for bare handles such as copperkettleyqr or numeric Page IDs. You can use this instead of full URLs, or together with them.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "dataPackage": {
            "title": "Scraping scenario",
            "enum": [
              "fullContent",
              "leadEnrichment",
              "posts",
              "comments",
              "media",
              "reputation",
              "events",
              "contentMonitoring",
              "auto"
            ],
            "type": "string",
            "description": "Choose the concrete actor-style task for this run. Keep All-in-one for a first run, or pick the focused scenario that matches the separate Facebook actor you would otherwise use.",
            "default": "fullContent"
          },
          "maxResults": {
            "title": "Max items to collect",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Per Page, how many posts, photos, videos, reels, reviews, and events to keep. Business/contact info is collected once and does not count against this limit.",
            "default": 20
          },
          "startDate": {
            "title": "Posts from date",
            "type": "string",
            "description": "Optional inclusive lower date bound for posts. Accepts YYYY-MM-DD or relative values such as 7 days."
          },
          "endDate": {
            "title": "Posts until date",
            "type": "string",
            "description": "Optional inclusive upper date bound for posts. Leave empty to keep posts up to the latest available."
          },
          "maxPosts": {
            "title": "Max posts",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional override for how many post records to keep per Page."
          },
          "maxComments": {
            "title": "Max comments",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional override for the total number of public comment records to keep per Page."
          },
          "maxPhotos": {
            "title": "Max photos",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional override for how many photo records to keep per Page."
          },
          "maxVideos": {
            "title": "Max videos",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional override for how many video records to keep per Page."
          },
          "maxReels": {
            "title": "Max reels",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional override for how many reel records to keep per Page."
          },
          "maxReviews": {
            "title": "Max reviews",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional override for how many review/recommendation records to keep per Page."
          },
          "maxEvents": {
            "title": "Max events",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional override for how many future and past event records to keep per Page."
          },
          "maxCommentPosts": {
            "title": "Posts to open for comments",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Comments require opening individual post permalinks. This limits how many recent posts are inspected for public comment bodies per Page.",
            "default": 2
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum public comment records to keep from each inspected post permalink.",
            "default": 5
          },
          "parseAllResults": {
            "title": "Load older items when possible (slower)",
            "type": "boolean",
            "description": "Turn on to keep loading older items when Facebook provides authenticated pagination tokens. In anonymous mode, the Actor keeps what public HTML exposes and cannot force deep pagination.",
            "default": false
          },
          "pageConcurrency": {
            "title": "Pages at the same time",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "How many input Pages to scrape at the same time. Lower it to 1-2 when debugging or if Facebook/proxy responses are unstable.",
            "default": 8
          },
          "facebookCookies": {
            "title": "Facebook cookies (optional)",
            "type": "string",
            "description": "Optional authenticated mode. Paste cookies only from a Facebook account you control and are authorized to use. Leave empty for normal anonymous public Page scraping."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}