Facebook API

Facebook Post comments API

List the comments on a post by URL with cursor pagination: text, author, reactions and reply count.

POST/v1/run/facebook.post_comments
Uptime
100.00%
30d · 75 calls
Requests
89
30d
Response
3.7s
median · 30d

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "found": true,
  "data": {
    "nextCursor": "MToxNzc2NDYxMjMw",
    "comments": [
      {
        "id": "Y29tbWVudDoxMjA2OTAzNjAxNDgzOTYw",
        "text": "Safe travels home! 🌍",
        "author": "Robin Bergsagel",
        "reactions": 95,
        "replies": 1,
        "createdAt": "2025-09-01T01:10:40.000Z"
      }
    ]
  }
}
Response interface
interface FacebookPostCommentsResponse {
  data: {
    comments: {
      author: string;
      authorId?: string;
      authorImage?: string;
      createdUtc: number;
      expansionToken?: string;
      feedbackId?: string;
      id: string;
      reactions: number;
      replies: number;
      text: string;
    }[];
    hasNextPage?: boolean;
    nextCursor: string | null;
  } | null;
  found: boolean;
  reason?: "not_found";
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

Request, response, and price

Last verified 2026-09-20 · uptime and latency measured over 30d
POST /v1/run/facebook.post_comments
curl -X POST https://api.getanyapi.com/v1/run/facebook.post_comments \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.facebook.com/nasa/posts/1204545088344463"}'
FieldTypeExample value
Request body
cursorstringPagination cursor from a previous response's nextCursor.
feedbackIdstringFacebook feedback id for the post (alternative to url).
urlstring"https://www.facebook.com/nasa/posts/1204545088344463"Full Facebook post URL.
Response
foundbooleantrue
dataobject
data.nextCursorstring"MToxNzc2NDYxMjMw"
data.commentsarray
data.comments[].idstring"Y29tbWVudDoxMjA2OTAzNjAxNDgzOTYw"
data.comments[].textstring"Safe travels home! 🌍"
data.comments[].authorstring"Robin Bergsagel"
data.comments[].reactionsnumber95
data.comments[].repliesnumber1
data.comments[].createdAtstring"2025-09-01T01:10:40.000Z"
Price
Price per requestUSD$0.0012
Price /1k reqUSD$1.20

FAQ

About the Facebook Post comments API

The AnyAPI Facebook Post comments API returns Facebook post comments data as normalized JSON from one POST call to /v1/run/facebook.post_comments. List the comments on a post by URL with cursor pagination: text, author, reactions and reply count. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of Facebook post comments calls through AnyAPI succeeded, with a median response time of 3.7 seconds across 75 measured calls.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

List the comments on a post by URL with cursor pagination: text, author, reactions and reply count. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 100.0% of Facebook post comments calls through AnyAPI succeeded, with a median response time of 3.7 seconds across 75 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.