Facebook Pages + Posts Scraper avatar

Facebook Pages + Posts Scraper

Pricing

from $3.00 / 1,000 facebook page or post results

Go to Apify Store
Facebook Pages + Posts Scraper

Facebook Pages + Posts Scraper

Scrape Facebook Pages and posts together. Extract Page details, contacts, followers, captions, reactions, comments, shares, photos, videos, reels, links, and engagement data. Supports Page URLs, direct posts, mixed lists, date filters, and optional encrypted cookies.

Pricing

from $3.00 / 1,000 facebook page or post results

Rating

0.0

(0)

Developer

Kelopr

Kelopr

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

4

Monthly active users

7 days ago

Last modified

Share

Collect public Facebook Page identity, contact, post, media, and engagement data without stitching separate exports together.

Scrape Facebook Pages and posts together. Extract Page details, contacts, followers, captions, reactions, comments, shares, photos, videos, reels, links, and engagement data. Supports Page URLs, direct posts, mixed lists, date filters, and optional encrypted cookies.

All examples below use fictional DEMO-* identifiers, reserved .test domains, and masked contact details. They do not represent real people, listings, products, or companies.

๐Ÿš€ What this Actor does

  • Flexible collection: PAGES_AND_POSTS, PAGES_ONLY, POSTS_ONLY, DIRECT_POSTS.
  • Structured output: clean JSON records organized into pages, posts, media, contacts, all views.
  • Production-ready: concurrency, retries, proxy support, limits, and source-aware diagnostics are exposed through the Actor input.
  • Easy automation: run from the Apify Console, API, schedules, webhooks, Make, Zapier, or any HTTP client.

๐ŸŽ›๏ธ Modes and workflows

Mode or workflowWhat it does
PAGES_AND_POSTSReturn Page identity plus recent posts for every Page input.
PAGES_ONLYCollect Page profile, audience, contact, cover, and category data.
POSTS_ONLYCollect posts reached through Page inputs.
DIRECT_POSTSResolve exact public post, Reel, photo, or video URLs.

๐Ÿ’ก Common use cases

  • Public Page directories and lead research
  • Content and engagement analysis
  • Media, contact, and campaign monitoring

๐Ÿ“ฅ Input schema

Configure the Actor in the Input tab or send the same JSON through the API. Fields not needed for your workflow can be omitted.

FieldTypeDescriptionDefault
startUrlsarrayAdd Facebook Page, profile, post, photo, video, reel, or fb.watch URLs. Pages + Posts mode automatically handles mixed URL lists.โ€”
scrapeTypestringPages + Posts is the universal default. Focused modes are useful when you need only one record type. Allowed: PAGES_AND_POSTS, PAGES_ONLY, POSTS_ONLY, DIRECT_POSTS.PAGES_AND_POSTS
maxPostsPerPageintegerMaximum matching posts saved for each Page URL. Direct post URLs always return at most one post.20
startDatestringOptional earliest publication date in YYYY-MM-DD format, for example 2026-01-01.โ€”
endDatestringOptional latest publication date in YYYY-MM-DD format.โ€”
captionTextstringOptional case-insensitive text filter for post captions.``
maxItemsintegerHard run-wide limit across Page and post rows. The Actor stops saving and requesting more data after this limit or the maximum charge is reached.500
facebookCookiesstringOptional encrypted cookies for content visible to your Facebook account. An authenticated session must include c_user and xs. Accepts a Cookie header, JSON browser export, or Netscape cookies.txt. Values are never written to logs or results.โ€”
cookieFormatstringAutomatic detection supports the common export formats. Choose a format only if detection is ambiguous. Allowed: AUTO, HEADER, JSON, NETSCAPE.AUTO
includeRawJsonbooleanAdds rawJson as a JSON string for advanced integrations. Disabled by default because rows become much larger.false
includePageMediabooleanWhen Facebook limits timeline pagination, fill the remaining post limit with public photo and video publications from the Page's media tabs.true
proxyConfigurationobjectResidential proxy is recommended for reliable Facebook pagination. Cookie mode keeps one account-specific sticky proxy session; avoid changing its country between runs.{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "US"}
maxConcurrencyintegerNumber of input URLs processed in parallel. Use 1โ€“2 with Facebook cookies to reduce account warnings.3
requestTimeoutSecintegerMaximum time for one Facebook request.35
maxRetriesintegerAttempts after temporary blocks or network errors. Public mode can rotate proxy sessions; cookie mode stays on its account-specific sticky session.3
maxPaginationPagesintegerSafety limit per Page. The result limit normally stops pagination first.50

โ–ถ๏ธ Example input

{
"startUrls": [
{
"url": "https://www.facebook.com/demo.page"
}
],
"scrapeType": "PAGES_AND_POSTS",
"maxPostsPerPage": 20,
"includePageMedia": true
}

๐Ÿ“ฆ Output schema

Each successful item is written to the default dataset. Select a dataset view in the Apify Console or export the full dataset as JSON, CSV, Excel, XML, or RSS.

pages โ€” ๐Ÿ“„ Pages

Structured pages records for this Actor.

Fields: profilePictureUrl, pageName, category, followers, followings, likes, isVerified, intro, email, phone, website, coverPhotoUrl, pageUrl, pageId, scrapedAt

posts โ€” ๐Ÿ“ Posts

Post-level content and engagement records.

Fields: pageName, postType, text, time, likes, comments, shares, views, mediaCount, photoUrls, videoUrls, externalLinks, postUrl, postId, scrapedAt

media โ€” ๐Ÿ“ธ Photos & videos

Images, video, thumbnails, and storage or source URLs.

Fields: recordType, pageName, authorName, postType, profilePictureUrl, coverPhotoUrl, photoUrls, videoUrls, thumbnailUrls, mediaWidths, mediaHeights, mediaAltTexts, postUrl, pageUrl, scrapedAt

contacts โ€” ๐Ÿ“‡ Contacts

Public contact evidence and normalized contact fields.

Fields: pageName, category, emails, phones, websites, addresses, messengerUrl, pageUrl, pageId, scrapedAt

all โ€” ๐Ÿ—‚๏ธ All fields

The broadest combined dataset view.

Fields: recordType, inputUrl, sourcePageUrl, facebookUrl, pageUrl, postUrl, pageId, facebookId, postId, feedbackId, pageName, title, username, category, categories, intro, info, followers, followings, likes, comments, shares, views, isVerified, email, emails, phone, phones, website, websites, address, addresses, confirmedOwner, rating, ratingCount, messengerUrl, pageAdLibrary, profilePictureUrl, profilePictureWidth, profilePictureHeight, profilePhotoId, coverPhotoUrl, coverPhotoWidth, coverPhotoHeight, coverPhotoId, postType, authorName, authorId, authorUrl, authorProfilePictureUrl, text, caption, timestamp, time, reactionLike, reactionLove, reactionCare, reactionHaha, reactionWow, reactionSad, reactionAngry, topReactionsCount, referenceNames, referenceUrls, externalLinks, link, mediaCount, mediaIds, mediaTypes, mediaUrls, photoUrls, videoUrls, thumbnailUrls, mediaWidths, mediaHeights, mediaAltTexts, hasPhotos, hasVideo, rawJson, cookieMode, scrapedAt

๐Ÿ“ค Example output

{
"pageName": "Demo Studio",
"category": "Example business",
"followers": 12500,
"email": "hello@example.test",
"phone": "+1 202 XXX XXXX",
"website": "https://example.test",
"pageUrl": "https://www.facebook.com/demo.page",
"pageId": "DEMO-PAGE-01"
}

Missing source values are returned as null, empty arrays, or documented availability/status fields; the Actor does not invent unavailable source data.

๐Ÿ”Œ API example

Replace the placeholder with an Apify token and send the same input used in the Console:

curl -X POST "https://api.apify.com/v2/acts/trakk~facebook-pages-posts-scraper/runs?token=<YOUR_APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"startUrls": [{"url": "https://www.facebook.com/demo.page"}], "scrapeType": "PAGES_AND_POSTS", "maxPostsPerPage": 20, "includePageMedia": true}'

For synchronous integrations, use the run-sync-get-dataset-items API endpoint. For larger jobs, start an asynchronous run and consume its default dataset when the run succeeds.

๐Ÿงฉ Automation and exports

  • Schedule recurring runs from the Apify Console.
  • Trigger downstream systems with webhooks when a run succeeds or fails.
  • Reuse named monitoring keys or stores where the selected workflow supports change tracking.
  • Export dataset views to JSON, CSV, Excel, XML, or RSS, or access items through the Apify API.

โ“ FAQ

Do I need a login or browser session?

Use only the inputs shown in the Actor schema. If authentication or cookies are supported, the relevant encrypted field is explicitly available in the Input tab; otherwise no account is required.

Why can some fields be empty?

Source pages vary by region, content type, privacy settings, and availability. Optional enrichment also depends on the selected mode. Empty values are preserved honestly instead of being guessed.

How should I run this at scale?

Start with a small representative input, inspect the dataset and cost, then raise item limits and concurrency gradually. Use Apify Proxy when the schema exposes it, and use schedules plus monitoring keys for recurring collection.

Is the example data real?

No. Every example in this README is intentionally fictional and uses demo identifiers, reserved domains, or masked contact values.