Facebook Comments with Structured Output avatar

Facebook Comments with Structured Output

Pricing

from $4.00 / 1,000 results

Go to Apify Store
Facebook Comments with Structured Output

Facebook Comments with Structured Output

Pull the comments from any Facebook post in a structured format.

Pricing

from $4.00 / 1,000 results

Rating

0.0

(0)

Developer

Ritozpal

Ritozpal

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

3 days ago

Last modified

Share

Agent A — Structured Facebook Comments

Provides structured Facebook comments. Give it one or more Facebook post URLs and it returns a clean, flat dataset of comments and their replies — author, text, date, engagement, and links.

Input

FieldTypeRequiredDescription
postUrlsarray of stringYesFacebook post, reel, video, or group post URLs to fetch comments from.
maxCommentsintegerNoMaximum top-level comments per post (default 50).
maxRepliesPerCommentintegerNoMaximum replies per top-level comment (default 5). Set to 0 to skip replies.
commentsSortOrderstringNoSort order: newest or most_relevant. Default newest.

Example input

{
"postUrls": [
"https://www.facebook.com/groups/888535321742765/posts/2048813859048233"
],
"maxComments": 50,
"maxRepliesPerComment": 5,
"commentsSortOrder": "newest"
}

Output

Each item in the dataset represents one comment or reply. Replies are flattened into the same list and linked back via parentCommentId. Top-level comments have an empty parentCommentId.

FieldTypeDescription
commentIdstringNumeric Facebook ID of the comment.
parentCommentIdstringEmpty for top-level comments; the parent comment's commentId for replies.
internalIdstringBase64-encoded internal Facebook ID.
feedbackIdstringFacebook feedback ID for the comment.
postUrlstringURL of the post the comment belongs to.
inputUrlstringThe URL originally provided as input.
fullUrlstringFull URL of the post (usually same as postUrl).
postIdstringNumeric Facebook ID of the post.
commentUrlstringDirect URL to the comment.
textstringComment text. Any sticker or GIF is appended in brackets, e.g. [Sticker: heart].
datestringWhen the comment was posted (ISO 8601, UTC).
authorNamestringDisplay name of the comment author.
authorIdstringFacebook profile ID of the author.
authorProfileUrlstringURL of the author's profile. May be empty — Facebook doesn't always expose it.
authorAvatarUrlstringURL of the author's profile picture.
likesCountintegerNumber of likes on the comment.
repliesCountintegerNumber of replies to the comment.
threadingDepthinteger0 for top-level comments, 1+ for replies.
expansionTokenstringInternal pagination token from Facebook (advanced use).
attachmentUrlsarray of stringDirect URLs to any stickers, GIFs, or media attached to the comment.

Usage

  1. Provide one or more Facebook post URLs in postUrls.
  2. Optionally set maxComments, maxRepliesPerComment, and commentsSortOrder.
  3. Run the Actor.
  4. Collect the structured comments — top-level rows have threadingDepth: 0; replies have higher depth and a populated parentCommentId.