# Best-performing Facebook posts of a page, by engagement

**Use case:** 

Export the last 100 posts of a brand page with reactions by type, comments, shares and engagement rate on followers, then sort them in the Spreadsheet view to find what works: post type, hashtags, links and timing. Example: Nike.

## Input

```json
{
  "pageUrls": [
    {
      "url": "https://www.facebook.com/nike"
    }
  ],
  "maxPosts": 100,
  "onlyNewPosts": false,
  "includeComments": false,
  "maxCommentsPerPost": 50,
  "includeReplies": true,
  "onlyNewComments": false
}
```

## Output

```json
{
  "pageName": {
    "label": "Page name",
    "format": "string"
  },
  "createdAt": {
    "label": "Created at",
    "format": "string"
  },
  "type": {
    "label": "Type",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "reactions": {
    "label": "Reactions",
    "format": "integer"
  },
  "comments": {
    "label": "Comments",
    "format": "integer"
  },
  "shares": {
    "label": "Shares",
    "format": "integer"
  },
  "engagementRate": {
    "label": "Engagement rate",
    "format": "number"
  },
  "url": {
    "label": "Url",
    "format": "string"
  },
  "links": {
    "label": "Links",
    "format": "array"
  },
  "hashtags": {
    "label": "Hashtags",
    "format": "array"
  },
  "postId": {
    "label": "Post id",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Facebook Page Posts Scraper & Monitor | $0.55/1K + Comments Actor is ready to run with the inputs already set for "Best-performing Facebook posts of a page, by engagement". [Sign up or log in](https://console.apify.com/create-task-from-example/wXpQ90eZnyQh5ARtg) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Best-performing Facebook posts of a page, by engagement" task

The Facebook Page Posts Scraper & Monitor | $0.55/1K + Comments Actor will start running based on the input automatically. You can also change all the input fields, like facebook pages, max posts per page, and more, to match your specific use case.

### 3. Receive the "Best-performing Facebook posts of a page, by engagement" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as page name, created at, type, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Best-performing Facebook posts of a page, by engagement" task via API](https://apify.com/monkey.d.scraping/facebook-page-posts-scraper.md).

## FAQ

### How is the engagement rate computed?

(reactions + comments + shares) divided by the page followers, times 100, for each post; the SUMMARY record gives the page average.

### Can I compare several pages?

Yes: add up to 1,000 pages. The SUMMARY record lists totals and averages per page.

### Do I need a Facebook account or cookies?

No. Paste public page links or names and run. You only need an Apify account.

### How much does this cost?

$0.70 per 1,000 posts on the Free plan, down to $0.55 on Business and higher plans. No start fee, platform usage included. Comments, when enabled, cost $0.18 to $0.14 per 1,000.

## About this Actor

This example demonstrates how to use [Facebook Page Posts Scraper & Monitor | $0.55/1K + Comments](https://apify.com/monkey.d.scraping/facebook-page-posts-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/monkey.d.scraping/facebook-page-posts-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/monkey.d.scraping/facebook-page-posts-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
