FACEBOOK SCRAPER API

Facebook Comments API

List the comments on a Facebook post, top or newest first, with each comment's text, author, date, reaction count and reply count. Page through the comments with `cursor`.

Endpoint
POST /facebook/get-post-comments
Price
1 credit per request
SDK
client.facebook.getPostComments()
MCP tool
facebook_get_post_comments
Terminal
curl -X POST "https://api.bridgly.app/facebook/get-post-comments" \
-H "Authorization: Bearer $BRIDGLY_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.facebook.com/NASA/posts/pfbid0sWEQa1gX7qa3jNrUYfgVy3kYaimwKott95nY6NicQPwxPGzkahpyQ8ABWbpkth2bl",
"sort": "newest",
"count": 10
}'
[ REQUEST AND RESPONSE ]

What does the Facebook Comments API return?

List the comments of a Facebook post as JSON, top or newest first: text, author, date, reaction count and reply count, with a cursor for every next page. Every response has the same envelope: the result in data, plus timeMs and the creditsCost of the call.

Request body

cursorstring
The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
urlstringrequired
Link to the post, e.g. "https://www.facebook.com/NASA/posts/pfbid0sWE…", a group post link, a share link such as "https://www.facebook.com/share/p/1DnHdkn7c7/", or a permalink.php or story.php link.
sortenum · default top
Comment order: "top" (every comment, in Facebook's ranking) or "newest" first. Defaults to "top".
top | newest
countinteger · 1–10 · default 10
Number of results to return (1–10). Defaults to 10.
cacheMaxAgeHoursinteger
Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean
Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.

Example response

200 OK · application/json
{
"timeMs": 1840,
"creditsCost": 1,
"cachedAt": "2026-01-15T09:30:00.000Z",
"data": {
"nextCursor": "string",
"comments": [
{
"id": "string",
"url": "string",
"text": "string",
"entities": [
{
"type": "string",
"id": "string",
"name": "string",
"url": "string"
}
],
"createdAt": "string",
"author": {
"id": "string",
"name": "string",
"url": "string",
"profilePictureUrl": "string"
},
"reactionCount": 0,
"replyCount": 0,
"imageUrl": "string",
"parentCommentId": "string"
}
]
}
}
[ USE CASES ]

What can you build with the Facebook Comments API?

Analyze sentiment

Score what people say under a brand’s posts.

Find customer issues

Spot complaints and questions in the comments of your posts.

Research audiences

Learn how a community talks about a topic.

[ FAQ ]

Facebook Comments API questions

How do I get the replies to a comment?

Comments with replies have a replyCount. Pass the post link and the comment id to the comment replies endpoint.

How do I use the Facebook Comments API?

Send a POST request to https://api.bridgly.app/facebook/get-post-comments with url in the JSON body and your API key in the Authorization header. In the TypeScript SDK, call client.facebook.getPostComments(). AI agents connected to Bridgly over MCP can call the facebook_get_post_comments tool.

How much does the Facebook Comments API cost?

Costs 1 credit per request. Credits cost $2.00 per 1,000 on pay-as-you-go and as low as $1.67 per 1,000 at volume. New accounts on a business email start with 100 free credits, and failed requests are never charged.

Try the Facebook Comments API

100 free credits on business email, no card. Your first call takes a minute.

APIMCPSDKCLI
free credits

On business email signup. No credit card required.

Start free with 100 credits