Facebook

Facebook Post Comments

Get comments on a Facebook post by post ID. Use a post_id from Page Posts, Group Posts, or Search Posts (pfbid and numeric IDs are accepted). Returns comment text, author details, reaction and reply counts, dates, and any attachment.

Price: $0.008 per page. Free tier: 50 requests/month.

get/v1/facebook/post/comments

Request

  • Base URL: https://apidirect.io
  • URL: https://apidirect.io/v1/facebook/post/comments
  • Auth: API key in header X-API-Key

Query parameters

post_idstring required

Facebook post ID (pfbid or numeric)

pagesinteger

Number of pages to fetch and merge into one response (1-20). Billed per page.

get_sentimentboolean

Set to true to add AI emotion analysis to each comment. Adds a sentiment object containing emotions (joy, trust, fear, surprise, sadness, disgust, anger and anticipation, each scored 0-100), dominant_emotion, emotional_intensity (0-10), and polarity (positive, negative or neutral). Any comment that cannot be scored returns sentiment: null.

Response

Successful response

countnumber nullable
pagesnumber nullable

Changes

No recorded changes to this operation across all 1 revision of this API.