Facebook post comments API

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

GETapi.socialscrape.io/v1/facebook/post/comments
Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits
Status
Betashape may still gain fields

You send one of feedback_id or url.

Request

Send your key in the x-api-key header.

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,
    timeout=60,
)
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": {}
}

Parameters

NameTypeRequiredDescription
urlurlone ofPost, video or reel URL.
feedback_idstringone ofThe post's feedback id (from `post`); using it instead of `url` makes the request much faster.
cursorstringOpaque 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.

Status 200Sample
{
  "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-Wg7TOl6dIDdMo4t7FIm76uwxxq345r8gFOGNy89pghyvuI...",
          "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_MTBfV7oWW3RpXoNZf...",
          "feedback_id": "ZmVlZGJhY2s6cGZiaWQwM0d1aExzUVBTZEJFMVRtRzduZ1NiM3Z6S0M2QnFwUDd4Z01GZjFXdjRZVDd1VENISHhMYnJuZFVNOWs4UFVOSmV5dlRaODdzcldHcVhCcVNTclJVbUtXZzVUU01IWmFzYjJ3bA==",
          "graphql_id": "Y29tbWVudDoxMzkzNDYxMTE1NDgxOTI3XzEzMzA5ODg3NTgxNzQzNDc="
        }
      }
    ],
    "cursor": "eyJrIjoiY29tbWVudHMiLCJmaWQiOiJabVZsWkdKaFkyczZNVE01TXpRMk1URXhOVFE0TVRreU53PT0iLCJhZnRlciI6Ik1Ub3hOemt6TXpFNU9EWTBPZ0ZfUGJMVVcxdUJJRzRkNzJhUnFlZ08xbnFQTVZJb...",
    "has_more": true,
    "parent": null
  },
  "cursor": "eyJrIjoiY29tbWVudHMiLCJmaWQiOiJabVZsWkdKaFkyczZNVE01TXpRMk1URXhOVFE0TVRreU53PT0iLCJhZnRlciI6Ik1Ub3hOemt6TXpFNU9EWTBPZ0ZfUGJMVVcxdUJJRzRkNzJhUnFlZ08xbnFQTVZJb...",
  "has_more": true
}

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.

FieldTypeAlwaysNotes
object"comment"
platformPlatformyes
idstringyes
urlstring or null
post_idstring or null
parent_idstring or nullset on replies
authorAuthor or null
textstring or null
published_atstring (ISO 8601 date-time) or null
statsCommentStats
is_pinnedboolean or null
is_by_creatorboolean or null
extraobject 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_comments(...) and the TypeScript client client.facebook.postComments(). 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.

Build on social data early.

Developers and agent builders get the first keys.

Get early access