All endpoints
Facebook Post Comments

Facebook Post Comments API

Get comments on a Facebook post by post ID. Returns each comment's text, author details, reaction and reply counts, publication date, and any sticker, GIF, image, or video attachment. Supports fetching multiple pages in a single call.

Price: $0.008 per page
Free tier: 50 requests/month
Endpoint
GET /v1/facebook/post/comments

Parameters

post_id *
Facebook post ID (from Page Posts, Group Posts, or Search Posts). Accepts pfbid and numeric IDs.
pages
Number of pages to fetch (1-10, default 1). Billed per page.
get_sentiment
Set to true to add AI emotion analysis (+$0.001/page)

Response fields

comments
Array of top-level comments
comment_id
Unique comment ID
legacy_comment_id
Numeric comment ID
message
Comment text content
date
Publication date and time
timestamp
Unix timestamp
author_name
Comment author's display name
author_id
Comment author's Facebook ID
author_url
Comment author's profile URL
author_gender
Comment author's gender (when available)
author_profile_picture
Comment author's profile image URL
replies_count
Number of replies to the comment
reactions_count
Number of reactions on the comment
is_sticker
Whether the comment is a sticker
sticker_url
Sticker image URL (when the comment is a sticker)
is_gif
Whether the comment is a GIF
gif
GIF attachment data (when available)
image
Image attachment data (when available)
video
Video attachment data (when available)
sentiment
Emotion analysis: emotions, dominant_emotion, emotional_intensity, polarity (when get_sentiment=true)
count
Number of comments returned
pages
Number of pages fetched

Example Request

curl "https://apidirect.io/v1/facebook/post/comments?post_id=pfbid02BzYRNmoznsZjci5FuztPUb9mKd9ameNVYSBweaBEvb8oEzSMjcs8nbXnMkYA5Benl" \
  -H "X-API-Key: YOUR_API_KEY"

Example Response

{
  "comments": [
    {
      "comment_id": "Y29tbWVudDo5NDM5NDIxODExMTExMzZfMTIxNzA1OTI3NjU2OTgwNw==",
      "legacy_comment_id": "1217059276569807",
      "message": "Even the dog wants to dominate AI",
      "date": "2025-07-03 19:25:36",
      "timestamp": 1751570736,
      "author_name": "Gerson Stefano",
      "author_id": "100006584266587",
      "author_url": "https://www.facebook.com/Gerson.Stefano.48",
      "author_gender": "MALE",
      "author_profile_picture": "https://scontent.xx.fbcdn.net/v/t39.30808-1/462473244_..._n.jpg",
      "replies_count": 0,
      "reactions_count": 0,
      "is_sticker": false,
      "sticker_url": null,
      "is_gif": false,
      "gif": null,
      "image": null,
      "video": null
    }
  ],
  "count": 1,
  "pages": 1
}

Frequently asked questions

How do I get the post_id?

Use the Page Posts, Group Posts, or Search Posts endpoints — each post they return includes a post_id field. Both pfbid and numeric post IDs are accepted.

Are replies included?

The endpoint returns top-level comments only. Each comment includes a replies_count showing how many replies it has.

How does pagination work?

Use the pages parameter to fetch multiple pages of results in a single request (1-10). Each page returns up to ~10 comments and is billed separately. Default is 1 page.

What if a post doesn't exist or has no comments?

A nonexistent or unavailable post returns an empty comments array, as does a post with no comments.

How does pricing work?

You only pay for successful requests. The Facebook Post Comments API costs $0.008 per page. There are no monthly fees or commitments. You get 50 free requests per endpoint every month.

Do I need a credit card to start?

No. You can sign up and use the free tier (50 requests/endpoint/month) without adding a payment method. You only need to add a card when you want to exceed the free tier.

Are there rate limits?

Yes, there's a concurrency limit of 3 simultaneous requests per endpoint per user. If you need more, just get in touch.

Start using the Facebook Post Comments API

Get your API key and start making requests in minutes. 50 requests/month free every month.

Get API Key