Facebook Comment Extractor 🗨️⚡: Data, Details & Analytics

Facebook Comment Extractor 🗨️⚡: Data, Details & Analytics

by thedoor

✨ Get all Videos, Reels, Posts, Groups — and all their comments — in one click. Fast, clean, and effortless. Works with multiple URLs and supports eve...

399 runs
8 users
Try This Actor

Opens on Apify.com

About Facebook Comment Extractor 🗨️⚡: Data, Details & Analytics

✨ Get all Videos, Reels, Posts, Groups — and all their comments — in one click. Fast, clean, and effortless. Works with multiple URLs and supports every Facebook link format. Download data in JSON, CSV, Excel for use in apps, spreadsheets, and reports.

What does this actor do?

Facebook Comment Extractor 🗨️⚡: Data, Details & Analytics is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

Facebook Comment Scraper (Apify Actor) Scrapes comments and replies from Facebook posts, videos, reels, and more. ## Supported URL Formats https://www.facebook.com/share/p/{share_id}/ (auto-resolved) https://www.facebook.com/share/v/{share_id}/ (auto-resolved) https://www.facebook.com/reel/{reel_id} https://www.facebook.com/watch/?v={video_id} https://www.facebook.com/{page}/videos/{video_id} https://www.facebook.com/groups/{group}/permalink/{post_id}/ https://www.facebook.com/{page}/posts/{post_id} https://www.facebook.com/{page}/posts/pfbid{...} https://www.facebook.com/permalink.php?story_fbid={post_id}&id={page_id} https://www.facebook.com/photo/?fbid={photo_id} ## Input JSON json { "postUrls": [ "https://www.facebook.com/share/p/17UEMxPmxv/", "https://www.facebook.com/BFMTV/videos/500165819136200/", "https://www.facebook.com/groups/example/permalink/123456789/" ], "orderingMode": "NEWEST", "targetComments": 100, "includeReplies": true, "includeReactions": true, } ### Input Fields | Field | Type | Required | Default | Description | |-------|------|----------|---------|-------------| | postUrls | string[] | Yes | [] | List of Facebook URLs | | postUrl | string | Yes | - | Single URL (alternative to postUrls) | | orderingMode | string | No | "NEWEST" | "RANKED" or "NEWEST" | | targetComments | integer | No | 50 | Comments per URL (-1 = all) | | includeReplies | boolean | No | true | Include nested replies | | includeReactions | boolean | No | true | Include reaction details | Either postUrls or postUrl is required. --- ## Output JSON Each comment is a separate dataset item: json { "post_url": "https://www.facebook.com/...", "id": "987654321", "text": "This is a comment", "timestamp": 1764564157, "comment_time": "2025-12-01T10:15:57.000Z", "author_name": "John Doe", "author_id": "100001234567890", "reactions_count": 15, "replies_count": 2, "reactions": [ { "type": "LIKE", "count": 10 }, { "type": "LOVE", "count": 5 } ], "replies": [ { "id": "111222333", "text": "First reply", "timestamp": 1764564200, "comment_time": "2025-12-01T10:16:40.000Z", "author_name": "Jane Smith", "author_id": "100009876543210", "reactions_count": 2, "replies_count": 1, "replies": [ { "id": "444555666", "text": "Nested reply", "author_name": "Bob Wilson", "reactions_count": 0, "replies_count": 0 } ] } ] } ### Output Fields | Field | Type | Description | |-------|------|-------------| | post_url | string | Source Facebook URL | | id | string | Comment ID | | text | string | Comment text | | timestamp | integer | Unix timestamp (seconds) | | comment_time | string | ISO 8601 datetime | | author_name | string | Author display name | | author_id | string | Author Facebook ID | | reactions_count | integer | Total reactions | | replies_count | integer | Total replies | | reactions | array | Reaction breakdown (optional) | | replies | array | Nested replies (optional) | ### Reaction Types LIKE, LOVE, HAHA, WOW, SAD, ANGRY, CARE --- ## Features - Share Link Resolution: /share/p/ and /share/v/ URLs are automatically resolved - Video Support: Videos, reels, and watch content are fully supported - Page-Based Extraction: For videos, feedback ID is extracted from page HTML (more reliable) - Nested Replies: Recursively fetches replies up to 5 levels deep - Parallel Processing: Multiple URLs processed concurrently - Retry Logic: Automatic retry with different templates on failure - Streaming Output*: Comments pushed to dataset as they're fetched ## Usage ### Via Apify Console 1. Go to the actor page 2. Enter post URLs in the input 3. Configure options as needed 4. Run the actor 5. Download results from the Dataset tab ### Via API bash curl -X POST "https://api.apify.com/v2/acts/YOUR_ACTOR_ID/runs" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -d '{ "postUrls": ["https://www.facebook.com/share/p/17UEMxPmxv/"], "targetComments": 100 }' ### Via Apify Client (JavaScript) javascript import { ApifyClient } from 'apify-client'; const client = new ApifyClient({ token: 'YOUR_API_TOKEN' }); const run = await client.actor('YOUR_ACTOR_ID').call({ postUrls: ['https://www.facebook.com/BFMTV/videos/500165819136200/'], targetComments: 100, includeReplies: true }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); console.log(items); --- ## Scraping Policy This actor complies with Apify's Terms of Service and applicable laws. Users are responsible for ensuring their use of this tool adheres to Facebook's Terms of Service and all relevant data protection regulations.

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Facebook Comment Extractor 🗨️⚡: Data, Details & Analytics now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
thedoor
Pricing
Paid
Total Runs
399
Active Users
8
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support