API Description

Facebook Comments API — Collect Facebook comments using the pagination, ordering and filters listed for this operation.

Authenticate with your Pangolinfo API Key to receive structured JSON data.

Request URL

POST https://scrapeapi.pangolinfo.com/api/v1/social/facebook-comments

Request Headers

ParametersParameter valueTypeDescription
Content-Typeapplication/jsonstringData format
AuthorizationBearer xxxstringAuthorization Token

Collection takes up to approximately 75 seconds. Set your client timeout to 90 seconds.

Request Parameters

ParameterRequiredTypeDescription
targetYesstringTarget URL, supported ID or search keyword for this operation.
optionsNoobjectOptional collection settings, described below.

options Parameters

ParameterRequiredTypeDescription
maxPagesNointegerPages to collect. Default: 1; values above 5 are capped at 5. Must be a positive integer.
Default: 1
Minimum: 1
Maximum: 5
cursorNostring | nullContinuation cursor from the previous response. Pass the value unchanged.
sortNostringResult ordering. Supported values are listed below.
Values: [“top”, “new”]
commentIdNostringParent comment identifier. Set this to collect replies instead of root comments.

Only the request parameters listed on this page are used; other fields are ignored. Pass pagination cursors back unchanged, without encoding, decoding or conversion.

One page by default, capped at five per request. Page counts must be positive integers; higher values are capped at five.

A non-empty commentId selects explicit reply mode. Direct replies are billed; Facebook also bills returned nested replies. Continue with the cursor described above.

Response Fields

FieldTypeDescription
codeintegerStatus code; 0 indicates success.
messagestringResponse message; ok on success.
pointCostnumberPoints charged for this request.
dataobjectCollected data, with fields described below.
metaobjectRequest identifier and duration in milliseconds.
billingobjectCharged units, unit price and billing rule version.

data Fields

FieldTypeDescription
typestringResult type.
commentsCountnumber | nullPlatform-reported comment total; not the number billed.
commentsobject[]Root comments in comment mode.
commentIdstringParent comment identifier. Set this to collect replies instead of root comments.
repliesobject[]Replies in reply mode.
paginationobjectContinuation cursor and whether more results are available.

data.comments[] Fields

FieldTypeDescription
avatarstring | nullAvatar URL.
nicknamestring | nullAuthor display name.
profileUrlstring | nullAuthor profile URL.
timeTextobject | nullTime text
contentstring | nullContent text; may be null for records without text.
moodnumber | nullMood
idstring | nullRecord identifier.
legacyIdstring | nullLegacy id
authorIdstring | nullAuthor id
authorTypestring | nullAuthor type
replyCountnumberPlatform-reported reply count.
urlstring | nullContent URL.
depthnumberComment nesting depth; 0 is a root comment.
parentIdstring | nullParent post or comment identifier.
replyCursorstring | nullCursor used to request replies to this comment.

data.comments[].timeText Fields

FieldTypeDescription
textstring | nullText value.
valuenumber | nullParsed value.

data.replies[] Fields

FieldTypeDescription
avatarstring | nullAvatar URL.
nicknamestring | nullAuthor display name.
profileUrlstring | nullAuthor profile URL.
timeTextobject | nullTime text
contentstring | nullContent text; may be null for records without text.
moodnumber | nullMood
idstring | nullRecord identifier.
legacyIdstring | nullLegacy id
authorIdstring | nullAuthor id
authorTypestring | nullAuthor type
replyCountnumberPlatform-reported reply count.
urlstring | nullContent URL.
depthnumberComment nesting depth; 0 is a root comment.
parentIdstring | nullParent post or comment identifier.
replyCursorstring | nullCursor used to request replies to this comment.

Request Example

curl --request POST \
  --url https://scrapeapi.pangolinfo.com/api/v1/social/facebook-comments \
  --header 'Authorization: Bearer YOUR_PANGOLINFO_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "target": "https://www.facebook.com/watch/?v=28751926967826750"
}'

Response Example

This excerpt shows the first item of each list. Long text and URLs are shortened; pointCost is the charge for the complete response. The playground contains the full schema.

{
  "code": 0,
  "message": "ok",
  "pointCost": 1.6,
  "data": {
    "type": "comments",
    "commentsCount": 20,
    "comments": [
      {
        "avatar": "https://scontent-scl3-1.xx.fbcdn.net/v/t39.30808-1/830541597_10165061607287628_7626207140813021480_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx720x720&ctp=s32x32&_nc_ca...",
        "nickname": "Tony Gibson",
        "profileUrl": "https://www.facebook.com/tony.gibson.3154",
        "timeText": {
          "text": "2026-09-21T23:32:36.000Z",
          "value": 1790033556000
        },
        "content": "We bought one almost a year ago and it has been awesome running power tools it’s piece of mine knowing if the electric goes out it can be used for various th...",
        "mood": 3,
        "id": "Y29tbWVudDoxMDM4MDAzOTMyNTc1OTYwXzIzNTI1MTc5Njg2MTk5OTQ=",
        "legacyId": "2352517968619994",
        "authorId": "pfbid02QenCGVC6HrcBcPWrdqcURw1j1JQLi2uwkKbNZYxhcmPGjFvNVKzyz74jWjgkWj9ul",
        "authorType": "User",
        "replyCount": 0,
        "url": "https://www.facebook.com/reel/28751926967826750/?comment_id=2352517968619994",
        "depth": 0,
        "parentId": null,
        "replyCursor": null
      }
    ],
    "pagination": {
      "comments": {
        "cursor": "MToxNzkzOTU0MzA5OgF_hBcpGf3Wujq2Q812CnP0PqUwVRdBr8-CX6tXlSRKZ2xicokF-epTTuIYJk2_nhGoU5qTZbjHgHoLZmmC8y8owORnyBzmYWw870UPSrtovCXSfwjQyV7SXdzlPqA2Ma7ZJGihUAbtx...",
        "hasMore": true
      }
    }
  },
  "meta": {
    "requestId": "pg-audit-r1-facebook-comments-1793954306411882500",
    "durationMs": 7166
  },
  "billing": {
    "unitPrice": 0.8,
    "ruleVersion": "social-primary-v2",
    "billedCount": 2,
    "pointCost": 1.6
  }
}

Points Usage

0.8 points per root comment and returned nested reply, including nested replies in explicit reply mode.

Empty results and failed requests are not charged. Duplicate IDs are counted once within a response. Separate calls and pages are billed separately. See Social Media Reviews API billing.

Try it