Facebook comment replies API
Replies to one comment.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
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).
You send one of feedback_id or url.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/facebook/post/comment/replies" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'url=https://www.facebook.com/reel/2166091230582141/' \
--data-urlencode 'comment_id=2082653245809386'import os
import requests
params = {
"url": "https://www.facebook.com/reel/2166091230582141/",
"comment_id": "2082653245809386",
}
res = requests.get(
"https://api.socialscrape.io/v1/facebook/post/comment/replies",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/facebook/post/comment/replies");
url.search = new URLSearchParams({
url: "https://www.facebook.com/reel/2166091230582141/",
comment_id: "2082653245809386",
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape Facebook comment replies",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/facebook/post/comment/replies",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "url",
"value": "https://www.facebook.com/reel/2166091230582141/"
},
{
"name": "comment_id",
"value": "2082653245809386"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | url | one of | Post, video or reel URL. |
comment_id | string | 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 | The comment's expansion token, from `post/comments`. | |
cursor | string | Opaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_05da3a79480a285e0ec7d057",
"data": {
"object": "list",
"items": [
{
"object": "comment",
"platform": "facebook",
"id": "994541046495331",
"url": "https://www.facebook.com/reel/2166091230582141/?comment_id=2082653245809386&reply_comment_id=994541046495331",
"post_id": null,
"parent_id": "2082653245809386",
"author": {
"id": "1000000001",
"handle": "sample_user",
"name": "Sample User",
"url": null,
"avatar_url": null,
"verified": false
},
"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 s...",
"published_at": "2026-05-11T05:02:07Z",
"stats": {
"likes": 2,
"replies": 1,
"dislikes": null
},
"is_pinned": null,
"is_by_creator": null,
"extra": {
"depth": 1,
"expansion_token": "MjoxNzkzMzE5ODc4OgF_XfQI35y9txYZSGO1L6nc693dNU7g3DqY3swQ8m1_P4piHXaF83MUqoD6vmeByXtjSYORMWQJxQKb2g901tOQjKQsb0iAyqwQNhepN6QSxpl52fCTsCe91K9pn2qbN5xoaQWLa6Umn...",
"feedback_id": "ZmVlZGJhY2s6MTM5MzQ2MTExNTQ4MTkyN185OTQ1NDEwNDY0OTUzMzE=",
"graphql_id": "Y29tbWVudDoxMzkzNDYxMTE1NDgxOTI3Xzk5NDU0MTA0NjQ5NTMzMQ=="
}
},
{
"object": "comment",
"platform": "facebook",
"id": "943757141880594",
"url": "https://www.facebook.com/reel/2166091230582141/?comment_id=2082653245809386&reply_comment_id=943757141880594",
"post_id": null,
"parent_id": "2082653245809386",
"author": {
"id": "1000000001",
"handle": "sample_user",
"name": "Sample User",
"url": null,
"avatar_url": null,
"verified": false
},
"text": "Erick Coyopol Landa Hey",
"published_at": "2026-05-12T10:03:43Z",
"stats": {
"likes": 0,
"replies": 0,
"dislikes": null
},
"is_pinned": null,
"is_by_creator": null,
"extra": {
"depth": 2,
"expansion_token": "MjoxNzkzMzE5ODc4OgF_oh3_o3X8NU0z1YHwuUzBRLruGGCD0OGKRjWkjwSke32IdQIVjK-LjVcN4I5U8XWFw8yxbqobJLE3BjeyEzA9EdN_XYqinjuPJSi0-Yar5uZv1OcaDCwPyQtE3olledjFx7c7Ej-JS...",
"feedback_id": "ZmVlZGJhY2s6MTM5MzQ2MTExNTQ4MTkyN185NDM3NTcxNDE4ODA1OTQ=",
"graphql_id": "Y29tbWVudDoxMzkzNDYxMTE1NDgxOTI3Xzk0Mzc1NzE0MTg4MDU5NA=="
}
}
],
"cursor": null,
"has_more": false,
"parent": null
},
"cursor": null,
"has_more": false
}Fields
A page of results. Each entry in items is a Comment. cursor and has_more page through the rest.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "comment" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
post_id | string or null | ||
parent_id | string or null | set on replies | |
author | Author or null | ||
text | string or null | ||
published_at | string (ISO 8601 date-time) or null | ||
stats | CommentStats | ||
is_pinned | boolean or null | ||
is_by_creator | boolean or null | ||
extra | object or null |
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
How do I get more than one page?
Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.
Is there an SDK call for it?
The preview Python client has client.facebook.post_comment_replies(...) and the TypeScript client client.facebook.postCommentReplies(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.