Facebook Comments (Structured Output)
Pricing
from $0.001 / actor start
Go to Apify Store

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
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
2
Monthly active users
3 days ago
Last modified
Categories
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
| Field | Type | Required | Description |
|---|---|---|---|
postUrls | array of string | Yes | Facebook post, reel, or video URLs to fetch comments from. |
maxComments | integer | No | Maximum number of comments to retrieve per post (default 50). |
includeNestedComments | boolean | No | Whether to include replies to comments (default false). |
viewOption | string | No | Sort 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:
| Field | Type | Description |
|---|---|---|
commentId | string | Unique identifier of the comment. |
postUrl | string | URL of the post the comment belongs to. |
commentUrl | string | Direct URL to the comment. |
text | string | The comment text. Any sticker or GIF is appended in brackets, e.g. [Sticker: heart]. |
date | string | When the comment was posted (ISO 8601, UTC). |
authorName | string | Display name of the comment author. |
authorProfileUrl | string | URL of the author's profile. |
authorAvatarUrl | string | URL of the author's profile picture. |
likesCount | integer | Number of likes on the comment. |
repliesCount | integer | Number of replies to the comment. |
attachmentUrls | array of string | Direct 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
- Provide one or more Facebook post URLs in
postUrls. - Optionally set
maxCommentsto cap how many comments are returned per post. - Optionally enable
includeNestedCommentsto also fetch replies to comments. - Optionally choose
viewOptionto control sort order (most relevant or newest). - Run the Actor.
- Collect the structured comments from the Actor's dataset.