{
  "openapi": "3.0.1",
  "info": {
    "title": "Facebook Page Posts Scraper - Reactions, Comments, Shares",
    "description": "Get the public posts of any Facebook page: text, date, link, total reactions and each reaction type, comments, shares, photos and video links. Page URL, name or ID. No login, no cookies.",
    "version": "1.0",
    "x-build-id": "cjomMqo6UCVLyXNby"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pomlabs~facebook-page-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pomlabs-facebook-page-posts-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/pomlabs~facebook-page-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pomlabs-facebook-page-posts-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/pomlabs~facebook-page-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pomlabs-facebook-page-posts-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": [
          "pages"
        ],
        "properties": {
          "pages": {
            "title": "Facebook pages or post links",
            "type": "array",
            "description": "One per line: the page link (https://www.facebook.com/NASA), its name in the link (NASA) or its numeric ID. Public pages only. A link to one post, photo, video or reel gives the comments of that post.",
            "default": [
              "https://www.facebook.com/NASA"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerPage": {
            "title": "Maximum posts per page",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many posts for each page (newest first, pinned post left out). 0 with 'Page details' gives the page data only.",
            "default": 10
          },
          "onlyPostsNewerThan": {
            "title": "Only posts newer than",
            "type": "string",
            "description": "Optional. A date (2026-11-01) or a relative time (7 days, 2 weeks, 1 month). Older posts are skipped and not charged."
          },
          "onlyPostsOlderThan": {
            "title": "Only posts older than",
            "type": "string",
            "description": "Optional. A date (2026-10-01) or a relative time (30 days). Newer posts are skipped and not charged; use it with 'Only posts newer than' for a date window."
          },
          "includeSummary": {
            "title": "Add a summary row per page",
            "type": "boolean",
            "description": "One free row per page with totals and averages of reactions, comments and shares, engagement by post type (video, photo, link, text), posts per week, the best post, top hashtags and the busiest hours and days.",
            "default": false
          },
          "includePageDetails": {
            "title": "Add the page details",
            "type": "boolean",
            "description": "One row per page with what the page shows logged out: bio, categories, e-mails, phones, WhatsApp, address, websites and social links, rating (recommend % and reviews), price range, services, opening status, verified badge, confirmed owner, followers, profile and cover photo. Charged per page.",
            "default": false
          },
          "includeComments": {
            "title": "Add the comments of each post",
            "type": "boolean",
            "description": "One row per comment (\"type\": \"comment\"), charged per comment: text, date, author name, link and photo, likes, number of replies, links, mentions and hashtags, language, comment link.",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Comments and replies together, per post. Default 50.",
            "default": 50
          },
          "includeCommentReplies": {
            "title": "Add the replies",
            "type": "boolean",
            "description": "Replies and replies to replies (\"type\": \"reply\"), with the comment they answer.",
            "default": false
          },
          "commentsSortOrder": {
            "title": "Comment order",
            "enum": [
              "RANKED_THREADED",
              "RECENT_ACTIVITY",
              "RANKED_UNFILTERED"
            ],
            "type": "string",
            "description": "The same orders as the post's comment menu on Facebook.",
            "default": "RANKED_THREADED"
          },
          "onlyCommentsNewerThan": {
            "title": "Only comments newer than",
            "type": "string",
            "description": "2026-11-01 or a relative time like 7 days. Older comments are skipped and not charged."
          },
          "includeTranscript": {
            "title": "Add the video transcript",
            "type": "boolean",
            "description": "For video posts, the video's own captions as text (videoTranscript) and with times (transcriptSegments), when the video has captions. Free, included in the post price.",
            "default": false
          },
          "transcriptLanguage": {
            "title": "Transcript language",
            "type": "string",
            "description": "Optional. Preferred caption language when a video has several (en, pt, Spanish...). Default: the first one."
          },
          "onlyNewPosts": {
            "title": "Only new posts for the next run",
            "type": "boolean",
            "description": "Turn this on to get only new posts when you run the same page again. The first run gets posts as usual; every next run gets only posts published after the last run, so you never pay twice for the same post. Great for scheduled runs that monitor a page.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name (with only new posts)",
            "type": "string",
            "description": "Optional. Give each of your monitors its own name if you run the same page in several tasks with different settings. Default: one place per page."
          },
          "maxPostsTotal": {
            "title": "Max posts for the whole run (optional)",
            "minimum": 1,
            "type": "integer",
            "description": "One limit across all pages together, so a long list of pages never goes over your budget. Pages after the limit are skipped for free. Empty: only the per-page limit."
          },
          "includeCoverage": {
            "title": "Add a coverage row per page",
            "type": "boolean",
            "description": "One free row per page saying why reading stopped (date reached, end of the page, page max, run max, Facebook limit) and whether your date window was read to the end, so a short result is never silent.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}