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

Pricing

from $0.80 / 1,000 results

Go to Apify Store
Facebook Comment Extractor 🗨️⚡: Data, Details & Analytics

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

TheDoor

Maintained by Community

Actor stats

0

Bookmarked

7

Total users

1

Monthly active users

10 hours ago

Last modified

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

FieldTypeRequiredDefaultDescription
postUrlsstring[]Yes*[]List of Facebook URLs
postUrlstringYes*-Single URL (alternative to postUrls)
orderingModestringNo"NEWEST""RANKED" or "NEWEST"
targetCommentsintegerNo50Comments per URL (-1 = all)
includeRepliesbooleanNotrueInclude nested replies
includeReactionsbooleanNotrueInclude 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

FieldTypeDescription
post_urlstringSource Facebook URL
idstringComment ID
textstringComment text
timestampintegerUnix timestamp (seconds)
comment_timestringISO 8601 datetime
author_namestringAuthor display name
author_idstringAuthor Facebook ID
reactions_countintegerTotal reactions
replies_countintegerTotal replies
reactionsarrayReaction breakdown (optional)
repliesarrayNested 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

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.