Facebook Comments API
Facebook post comments with reactionCount, reactions.like when mixed, author.id (pfbid), and replyCount.
GET request to /v1/facebook/comments that responds with clean JSON and costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh. Start with 100 free credits — no credit card.What is the Facebook Comments API?
Pass a post/Reel URL or feedbackId (from /v1/facebook/details) and get top-level comments as clean JSON. reactionCount is the mix total. reactions{} is included only when Facebook exposes a real multi-type mix — likes are reactions.like, not a likeCount twin (that field used to hold the total and is gone). Unused types are omitted, not zeroed. author is an object with stable id (pfbid or numeric), name, shortName, gender, url, and avatarUrl when exposed. replyCount and hasMore are included for threading/loops. Flat 2 credits. Prefer feedbackId when you already fetched details.
What you get
- reactionCount is the mix total; likes are reactions.like when the mix is present
- Stable author.id (pfbid) for repeat-commenter detection
- author.gender + shortName when Facebook exposes them
- replyCount + hasMore; optional feedbackId input
Try it
Fill in the parameters below and copy a ready-to-run request, or open the live Playground to run it against your account (no API key paste).
Parameters
curl "https://api.captapi.com/v1/facebook/comments" \
-H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."Edit the parameters and the code updates instantly. Switch languages and hit copy.
Example response
{
"success": true,
"cached": false,
"creditsUsed": 2,
"requestId": "8f3c2a1e-4b9d-4e6a-9c1f-2d7e5b8a0c34",
"fetchedAt": "2026-08-17T19:43:38.545Z",
"cachedAt": null,
"data": {
"platform": "facebook",
"url": "https://www.facebook.com/NASA/posts/pfbid02skzNsrLf5atYZfzvzHAK9gHwDnZC5u4pDZMLQ1u3iJmfoA8tNsGpT7Uj6WPs6K3Rl",
"totalReturned": 2,
"comments": [
{
"id": "1003271445544158",
"url": "https://www.facebook.com/NASA/posts/pfbid0ozvoLoowKvCysA2CZkXKTAVCRLoVECcrC7W8eQbQYvxBNKMCQAzV8baSgDa8t5Hol?comment_id=1003271445544158",
"text": "how is this different from JWST?",
"author": {
"id": "pfbid02SdzVLPYTHY2eGMdrwFrLw54sVZdguAGnLUj4RPL3HxFtG2D4PBBjptiMEwpB21Ehl",
"name": "Robin Bergsagel",
"shortName": "Robin",
"gender": "FEMALE",
"avatarUrl": "https://scontent.fsgn24-1.fna.fbcdn.net/v/t39.30808-1/692472460_26663220403348161_6124206666765972294_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx960x960&ctp=s32x32&_nc_cat=102&ccb=1-7&_nc_sid=e99d92&_nc_ohc=3HNDMjGZhBIQ7kNvwH_Yi6V&_nc_oc=AdoxMiMSoY_ToCduVunc3YCOZtk_SXSgox578bFFqLiP_4rQwkwI465-N_iYgGAJFKc&_nc_zt=24&_nc_ht=scontent.fsgn24-1.fna&_nc_gid=HH_crC25V3cxSQmbs1qi6w&_nc_ss=7b289&oh=00_AQDnijJpCb3QQr1TMy3wnG3ZpT2laUi0wvxSIlu-E9nHXw&oe=6A6C3A29"
},
"authorAvatarUrl": "https://scontent.fsgn24-1.fna.fbcdn.net/v/t39.30808-1/692472460_26663220403348161_6124206666765972294_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx960x960&ctp=s32x32&_nc_cat=102&ccb=1-7&_nc_sid=e99d92&_nc_ohc=3HNDMjGZhBIQ7kNvwH_Yi6V&_nc_oc=AdoxMiMSoY_ToCduVunc3YCOZtk_SXSgox578bFFqLiP_4rQwkwI465-N_iYgGAJFKc&_nc_zt=24&_nc_ht=scontent.fsgn24-1.fna&_nc_gid=HH_crC25V3cxSQmbs1qi6w&_nc_ss=7b289&oh=00_AQDnijJpCb3QQr1TMy3wnG3ZpT2laUi0wvxSIlu-E9nHXw&oe=6A6C3A29",
"likeCount": 95,
"publishedAt": "2026-06-02T19:30:33+00:00",
"replyCount": 1,
"reactionCount": 95,
"reactions": {
"like": 79,
"love": 4,
"care": 0,
"haha": 1,
"wow": 11,
"sad": 0,
"anger": 0,
"thankful": 0,
"pride": 0,
"confused": 0
}
},
{
"id": "1565653145168639",
"url": "https://www.facebook.com/NASA/posts/pfbid0ozvoLoowKvCysA2CZkXKTAVCRLoVECcrC7W8eQbQYvxBNKMCQAzV8baSgDa8t5Hol?comment_id=1565653145168639",
"text": "You had me at Roman",
"author": {
"id": "pfbid0exampleAuthorIdFor15656531",
"name": "Mike Harwick",
"shortName": "Mike",
"gender": "MALE",
"avatarUrl": "https://scontent.fsgn13-1.fna.fbcdn.net/v/t39.30808-1/708345356_26903531449306692_9193818255719987217_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx960x960&ctp=s32x32&_nc_cat=100&ccb=1-7&_nc_sid=e99d92&_nc_ohc=TzWa-f368dwQ7kNvwEMPaUV&_nc_oc=AdpdLHrvXy7m167xxHhinaiUIlBoo2jzN-yKoz2hmtKPDhZMy8t4wFudGRE1dEwFuas&_nc_zt=24&_nc_ht=scontent.fsgn13-1.fna&_nc_gid=HH_crC25V3cxSQmbs1qi6w&_nc_ss=7b289&oh=00_AQCw8rv9R1a-kXHBcH09C7AdRzTbIlhxf4mps8XzaYwIlQ&oe=6A6C1254"
},
"authorAvatarUrl": "https://scontent.fsgn13-1.fna.fbcdn.net/v/t39.30808-1/708345356_26903531449306692_9193818255719987217_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx960x960&ctp=s32x32&_nc_cat=100&ccb=1-7&_nc_sid=e99d92&_nc_ohc=TzWa-f368dwQ7kNvwEMPaUV&_nc_oc=AdpdLHrvXy7m167xxHhinaiUIlBoo2jzN-yKoz2hmtKPDhZMy8t4wFudGRE1dEwFuas&_nc_zt=24&_nc_ht=scontent.fsgn13-1.fna&_nc_gid=HH_crC25V3cxSQmbs1qi6w&_nc_ss=7b289&oh=00_AQCw8rv9R1a-kXHBcH09C7AdRzTbIlhxf4mps8XzaYwIlQ&oe=6A6C1254",
"likeCount": 3,
"publishedAt": "2026-06-03T12:30:24+00:00",
"replyCount": 0,
"reactionCount": 3,
"reactions": {
"like": 3,
"love": 0,
"care": 0,
"haha": 0,
"wow": 0,
"sad": 0,
"anger": 0,
"thankful": 0,
"pride": 0,
"confused": 0
}
}
],
"hasMore": true,
"nextCursor": null,
"feedbackId": "ZmVlZGJhY2s6MTU0MTc1MzUyMzk4NjY4NQ=="
}
}Billing metadata is returned in response headers: X-Captapi-Credits (credits charged), X-Captapi-Cache (hit or miss), and X-Captapi-Source. Failed requests (4xx/5xx) are never charged. See the full list of error codes in the error reference.
Response structure
A successful call returns success, cached, creditsUsed, requestId, fetchedAt, cachedAt, and a data object with the following fields:
Top-level fields
platformPlatform identifier for this response (matches the endpoint's platform).urlCanonical URL of the item.totalReturnedNumber of items returned in this response.hasMoreWhether more results are available beyond this page. When true, pass nextCursor to fetch the next page.nextCursorCursor to pass for the next page of results. May be null when the platform does not expose deep pagination (e.g. some Facebook Ad Library searches).feedbackIdFacebook feedback id for the post (useful for comments threading).
Comments
Each item in comments contains:
idId of this comments item.urlCanonical URL of the item.textText content.authorNested author (id, name, shortName, gender, url, avatarUrl). author.url is the canonical profile URL.authorAvatarUrlProfile picture URL of the person who wrote the comment.likeCountLike count as an integer. Compact UI labels ("727K") are expanded here; see likeCountText for the original string.publishedAtPublish date (ISO 8601) when the platform exposes an absolute timestamp.replyCountHow many replies this comment has. Use Comment Replies with this comment's id to fetch them.reactionCountTotal of every reaction type Facebook exposed. Not likes.reactionsPresent only when Facebook exposed a real multi-type mix (love/wow/…). Likes are reactions.like. Unused types are omitted, not zeroed. likeCount is gone — it used to hold this total.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | No | Facebook post or Reel URL. Omit when feedbackId is set. The URL platform must match this endpoint's platform. |
| feedbackId | string | No | Post feedback id from /v1/facebook/details (base64 feedback:POSTID). Prefer when you already have it — also accepts feedback_id. |
| limit | integer | No | Max items to return (default 50, max 500). Flat 2 credits per call. |
| cache | boolean | No | Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh. Envelope includes cached + cachedAt on hits. |
Authentication: send your key as Authorization: Bearer capt_live_.... A typical call costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh.
How it works
- 1. Sign up — get 100 free credits, no card required.
- 2. Create a key from your dashboard.
- 3. Send one request to
/v1/facebook/commentsand parse the JSON response.
Use cases
Sentiment Analysis
Understand how audiences react to content.
Community Insights
Surface FAQs, requests, and recurring themes.
Moderation
Detect spam, abuse, or policy violations at scale.
Market Research
Mine genuine opinions and product feedback.
Frequently asked questions
What does the Facebook Comments API do?+
The Facebook Comments API lets you pull comments with author, text, likes, and replies from a public Facebook video using one GET request to /v1/facebook/comments. It returns clean JSON — no OAuth or infrastructure setup required.
How many credits does the Facebook Comments API cost?+
Each successful call costs 2 credits. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Hits include cached + cachedAt. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Failed or empty results are never charged.
Do I need a Facebook API key or OAuth?+
No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Spotify, Kwai, and more. We handle proxies, rate limits, retries, and authentication for you.
Is the Facebook Comments API suitable for production use?+
Yes. It is a stable REST endpoint with predictable JSON and automatic retries. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Hits include cached + cachedAt. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Use it for analytics, monitoring, and content automation.
More Facebook APIs
Ready to use the Facebook Comments API?
Sign up, grab your key, and make your first call in 60 seconds.