Back to Get Facebook posts

Facebook Posts Scraper

Apify

Collect public Facebook posts from page or profile URLs with post metadata.

Use this tool with your AI agent

  1. Copy the prompt
  2. Paste it into your agent
  3. Tell it what you need

Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Help me use Facebook Posts Scraper (tool ID: apify.apify-facebook-posts-scraper). Ask me for the details you need, then show me the result.

Already connected
Your agent can use that connection.
New user
Your agent will guide you through setup, sign-in and authorisation.

Provider access is included.

Connect your first agent to receive $1 trial credit.

Current price
$0.0070/result
Availability
Ready to run

Tool details

About this tool

Extract posts, videos, and engagement metrics from Facebook pages. Get text captions, reactions, video transcripts, images, external links, collaborators, and more from Facebook pages and profiles. Export ad data, schedule runs via API, and integrate with other tools or AI workflows.

Inputs and outputs

Input

inputobject · optional

Provider-specific public source, URL or search criteria.

maxItemsnumber · optional

Maximum number of records to return.

Output

commentsnumber

Returned comments value.

facebookUrlstring

Returned facebook url value.

inputUrlstring

Returned input url value.

likesnumber

Returned likes value.

pageNamestring

Returned page name value.

postIdstring

Returned post id value.

sharesnumber

Returned shares value.

textstring

Returned text value.

timestring

Returned time value.

urlstring

Returned url value.

userobject

Returned user value.

Example request and output

Inspect returns this reviewed example, its estimated cost and the current input schema. Run calculates the estimate for your actual input.

Request

{
  "tool_id": "apify.apify-facebook-posts-scraper",
  "input": {
    "input": {
      "startUrls": [
        {
          "url": "https://www.facebook.com/humansofnewyork/"
        }
      ],
      "resultsLimit": 2
    },
    "maxItems": 2
  }
}

Output

{
  "url": "https://www.facebook.com/reel/1564039698724000/",
  "text": "I write him a letter every day.",
  "time": "2026-07-31T19:37:40.000Z",
  "user": {
    "id": "100050429952420",
    "name": "Humans of New York",
    "profileUrl": "https://www.facebook.com/100050429952420"
  },
  "likes": 5384,
  "postId": "1608404244183892",
  "shares": 86,
  "comments": 140,
  "inputUrl": "https://www.facebook.com/humansofnewyork/",
  "pageName": "humansofnewyork",
  "facebookUrl": "https://www.facebook.com/humansofnewyork/"
}
Errors and limitations

No listing-specific teaching errors are published. Inspect the tool before running to receive the current schema and error guidance.