Facebook comment replies API
Replies to one comment.
GET /v1/facebook/post/comment/replies
GET /v1/facebook/post/comment/replies
Replies to one comment. Either the post url and the parent comment_id, or the comment's feedback_id and expansion_token as the comments list returns them (both are needed).
- Cost: 1 credit
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
url | URL | one of | Post, video or reel URL. Accepted hosts: facebook.com, fb.com, fb.watch. |
comment_id | string | no | Id of the parent comment. Also accepted as commentId. |
feedback_id | string | one of | The comment's feedback id (not the comment id), from post/comments. |
expansion_token | string | no | The comment's expansion token, from post/comments. |
Send at least one of feedback_id, url. If you send several, the first listed is used and the rest are ignored.
Every request also accepts:
cursor: the cursor from the previous page (Pagination).trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
1curl -G "https://api.socialscrape.dev/v1/facebook/post/comment/replies" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode "url=https://www.facebook.com/reel/2166091230582141/" \4 --data-urlencode "comment_id=2082653245809386"1import os2import requests34params = {5 "url": "https://www.facebook.com/reel/2166091230582141/",6 "comment_id": "2082653245809386",7}8res = requests.get(9 "https://api.socialscrape.dev/v1/facebook/post/comment/replies",10 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},11 params=params,12)13body = res.json()1415if body["ok"]:16 print(body["data"])17else:18 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/facebook/post/comment/replies");2url.search = new URLSearchParams({3 "url": "https://www.facebook.com/reel/2166091230582141/",4 "comment_id": "2082653245809386"5}).toString();6const res = await fetch(url, {7 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },8});9const body = await res.json();1011if (body.ok) {12 console.log(body.data);13} else {14 console.error(body.error.code, body.error.message);15}1{2 "nodes": [3 {4 "name": "SocialScrape Facebook comment replies",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/facebook/post/comment/replies",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "url",19 "value": "https://www.facebook.com/reel/2166091230582141/"20 },21 {22 "name": "comment_id",23 "value": "2082653245809386"24 }25 ]26 },27 "sendHeaders": true,28 "headerParameters": {29 "parameters": [30 {31 "name": "x-api-key",32 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"33 }34 ]35 }36 }37 }38 ],39 "connections": {}40}Example response#
This is a sample from a recorded response, lists and long text are shortened, other people's names and handles are replaced. Status 200.
1{2 "ok": true,3 "credits_charged": 1,4 "credits_remaining": 4999,5 "cached": false,6 "cached_at": null,7 "request_id": "req_05da3a79480a285e0ec7d057",8 "data": {9 "object": "list",10 "items": [11 {12 "object": "comment",13 "platform": "facebook",14 "id": "994541046495331",15 "url": "https://www.facebook.com/reel/2166091230582141/?comment_id=2082653245809386&reply_comment_id=994541046495331",16 "post_id": null,17 "parent_id": "2082653245809386",18 "author": {19 "id": "1000000001",20 "handle": "sample_user",21 "name": "Sample User",22 "url": null,23 "avatar_url": null,24 "verified": false25 },26 "text": "Hola nike buenas noches soy phantom me pongo en contacto con ustedes para preguntarles que es lo que podemos hacer por hacer tacos para futbol profesional soccer con mi imagen y mi nombre espero contesten este mensaje y podamos hablar más...",27 "published_at": "2026-05-11T05:02:07Z",28 "stats": {29 "likes": 2,30 "replies": 1,31 "dislikes": null32 },33 "is_pinned": null,34 "is_by_creator": null,35 "extra": {36 "depth": 1,37 "expansion_token": "MjoxNzkzMzE5ODc4OgF_XfQI35y9txYZSGO1L6nc693dNU7g3DqY3swQ8m1_P4piHXaF83MUqoD6vmeByXtjSYORMWQJxQKb2g901tOQjKQsb0iAyqwQNhepN6QSxpl52fCTsCe91K9pn2qbN5xoaQWLa6UmnUzdULZH9vvMa7L5WxErtAAfuMva61yvLAqQUZtEoiwDPraIHXf6OMzvjPYQY-xDt6cCpoXXcuagsgjnKGST...",38 "feedback_id": "ZmVlZGJhY2s6MTM5MzQ2MTExNTQ4MTkyN185OTQ1NDEwNDY0OTUzMzE=",39 "graphql_id": "Y29tbWVudDoxMzkzNDYxMTE1NDgxOTI3Xzk5NDU0MTA0NjQ5NTMzMQ=="40 }41 },42 {43 "object": "comment",44 "platform": "facebook",45 "id": "943757141880594",46 "url": "https://www.facebook.com/reel/2166091230582141/?comment_id=2082653245809386&reply_comment_id=943757141880594",47 "post_id": null,48 "parent_id": "2082653245809386",49 "author": {50 "id": "1000000001",51 "handle": "sample_user",52 "name": "Sample User",53 "url": null,54 "avatar_url": null,55 "verified": false56 },57 "text": "Erick Coyopol Landa Hey",58 "published_at": "2026-05-12T10:03:43Z",59 "stats": {60 "likes": 0,61 "replies": 0,62 "dislikes": null63 },64 "is_pinned": null,65 "is_by_creator": null,66 "extra": {67 "depth": 2,68 "expansion_token": "MjoxNzkzMzE5ODc4OgF_oh3_o3X8NU0z1YHwuUzBRLruGGCD0OGKRjWkjwSke32IdQIVjK-LjVcN4I5U8XWFw8yxbqobJLE3BjeyEzA9EdN_XYqinjuPJSi0-Yar5uZv1OcaDCwPyQtE3olledjFx7c7Ej-JSBzJFFmoFim9BoKpWUhcxNd1KAKKuzPQKnFCx3lcbHDu5XwljDUDmqZZIaHDCGIPFwFZX4Z-OFG9IITKvWk8...",69 "feedback_id": "ZmVlZGJhY2s6MTM5MzQ2MTExNTQ4MTkyN185NDM3NTcxNDE4ODA1OTQ=",70 "graphql_id": "Y29tbWVudDoxMzkzNDYxMTE1NDgxOTI3Xzk0Mzc1NzE0MTg4MDU5NA=="71 }72 }73 ],74 "cursor": null,75 "has_more": false,76 "parent": null77 },78 "cursor": null,79 "has_more": false80}Response#
A list of Comment objects in data.items, with data.cursor and data.has_more.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
unsupported_url | 400 | no | The URL is not one this endpoint accepts (wrong platform or form). |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Related endpoints#
- Facebook Ad Library search (
GET /v1/facebook/ad-library/search) - Facebook Ad Library search (POST body) (
POST /v1/facebook/ad-library/search) - Facebook Ad Library ads by page (
GET /v1/facebook/ad-library/company/ads) - Facebook Ad Library ads by page (POST body) (
POST /v1/facebook/ad-library/company/ads) - Facebook Ad Library ad details (
GET /v1/facebook/ad-library/ad) - Facebook Ad Library ad transcript (
GET /v1/facebook/ad-library/ad/transcript) - Facebook Ad Library advertiser search (
GET /v1/facebook/ad-library/search/companies) - Facebook profile or page (
GET /v1/facebook/profile)