Facebook Posts Scraper

Apify

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

Current price
$0.0070/result
Availability
Ready to run
Last accepted verification

What this API does

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.

Agents select this operation with tool ID apify.apify-facebook-posts-scraper, then inspect its current executable contract before a run.

Public input and output shape

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.

isVideoboolean

Returned is video 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

This reviewed worked example is shared with inspect. Inspect also returns the current executable schema and price estimate before a paid run.

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,
  "isVideo": true,
  "comments": 140,
  "inputUrl": "https://www.facebook.com/humansofnewyork/",
  "pageName": "humansofnewyork",
  "facebookUrl": "https://www.facebook.com/humansofnewyork/"
}
Teaching errors and limitations

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

Updated
18 August 2026

Use Facebook Posts Scraper with Scrollport

Scrollport identifies and validates the best-in-class API tools and provides them on a pay-as-you-go basis so you don't need to maintain a separate provider account, subscription or credits.

Give your agent the setup prompt to receive $1 in trial credit and start using the tools right away.