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
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}'import osimport requestsresponse = requests.post( "https://api.bridgly.app/facebook/get-post-comments", headers={"Authorization": f"Bearer {os.environ['BRIDGLY_KEY']}"}, json={ "url": "https://www.facebook.com/NASA/posts/pfbid0sWEQa1gX7qa3jNrUYfgVy3kYaimwKott95nY6NicQPwxPGzkahpyQ8ABWbpkth2bl", "sort": "newest", "count": 10, },)data = response.json()const response = await fetch("https://api.bridgly.app/facebook/get-post-comments", { method: "POST", headers: { Authorization: `Bearer ${process.env.BRIDGLY_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "url": "https://www.facebook.com/NASA/posts/pfbid0sWEQa1gX7qa3jNrUYfgVy3kYaimwKott95nY6NicQPwxPGzkahpyQ8ABWbpkth2bl", "sort": "newest", "count": 10 }),});const data = await response.json();import { Bridgly } from "@bridgly/sdk";const client = new Bridgly({ apiKey: "bgly_YOUR_KEY" });const res = await client.facebook.getPostComments({ url: "https://www.facebook.com/NASA/posts/pfbid0sWEQa1gX7qa3jNrUYfgVy3kYaimwKott95nY6NicQPwxPGzkahpyQ8ABWbpkth2bl", sort: "newest", count: 10});if (res.type === "success") { console.log(res.data);}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
{ "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" } ] }}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.
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.
More Facebook endpoints
The same API key works on every endpoint. See all Facebook Scraper API endpoints.
- Facebook Comment Replies API→List the replies to a Facebook comment as JSON, oldest first: text, author, date and reaction count, with a cursor for every next page of replies.
- Facebook Group API→Get a Facebook group’s details as JSON: name, description, privacy, member count, posts per day and month, creation date, admins and group rules.
- Facebook Group Posts API→List the posts of a public Facebook group as JSON, by top, newest or recent activity: text, author, media, reactions, comments and shares for each post.
- Facebook Group Events API→List the upcoming or past events of a Facebook group as JSON: name, date, creator, cover image and canceled state.
Try the Facebook Comments API
100 free credits on business email, no card. Your first call takes a minute.