Facebook Post comments API
List the comments on a post by URL with cursor pagination: text, author, reactions and reply count.
Provider network
Providers ranked by traffic
Try it
Make your first request
{
"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"
}
]
}
}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 30dcurl -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"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| cursor | string | Pagination cursor from a previous response's nextCursor. |
| feedbackId | string | Facebook feedback id for the post (alternative to url). |
| url | string | "https://www.facebook.com/nasa/posts/1204545088344463"Full Facebook post URL. |
| Response | ||
| found | boolean | true |
| data | object | |
| data.nextCursor | string | "MToxNzc2NDYxMjMw" |
| data.comments | array | |
| data.comments[].id | string | "Y29tbWVudDoxMjA2OTAzNjAxNDgzOTYw" |
| data.comments[].text | string | "Safe travels home! 🌍" |
| data.comments[].author | string | "Robin Bergsagel" |
| data.comments[].reactions | number | 95 |
| data.comments[].replies | number | 1 |
| data.comments[].createdAt | string | "2025-09-01T01:10:40.000Z" |
| Price | ||
| Price per request | USD | $0.0012 |
| Price /1k req | USD | $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.