Facebook Comments (Structured Output) avatar

Facebook Comments (Structured Output)

Pricing

from $0.001 / actor start

Go to Apify Store
Facebook Comments (Structured Output)

Facebook Comments (Structured Output)

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

Pricing

from $0.001 / actor start

Rating

5.0

(1)

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, consistent dataset of comments — author, text, date, and engagement counts.

Input

FieldTypeRequiredDescription
postUrlsarray of stringYesFacebook post, reel, or video URLs to fetch comments from.
maxCommentsintegerNoMaximum number of comments to retrieve per post (default 50).
includeNestedCommentsbooleanNoWhether to include replies to comments (default false).
viewOptionstringNoSort order: RANKED_UNFILTERED (most relevant) or RECENT_ACTIVITY (newest). Default RANKED_UNFILTERED.

Example input

{
"postUrls": [
"https://www.facebook.com/reel/837427248653538"
],
"maxComments": 50,
"includeNestedComments": false,
"viewOption": "RANKED_UNFILTERED"
}

Output

Each item in the dataset represents one comment:

FieldTypeDescription
commentIdstringUnique identifier of the comment.
postUrlstringURL of the post the comment belongs to.
commentUrlstringDirect URL to the comment.
textstringThe comment 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.
authorProfileUrlstringURL of the author's profile.
authorAvatarUrlstringURL of the author's profile picture.
likesCountintegerNumber of likes on the comment.
repliesCountintegerNumber of replies to the comment.
attachmentUrlsarray of stringDirect URLs to any stickers, GIFs, or media attached to the comment.

Example output

{
"commentId": "1704873500946875",
"postUrl": "https://www.facebook.com/reel/837427248653538",
"commentUrl": "https://www.facebook.com/reel/837427248653538/?comment_id=1704873500946875",
"text": "Happy Mother's Day [GIF: GIPHY]",
"date": "2026-04-13T14:00:29.000Z",
"authorName": "Mohd Fiqrie",
"authorProfileUrl": "https://www.facebook.com/mohd.fiqrie.549",
"authorAvatarUrl": "https://scontent.fglw1-1.fna.fbcdn.net/v/t1.6435-1/119881097_367618394606861_203...",
"likesCount": 0,
"repliesCount": 1,
"attachmentUrls": [
"https://external-ord5-2.xx.fbcdn.net/emg1/v/t13/12752037886576399210?url=https%3A%2F%2Fmedia3.giphy.com%2F..."
]
}

Usage

  1. Provide one or more Facebook post URLs in postUrls.
  2. Optionally set maxComments to cap how many comments are returned per post.
  3. Optionally enable includeNestedComments to also fetch replies to comments.
  4. Optionally choose viewOption to control sort order (most relevant or newest).
  5. Run the Actor.
  6. Collect the structured comments from the Actor's dataset.