Facebook Comments Scraper avatar

Facebook Comments Scraper

Pricing

from $1.50 / 1,000 comments

Go to Apify Store
Facebook Comments Scraper

Facebook Comments Scraper

Scrape comments and replies from public Facebook posts and reels without login, with a per-post coverage report. $1.50 per 1,000 comments.

Pricing

from $1.50 / 1,000 comments

Rating

0.0

(0)

Developer

Daniel G

Daniel G

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

3

Monthly active users

2 days ago

Last modified

Categories

Share

Scrape comments and replies from public Facebook posts, reels and videos without login. Each post gets a coverage report describing whether comment pages and reply threads were read to the end. Each returned comment costs $0.0015 ($1.50 per 1,000 comments), including replies; a $0.00005 start fee applies per run.

What it returns

Each dataset item is one comment or reply. Replies are separate rows; threadingDepth is 0 for top-level comments and higher for replies, while replyToCommentId identifies the direct parent. Nested arrays such as comments and replies are empty. A comment made only of a sticker, GIF or photo is still returned: text may be null and attachments contains available media details.

NameTypeMeaning
facebookUrlstring or nullFacebook URL of the post.
inputUrlstring or nullURL supplied in startUrls.
postIdstring or nullNumeric post ID.
postUrlstring or nullResolved post URL.
postTitlestring or nullPost title, when available.
postDescriptionstring or nullPost text, when available.
commentUrlstring or nullDirect comment URL.
commentIdstring or nullNumeric comment ID.
facebookCommentId, facebookIdstring or nullNumeric comment ID aliases.
idstring or nullBase64 Facebook comment ID.
feedbackIdstring or nullFacebook feedback ID.
name, authorName, profileNamestring or nullCommenter's display name.
authorobject or nullAuthor ID, name and profile URL.
profileIdstring or nullCommenter's Facebook ID.
profileUrlstring or nullCommenter's profile URL.
profilePicturestring or nullProfile picture URL, when available.
text, messagestring or nullComment text; may be null for media-only comments.
attachmentsarray or nullAvailable comment media attachments.
date, createdAt, publishedAtstring or nullComment time in ISO 8601 format.
timestamp, timenumber or nullComment time as Unix seconds.
likesCountstring or nullReaction count as a string.
likes, likeCountnumber or nullReaction count as a number.
commentsCountnumber or nullReported replies to this comment.
threadingDepthnumber or nullNesting depth; top-level comments are 0.
replyToCommentId, parentCommentId, parentFacebookCommentId, parentIdstring or nullDirect parent comment ID for replies.
rootCommentIdstring or nullRoot comment ID when available.
comments, repliesarray or nullEmpty; replies are separate dataset rows.
parentComment, parentReplyobject or nullParent objects; currently null.

Example rows (shortened text and placeholder author details):

[
{"facebookUrl":"https://www.facebook.com/example/posts/POST_ID","inputUrl":"https://www.facebook.com/example/posts/POST_ID","postId":"POST_ID","postUrl":"https://www.facebook.com/example/posts/POST_ID","commentUrl":"https://www.facebook.com/example/posts/POST_ID?comment_id=COMMENT_ID","commentId":"COMMENT_ID","facebookCommentId":"COMMENT_ID","facebookId":"COMMENT_ID","id":"BASE64_COMMENT_ID","feedbackId":"BASE64_FEEDBACK_ID","name":"Example Author","authorName":"Example Author","profileName":"Example Author","author":{"id":"AUTHOR_ID","name":"Example Author","url":"https://www.facebook.com/AUTHOR_ID"},"profileId":"AUTHOR_ID","profileUrl":"https://www.facebook.com/AUTHOR_ID","profilePicture":null,"date":"2026-10-04T09:58:43.000Z","createdAt":"2026-10-04T09:58:43.000Z","publishedAt":"2026-10-04T09:58:43.000Z","timestamp":1791112723,"time":1791112723,"text":"Example comment text…","message":"Example comment text…","attachments":[],"likesCount":"24","likes":24,"likeCount":24,"commentsCount":0,"threadingDepth":0,"replyToCommentId":null,"parentCommentId":null,"parentFacebookCommentId":null,"parentId":null,"rootCommentId":null,"comments":[],"replies":[],"parentComment":null,"parentReply":null},
{"facebookUrl":"https://www.facebook.com/example/posts/POST_ID","inputUrl":"https://www.facebook.com/example/posts/POST_ID","postId":"POST_ID","postUrl":"https://www.facebook.com/example/posts/POST_ID","commentUrl":"https://www.facebook.com/example/posts/POST_ID?comment_id=PARENT_COMMENT_ID&reply_comment_id=REPLY_ID","commentId":"REPLY_ID","facebookCommentId":"REPLY_ID","facebookId":"REPLY_ID","id":"BASE64_REPLY_ID","feedbackId":"BASE64_REPLY_FEEDBACK_ID","name":"Another Author","authorName":"Another Author","profileName":"Another Author","author":{"id":"AUTHOR_ID_2","name":"Another Author","url":"https://www.facebook.com/AUTHOR_ID_2"},"profileId":"AUTHOR_ID_2","profileUrl":"https://www.facebook.com/AUTHOR_ID_2","profilePicture":null,"date":"2026-10-04T10:42:05.000Z","createdAt":"2026-10-04T10:42:05.000Z","publishedAt":"2026-10-04T10:42:05.000Z","timestamp":1791115325,"time":1791115325,"text":"Example reply text…","message":"Example reply text…","attachments":[],"likesCount":"5","likes":5,"likeCount":5,"commentsCount":0,"threadingDepth":1,"replyToCommentId":"PARENT_COMMENT_ID","parentCommentId":"PARENT_COMMENT_ID","parentFacebookCommentId":"PARENT_COMMENT_ID","parentId":"PARENT_COMMENT_ID","rootCommentId":null,"comments":[],"replies":[],"parentComment":null,"parentReply":null}
]

Input

FieldDefaultMeaning
startUrlsRequiredArray of Facebook post URLs; each object has a url.
resultsLimitNo limitMaximum rows per post, replies included. Omit it to collect all visible comments.
includeNestedCommentsfalseFetch replies and nested replies as separate rows.
viewOptionRANKED_UNFILTEREDOrdering: RANKED_UNFILTERED (All comments), RECENT_ACTIVITY (Newest), or RANKED_THREADED (Most relevant). Facebook may offer different orderings on different posts; the Actor falls back to an available ordering if needed.
onlyCommentsNewerThanNo lower boundInclusive date or datetime, or relative value such as 7 days.

One post, all visible comments and replies:

{"startUrls":[{"url":"https://www.facebook.com/example/posts/123456789"}],"includeNestedComments":true}

Newest 50 comments from each of several posts:

{"startUrls":[{"url":"https://www.facebook.com/example/posts/123456789"},{"url":"https://www.facebook.com/example/posts/987654321"}],"resultsLimit":50,"viewOption":"RECENT_ACTIVITY"}

resultsLimit applies separately to each URL and counts replies when they are enabled.

Supported URLs

URLs may use www.facebook.com, m.facebook.com or web.facebook.com.

URL formExample path
Post with numeric ID or pfbid/Page/posts/123456789, /Page/posts/pfbidCODE
Permalink/permalink.php?story_fbid=123&id=456
Group post (public groups)/groups/GROUP/posts/123, /groups/GROUP/permalink/123
Photo/photo/?fbid=123
Reel/reel/123
Watch/watch/?v=123
Video/Page/videos/123
Share/share/r/CODE, /share/v/CODE, /share/p/CODE

Coverage report

The default key-value store's OUTPUT record contains schemaVersion, actorBuild and a targets array with one report per input URL. Each COVERAGE log line contains that URL's report. Reports include postId, status, stopReason, requested and used ordering, Facebook's reported totals, emitted row counts, truncated thread count, failed requests, retries, logged-out visibility and errors.

StatusMeaning
completeEvery comment page and enabled reply thread was read to the end.
partialCollection stopped at the result limit, charge limit, paging shortfall or after an error with some rows emitted.
unavailableThe post was not found or is age-gated.
failedThe Actor could not collect rows or establish coverage.

reportedTotal is Facebook's own total count, and topLevelReported is its top-level count. The reported total can be a few higher than the rows logged-out visitors can see because Facebook hides some comments from logged-out visitors. end_of_comments means paging ended normally. results_limit and charge_cap identify those limits; not_found and age_gated identify unavailable posts. paging_cut_short means Facebook ended paging while reporting more than 30 top-level comments and fewer than half that count were traversed. This is reported as partial coverage.

Pricing

Runs by users on Apify's free plan are limited to 3 URLs and 20 results per run.

  • comment: $0.0015 per returned row ($1.50 per 1,000), with replies charged the same as top-level comments.
  • Start fee: $0.00005 per run.
  • Unavailable posts: free.

For 100 returned rows across available posts, event charges are $0.15; with one run's start fee, the total is $0.15005. When the configured charge limit is reached, the Actor stops emitting rows and stops crawling; the affected report has status: "partial" and stopReason: "charge_cap".

Limits

Only public posts visible without login can be collected, including posts in public groups. Some comments are hidden from logged-out visitors and cannot be returned. A URL that is not a single post (for example a Page or group home page) is reported as failed with stopReason: "unsupported_url"; the other URLs in the run are still processed.

Use via API

Send JSON to the synchronous dataset-items endpoint:

curl -X POST 'https://api.apify.com/v2/acts/LordFloofington~facebook-comments-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
--data '{"startUrls":[{"url":"https://www.facebook.com/example/posts/123456789"}],"includeNestedComments":true}'

Compliance

Users are responsible for complying with Facebook's terms and applicable law when using this Actor.