Facebook Comment Extractor 🗨️⚡: Data, Details & Analytics
Pricing
from $0.80 / 1,000 results
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.
Pricing
from $0.80 / 1,000 results
Rating
0.0
(0)
Developer

TheDoor
Actor stats
0
Bookmarked
7
Total users
1
Monthly active users
10 hours ago
Last modified
Categories
Share
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
{"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:
{"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
- Go to the actor page
- Enter post URLs in the input
- Configure options as needed
- Run the actor
- Download results from the Dataset tab
Via API
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)
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.
