Facebook Post Scraper avatar

Facebook Post Scraper

Pricing

from $2.00 / 1,000 facebook post scraped (basic)s

Go to Apify Store
Facebook Post Scraper

Facebook Post Scraper

Input profile or page URLs or hashtag or direct Facebook post or reel URLs and Outputs captions, post types, uploader info, likes, comments, shares, views, hashtags, comments with authors, images, video variants, audio tracks & download URLs from posts of page or hashtag.

Pricing

from $2.00 / 1,000 facebook post scraped (basic)s

Rating

0.0

(0)

Developer

CodeNest

CodeNest

Maintained by Community

Actor stats

0

Bookmarked

12

Total users

5

Monthly active users

3 days ago

Last modified

Categories

Security

Limited permissions

Share

📘 Facebook Post Scraper (Posts, Photos, Videos, Reels & Comments)

Apify Actor Pay Per Event No Login Required Export Formats

The ultimate, all-in-one Facebook Post Scraper on Apify. Extract public Facebook posts, high-res photos, multi-image albums, HD videos, reels, captions, creator information, engagement metrics (likes, reactions, views, shares, comments), and recent comments without logging in.


🚀 What Can You Do with Facebook Post Scraper?

Whether you need to monitor competitors, curate trending social content, analyze engagement sentiment, or archive digital media, Facebook Post Scraper delivers enterprise-grade data extraction with zero hassle:

  • 📸 Direct Post & Photo Scraping: Extract single photos, carousels, and multi-image albums in maximum original resolution.
  • 🎬 Video & Reels Downloader: Grab direct progressive CDN download links for HD MP4 videos and Reels.
  • 📄 Page & Profile Timeline Feeds: Extract bulk posts and reels from any public Facebook Page, business profile, or creator account.
  • 🏷️ Hashtag Discovery: Search and collect community posts and reels across any topic or trending hashtag (e.g., #marketing, #comedy, #ecommerce, #sports).
  • 👤 Creator & Uploader Attribution: Capture creator names, profile IDs, and direct URLs for every post and reel.
  • 💬 Recent Comments Extraction: Collect recent comments thread with author names and timestamps.
  • 📊 Accurate Engagement Metrics: Real-time counts for likes, reactions, comments, shares, and views (both formatted strings and numeric integers for easy filtering).
  • ✨ Pristine, Clean Text: Automatically cleans HTML entities (&, emojis), eliminates noisy metric prefixes, and extracts authentic hashtags without junk artifacts.

🎯 Dual-Engine Scraping Capabilities

This Actor features an intelligent Dual-Engine Architecture that automatically routes requests based on your input:

1️⃣ Mode 1: Direct Post URL Scraper (Ultra-Fast HTTP Engine)

Provide individual Facebook links under urls:

  • Supported Link Formats:
    • https://www.facebook.com/share/p/1DVg2qCC9Y/ (Photos / Posts)
    • https://www.facebook.com/100075450447536/posts/1130794772778860/
    • https://www.facebook.com/reel/2605277543319794/ (Reels)
    • https://www.facebook.com/watch/?v=1234567890 (Watch Videos)
    • https://www.facebook.com/photo.php?fbid=...
  • Features: Uses lightweight TLS-fingerprint bypass via curl_cffi and yt-dlp for lightning-fast speeds (avg. 2–5 seconds per post). Supports optional recent comments extraction.

2️⃣ Mode 2: Bulk Page & Hashtag Feeds (Playwright Browser Engine)

Provide Facebook Page URLs under pageUrls or keywords under hashtags:

  • Supported Feed Formats:
    • Page URL: https://www.facebook.com/MundoAnimalHistorias
    • Page Reels tab: https://www.facebook.com/ExamplePage/reels/
    • Hashtags: ["comedy", "tech", "travel"] or https://www.facebook.com/hashtag/comedy
  • Features: Emulates real user scrolling in a headless browser to discover up to 1,000 posts/reels per page or hashtag, enriched with 100% accurate GraphQL feedback data.

⚙️ Input Configuration & Parameters

The Actor accepts intuitive, flexible JSON input. You can run Mode 1, Mode 2, or both combined in a single execution!

ParameterTypeRequiredDefaultDescription
urlsArray of Objects❌ Optional[]Mode 1: Direct post, photo, reel, or video URLs to scrape.
pageUrlsArray of Strings❌ Optional[]Mode 2: Facebook Page or Profile URLs to scrape in bulk.
hashtagsArray of Strings❌ Optional[]Mode 2: Facebook hashtags (e.g. ["news", "comedy"]).
maxPostsInteger❌ Optional50Maximum posts/reels to extract per target page or hashtag (5 to 1000).
include_commentsBoolean❌ OptionalfalseEnable to extract recent comments for direct posts (Mode 1).
max_commentsInteger❌ Optional25Maximum recent comments to extract per direct post.
flattenOutputBoolean❌ OptionalfalseFlattens output into individual rows (ideal for CSV/Excel export).
maxConcurrencyInteger❌ Optional10Parallel concurrent workers for high-speed media enrichment (1–20).
headlessBoolean❌ OptionaltrueRuns Playwright browser in headless mode.
proxyObject❌ OptionalRESIDENTIALApify Residential Proxy configuration (strongly recommended).
cookie_headerString❌ Optional""Optional Facebook session cookies (c_user=...; xs=...) for restricted content.

📝 Input Examples

Example 1: Direct Post URLs (Photos, Reels, Videos with Comments)

{
"urls": [
{ "url": "https://web.facebook.com/share/p/1DVg2qCC9Y/" },
{ "url": "https://www.facebook.com/reel/2605277543319794/" }
],
"include_comments": true,
"max_comments": 20
}

Example 2: Bulk Page & Hashtag Scraping (Export to CSV/Excel)

{
"pageUrls": [
"https://www.facebook.com/MundoAnimalHistorias"
],
"hashtags": [
"comedy"
],
"maxPosts": 50,
"flattenOutput": true,
"proxy": {
"useApifyProxy": true,
"apifyProxyGroups": ["RESIDENTIAL"]
}
}

📤 Sample Output Data

Direct Post (Photo & Multi-Image Album)

{
"url": "https://www.facebook.com/100075450447536/posts/1130794772778860/",
"input_url": "https://web.facebook.com/share/p/1DVg2qCC9Y/",
"post_id": "1130794772778860",
"title": "# Hrithik Roshan's Family ❤️",
"caption": "# Hrithik Roshan's Family ❤️\n\nHrithik Roshan is one of Bollywood's most admired actors...",
"description": "# Hrithik Roshan's Family ❤️\n\nHrithik Roshan is one of Bollywood's most admired actors...",
"post_type": "photo",
"uploader": "ताजा खबर ऑनलाइन",
"uploader_id": "100075450447536",
"uploader_url": "https://www.facebook.com/100075450447536",
"published_time": 1793633680,
"date": "2026-11-02T15:34:40Z",
"post_date": "2026-11-02 15:34:40 UTC",
"likes": 9500,
"like_count": "9.5K",
"shares_count": 66,
"share_count": "66",
"images_count": 1,
"photo_download_url": "https://scontent-ord5-1.xx.fbcdn.net/v/...jpg",
"thumbnail_url": "https://scontent-ord5-1.xx.fbcdn.net/v/...jpg",
"hashtags": [],
"scraped_at": "2026-11-03T09:37:52.357274Z"
}

Page or Hashtag Reel (Video with Creator Attribution)

{
"target": "https://www.facebook.com/hashtag/comedy",
"target_title": "#comedy",
"post_number": 1,
"post_url": "https://www.facebook.com/reel/2139373990037087/",
"post_id": "2139373990037087",
"post_type": "video",
"uploader": "Paola Ruíz",
"uploader_id": "100044567891234",
"uploader_url": "https://web.facebook.com/paolaaruizb",
"caption": "ESPERA EL DISFRAZ ‼️😂 Jamás creí ponerme esto ….\n•\n• #comedy #humor #halloween",
"description": "ESPERA EL DISFRAZ ‼️😂 Jamás creí ponerme esto ….\n•\n• #comedy #humor #halloween",
"creation_time": "27 October 2026 at 22:02",
"timestamp": 1793138554,
"downloadable_url": "https://video.fbtr1-1.fna.fbcdn.net/o1/v/t2/f2/m367/...mp4",
"duration_seconds": 8.57,
"thumbnail_url": "https://scontent.fbtr1-1.fna.fbcdn.net/v/...jpg",
"hashtags": [
"#comedy",
"#humor",
"#halloween"
],
"likes": "1M",
"likes_count": 1021309,
"comments": "7294",
"comments_count": 7294,
"shares": "46K",
"shares_count": 46000,
"views": "6M",
"views_count": 6000000,
"mentions": [],
"recent_comments": []
}

📊 Complete Field Reference

FieldTypeDescription
uploaderStringCreator / Page Name that published the content.
uploader_idStringNumeric Facebook ID of the uploader (e.g. 100075450447536).
uploader_urlStringDirect Facebook profile or page link of the creator.
post_url / urlStringCanonical link to the post, photo, or reel.
post_idStringUnique Facebook numeric content ID.
post_typeStringPost format: photo, video, album, or reel.
captionStringClean post caption with HTML entities decoded and metrics stripped.
descriptionStringComplete post description text.
downloadable_urlStringDirect high-speed CDN URL for the progressive MP4 video or JPG photo.
photo_download_urlStringFull-resolution JPG/PNG image download link.
thumbnail_urlStringHigh-resolution thumbnail image preview link.
duration_secondsFloatVideo duration in seconds (e.g. 18.33).
creation_timeStringHuman-readable publication date & time (e.g. 02 November 2026 at 20:55).
timestampIntegerUnix epoch timestamp of publication.
likes / like_countString / IntFormatted like counter (e.g. "9.5K", 9500).
likes_countIntegerClean integer for filtering & sorting in Excel/BI tools.
views / view_countStringFormatted view count (e.g. "1.3M").
views_countIntegerClean integer view count (e.g. 1300000).
comments_countIntegerTotal comments count integer.
shares_countIntegerTotal shares count integer.
hashtagsArray of StringsExtracted authentic hashtags (e.g. ["#comedy", "#viral"]).
recent_commentsArray of ObjectsStructured list of recent comments with author, text, and time.

💰 Pay-Per-Event (PPE) Pricing

This Actor uses Apify's Pay-Per-Event (PPE) pricing model. You only pay for what you scrape with zero monthly commitments:

  • Event Name: post-scraped
  • Cost: Only $0.002 per successfully scraped post/reel (500 posts for just $1.00!).
  • Free Trial: New users receive free usage credits on Apify to test the scraper risk-free.

⚡ Performance, Memory & Proxy Optimization

  • Default Memory: 2048 MB (Configured automatically). This provides the perfect balance between high-speed browser rendering and cost efficiency without memory crashes.
  • Proxies: Facebook enforces strict IP rate limits. Using Apify Residential Proxies (RESIDENTIAL) guarantees uninterrupted 24/7 scraping with a 99.9% success rate.
  • Concurrency: Default concurrency is 10. Increase up to 20 for high-volume scraping jobs.

❓ Frequently Asked Questions (FAQ)

Q: Do I need a Facebook account or login cookies?

A: No! All public posts, photos, videos, reels, pages, and hashtag feeds are scraped completely anonymously without any login or credentials required.

Q: Can I download the videos and photos directly from the dataset?

A: Yes! Every record provides downloadable_url and photo_download_url pointing directly to the Facebook CDN. You can click to download directly from the Apify console or feed links into an automated downloader.

Q: How do I export data to Excel or Google Sheets?

A: Simply enable "flattenOutput": true. Once the run completes, click Export in the Apify Dataset tab and select CSV or Excel.

A: Yes. Scraping publicly accessible data that is not protected by login credentials has been ruled legal in numerous legal precedents (e.g., hiQ Labs v. LinkedIn). Always respect user privacy and adhere to applicable local regulations.


💬 Support & Custom Solutions

Need custom integrations, higher concurrency, or dedicated enterprise support?
Reach out to: codenest2.0@gmail.com