Platforms/Facebook/Post comments

Facebook Comments API

GET ยท 1 credit

Send a post's, reel's or video's link or id, and get its comments, 10 a page, each with its author, likes and number of replies.

GET /v1/facebook/posts/comments

What people use it for

  • Sentiment analysis: read what people say under a brand's posts and score it.
  • Customer feedback: find questions and complaints in the comments of your own Page's posts.
  • Moderation: check the comments on a post with sort=all, including those Facebook hides by default.
  • Giveaways: collect every comment on a contest post.

How it works with other endpoints

Post ids come from Profile posts, Profile reels or Post. Each comment's id, with the post's id, goes to Comment replies.

Limits

  • 10 comments a page.
  • Likes are rounded by Facebook for large numbers (1.2K).
  • A post only logged-in users can see answers 403 LOGIN_REQUIRED; a deleted one answers 404 NOT_FOUND.

Example request

const url = `${process.env.API_URL}/v1/facebook/posts/comments?url=https%3A%2F%2Fwww.facebook.com%2Freel%2F2696287970785751`;

const response = await fetch(url, {
  headers: { "x-api-key": process.env.API_KEY },
});

const { data } = await response.json();
console.log(data);

Parameters

ParameterRequiredDescription
post_idNoA post's id: digits (the posts endpoints give it). Give post_id or url.
urlNoA post's, reel's or video's link: facebook.com/<page>/posts/..., /groups/<group>/posts/..., /permalink.php?story_fbid=..., /story.php?story_fbid=..., /share/p/... (or /share/r/..., /share/v/...), /reel/<id>, /watch/?v=<id> or /<page>/videos/<id>. Give post_id or url.
sortNorelevant (Facebook's default), newest first, or all comments, including those Facebook filters out.
cursorNoFor the next page: page.next_cursor from the page before. Send the other parameters again with it.

Example response

{
  "data": [
    {
      "id": "978478641913739",
      "text": "This made my whole day.",
      "created_at": "2026-11-27T13:02:00Z",
      "author": "Jordan Lee",
      "author_id": "100000000000002",
      "author_url": "https://www.facebook.com/profile.php?id=100000000000002",
      "author_picture": "https://scontent.xx.fbcdn.net/v/t39.30808-6/commenter.jpg",
      "likes": 1200,
      "reply_count": 14
    }
  ],
  "page": {
    "next_cursor": "eyJhZnRlciI6IkFRSGFYIn0",
    "has_more": true
  },
  "meta": {
    "platform": "facebook",
    "endpoint": "post_comments",
    "params": {
      "url": "https://www.facebook.com/reel/2696287970785751",
      "sort": "relevant"
    },
    "request_id": "sp_req_1f8c2d3e4a5b6c7d",
    "api_version": "v1",
    "fetched_at": "2026-11-29T09:30:00Z",
    "cached": false
  }
}

An illustrative answer: live answers have the same shape, with the page's current data.

Every field, with its type, is in the API reference, and every error code in Errors.

Price

Each call costs 1 credit, a not-found answer too. Cached answers and other errors cost nothing, and credits never expire. New accounts start with 100 free credits. See pricing for the packs.

FAQ

How are comments sorted?

relevant is Facebook's default order, newest puts the newest first, and all lists every comment, including those Facebook filters out of the default view.

How do I get the replies to a comment?

Send the post's id and the comment's id to Comment replies. reply_count tells you which comments have any.

Are like counts exact?

Facebook rounds large numbers, such as 1.2K, and likes carries that number.

Can I get comments on reels and videos?

Yes. Send the reel's or video's link, or its id, the same way as a post's.

Works with

On other platforms

Start free

Your first 100 credits are on us

Sign up, create a key and make your first call in a few minutes.

No credit card required