Skip to content

Facebook Comment Replies API

Replies under one comment on a public Facebook post, ten per page. Pass the post URL and the comment id (the id of any item from /v1/facebook/post-comments), then pagination.cursor for the next page. Calls cost 1 credit each. A cache hit is free, and a failed or empty response is never charged.

Try it

Prefilled with the request that produced the example below. No key yet? Get a free key.

Request

GET/v1/facebook/comment-replies
ParameterTypeRequiredDescription
urlstringyesFull post URL the comment sits on
comment_idstringyesNumeric comment id
cursorstringnopagination.cursor from a previous response

Also accepts cache_max_age (a hit costs 0 credits) and include_raw (returns the untouched upstream payload under raw).

curl
curl "$API/v1/facebook/comment-replies?url=https%3A%2F%2Fwww.facebook.com%2Freel%2F2166091230582141%2F&comment_id=2082653245809386&cache_max_age=7d" \
  -H "x-api-key: $KEY"
JavaScript
const query = new URLSearchParams({
  url: 'https://www.facebook.com/reel/2166091230582141/',
  comment_id: '2082653245809386',
  cache_max_age: '7d',
});

const response = await fetch(`${API}/v1/facebook/comment-replies?${query}`, {
  headers: { 'x-api-key': KEY },
});

const body = await response.json();
if (!body.success) throw new Error(body.error.code);

// 1 credit, 0 on a cache hit
console.log(body.data, body.meta.creditsCharged);
Python
import os, httpx

r = httpx.get(
    f"{os.environ['API']}/v1/facebook/comment-replies",
    params={
        "url": "https://www.facebook.com/reel/2166091230582141/",
        "comment_id": "2082653245809386",
        "cache_max_age": "7d",
    },
    headers={"x-api-key": os.environ["KEY"]},
    timeout=30,
)

body = r.json()
if not body["success"]:
    raise RuntimeError(body["error"]["code"])

print(body["data"], body["meta"]["creditsCharged"])

Example response

Captured on , with raw removed and lists cut to two items. A live call returns current data.

response
{
  "success": true,
  "data": {
    "items": [
      {
        "platform": "facebook",
        "id": "994541046495331",
        "postId": "2166091230582141",
        "parentId": "2082653245809386",
        "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 acerca de los nike phantom.",
        "authorId": "example-user-1",
        "authorHandle": null,
        "authorName": "Example User 1",
        "authorAvatarUrl": "https://example.com/media/1.jpg",
        "likeCount": 2,
        "replyCount": 1,
        "isPinned": null,
        "isAuthorReply": false,
        "publishedAt": "2026-05-11T05:02:07.000Z"
      },
      {
        "platform": "facebook",
        "id": "943757141880594",
        "postId": "2166091230582141",
        "parentId": "994541046495331",
        "text": "Example User 1 Hey",
        "authorId": "example-user-2",
        "authorHandle": null,
        "authorName": "Example User 2",
        "authorAvatarUrl": "https://example.com/media/2.jpg",
        "likeCount": 0,
        "replyCount": 0,
        "isPinned": null,
        "isAuthorReply": false,
        "publishedAt": "2026-05-12T10:03:43.000Z"
      }
    ]
  },
  "pagination": {
    "cursor": null,
    "hasMore": false,
    "count": 3
  },
  "meta": {
    "platform": "facebook",
    "endpoint": "facebook.commentReplies",
    "creditsCharged": 1,
    "cached": false,
    "cacheAgeSeconds": null,
    "durationMs": 4300,
    "requestId": "req_azweuniosnp89qjuywhw"
  }
}

Returns

Returns a list of Comment in data.items.

Cost and behaviour

Credits1 per live request, 0 on a cache hit
Cacheableyes: cache_max_age accepts a cached copy
Batchableyes: usable as a target in POST /v1/jobs/batch
Subscribableno

Other Facebook endpoints