Docs menu

Facebook post comments

Beta GET /v1/facebook/post/comments

GET /v1/facebook/post/comments

Comments on a post or reel: text, time, reply and reaction counts, author and attachments.

  • Cost: 1 credit
  • Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
  • Cache: Results are kept up to 30 days; send max_age_days to reuse them for free.
  • Timeout: A request still running after about 25 seconds answers 202 with a job to poll (Batch and jobs).

Parameters#

NameTypeRequiredDescription
urlURLone ofPost, video or reel URL. Accepted hosts: facebook.com, fb.com, fb.watch.
feedback_idstringone ofThe post's feedback id (from post); using it instead of url makes the request much faster.

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: true for a smaller response without null fields and extra.
  • raw: true to also get the platform's original object as raw.
  • 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).

curl
curl -G "https://api.socialscrape.io/v1/facebook/post/comments" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode "url=https://www.facebook.com/reel/2166091230582141/"
Python
import os
import requests

params = {
    "url": "https://www.facebook.com/reel/2166091230582141/",
}
res = requests.get(
    "https://api.socialscrape.io/v1/facebook/post/comments",
    headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
    params=params,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
const url = new URL("https://api.socialscrape.io/v1/facebook/post/comments");
url.search = new URLSearchParams({
  "url": "https://www.facebook.com/reel/2166091230582141/"
}).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);
}
n8n
{
  "nodes": [
    {
      "name": "SocialScrape Facebook post comments",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/facebook/post/comments",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "https://www.facebook.com/reel/2166091230582141/"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

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.

{
  "ok": true,
  "credits_charged": 1,
  "credits_remaining": 4999,
  "cached": false,
  "cached_at": null,
  "request_id": "req_8cdd56707ccee1aa167be3c6",
  "data": {
    "object": "list",
    "items": [
      {
        "object": "comment",
        "platform": "facebook",
        "id": "2082653245809386",
        "url": "https://www.facebook.com/reel/2166091230582141/?comment_id=2082653245809386",
        "post_id": "1393461115481927",
        "parent_id": null,
        "author": {
          "id": "1000000001",
          "handle": "sample_user",
          "name": "Sample User",
          "url": null,
          "avatar_url": null,
          "verified": false
        },
        "text": "The small breath she took beforehand got my anxiety up",
        "published_at": "2025-11-08T02:07:24Z",
        "stats": {
          "likes": 47,
          "replies": 2,
          "dislikes": null
        },
        "is_pinned": null,
        "is_by_creator": null,
        "extra": {
          "depth": 0,
          "expansion_token": "MjoxNzkzMzE5ODQyOgF_vNwrYh3poM_aW0yz3FbexVQq9RbJvBq3D-jLGU0tsmKoHCDTrx8-W5hrvScxuNn3KgsLpSzwA9tGD_zjTfI3mHW1BP-Wg7TOl6dIDdMo4t7FIm76uwxxq345r8gFOGNy89pghyvuIKdO1iN6lDfQcQZux1xnunMeXVe_fPIfp3lTBGrpsuQ8h_xcAkHfGAi7h8ib-xeTKK3j810ZXVeUHskJu_vf...",
          "feedback_id": "ZmVlZGJhY2s6cGZiaWQwalpKVVNBWDJoeVExQXFQbldnUVFxZVh3Y1Q2OVRQTUZnSnhCcHczd3lZeXc2WDRoZkIxcTV1N2VvQThnQkszOU1OMnBuakVkMWhoNWtZYUdVbTVqUmpmTFhjS05pQ1B1YUJs",
          "graphql_id": "Y29tbWVudDoxMzkzNDYxMTE1NDgxOTI3XzIwODI2NTMyNDU4MDkzODY="
        }
      },
      {
        "object": "comment",
        "platform": "facebook",
        "id": "1330988758174347",
        "url": "https://www.facebook.com/reel/2166091230582141/?comment_id=1330988758174347",
        "post_id": "1393461115481927",
        "parent_id": null,
        "author": {
          "id": "1000000001",
          "handle": "sample_user",
          "name": "Sample User",
          "url": null,
          "avatar_url": null,
          "verified": false
        },
        "text": "It's November, where are the Basketball post , we wear Nike's too. ALSO WHY DOESN'T Jalen Brunson have a signature shoe... ????",
        "published_at": "2025-11-03T02:13:02Z",
        "stats": {
          "likes": 22,
          "replies": 4,
          "dislikes": null
        },
        "is_pinned": null,
        "is_by_creator": null,
        "extra": {
          "depth": 0,
          "expansion_token": "MjoxNzkzMzE5ODQyOgF__NFdQvnKXCBhSB5NYSCC-IXlj5X4c-cBK1prRd2lfpgfPZRZpWoG6zHU_LmyKzv_JpUJY4JLfEHkx_I6yjQyexVOV6OF69F5giPyvVOhK4CpFIb7zrY-H-q_MTBfV7oWW3RpXoNZfrsOjYBLzNuSj_TplWlIinE6Q7N7pQe6yhCwUTBVWDinwUBwD0R6QFFOpLod42jpjJJdavwrxSY7yhPfLC2k...",
          "feedback_id": "ZmVlZGJhY2s6cGZiaWQwM0d1aExzUVBTZEJFMVRtRzduZ1NiM3Z6S0M2QnFwUDd4Z01GZjFXdjRZVDd1VENISHhMYnJuZFVNOWs4UFVOSmV5dlRaODdzcldHcVhCcVNTclJVbUtXZzVUU01IWmFzYjJ3bA==",
          "graphql_id": "Y29tbWVudDoxMzkzNDYxMTE1NDgxOTI3XzEzMzA5ODg3NTgxNzQzNDc="
        }
      }
    ],
    "cursor": "eyJrIjoiY29tbWVudHMiLCJmaWQiOiJabVZsWkdKaFkyczZNVE01TXpRMk1URXhOVFE0TVRreU53PT0iLCJhZnRlciI6Ik1Ub3hOemt6TXpFNU9EWTBPZ0ZfUGJMVVcxdUJJRzRkNzJhUnFlZ08xbnFQTVZJbEpSY0pwdTkwWkJIajNjUWxnSWpPSVpjSm1RWmNtbjZLbEtVNS1adWpYWGkxRWpLcjF5ZnNaa2UxWUhRcW8z...",
    "has_more": true,
    "parent": null
  },
  "cursor": "eyJrIjoiY29tbWVudHMiLCJmaWQiOiJabVZsWkdKaFkyczZNVE01TXpRMk1URXhOVFE0TVRreU53PT0iLCJhZnRlciI6Ik1Ub3hOemt6TXpFNU9EWTBPZ0ZfUGJMVVcxdUJJRzRkNzJhUnFlZ08xbnFQTVZJbEpSY0pwdTkwWkJIajNjUWxnSWpPSVpjSm1RWmNtbjZLbEtVNS1adWpYWGkxRWpLcjF5ZnNaa2UxWUhRcW8z...",
  "has_more": true
}

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.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.
unsupported_url400noThe URL is not one this endpoint accepts (wrong platform or form).
not_found404noThe 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.