Facebook · Guide

How to get Facebook comments

TL;DR
To get Facebook comments, sign up for a free Captapi key, then send one GET request to /v1/facebook/comments with your input. You get clean JSON back in seconds for 2 credits per call — no OAuth, scraping or platform SDKs. Facebook post comments with reactionCount, reactions.like when mixed, author.id (pfbid), and replyCount.

How to get Facebook comments (step by step)

  1. 1

    Get a free API key

    Create a free Captapi account (100 credits, no card) and generate an API key from the dashboard.

  2. 2

    Call the Facebook Comments API

    Send an authenticated GET request to /v1/facebook/comments with your input. No OAuth, no scraping setup.

  3. 3

    Read the JSON response

    Parse the clean JSON response. Pass cache=true for a free 24h cache hit; default is always fresh.

Code example

curl "https://api.captapi.com/v1/facebook/comments" \
  -H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."

What the response looks like

{
  "success": true,
  "data": {
    "platform": "facebook",
    "url": "https://www.facebook.com/NASA/posts/pfbid02skzNsrLf5atYZfzvzHAK9gHwDnZC5u4pDZMLQ1u3iJmfoA8tNsGpT7Uj6WPs6K3Rl",
    "totalReturned": 2,
    "comments": [
      {
        "id": "1003271445544158",
        "url": "https://www.facebook.com/NASA/posts/pfbid02sjDCZCvp6b5pVtkLXpv6oHufykrYPNYPDG4tWZnJMjH6iFDRW37Px5XzuJYaFu7Pl?comment_id=1003271445544158",
        "text": "how is this different from JWST?",
        "author": {
          "id": "pfbid033avgyQc5xGLvf36Hv3P159XSavPFL8EiKeowiNkz12Q1PnopkGUVv5heb8CaSCrVl",
          "name": "Jack Ryan Miller",
          "shortName": "Jack",
          "gender": "MALE",
          "avatarUrl": "https://scontent-dfw6-1.xx.fbcdn.net/v/t39.30808-1/692472460_26663220403348161_6124206666765972294_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx960x960&ctp=s64x64&_nc_cat=102&ccb=1-7&_nc_sid=e99d92&_nc_ohc=e93dtosno_EQ7kNvwF67JIN&_nc_oc=AdpjoF0IDOQTnhm1Oh0teMcb5STwpWG6O4rDg9HkGzFYMlvxcjGfM2w2u2icYcbjpfM&_nc_zt=24&_nc_ht=scontent-dfw6-1.xx&_nc_gid=apKCa4lsSS2rYE3Fc2SY-A&_nc_ss=7b289&oh=00_AQOVBEGwAB2Xx6zryr2uFOzH89tvmYQz-6KpK-sYEOns-A&oe=6ADC1169"
        },
        "authorAvatarUrl": "https://scontent-dfw6-1.xx.fbcdn.net/v/t39.30808-1/692472460_26663220403348161_6124206666765972294_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx960x960&ctp=s64x64&_nc_cat=102&ccb=1-7&_nc_sid=e99d92&_nc_ohc=e93dtosno_EQ7kNvwF67JIN&_nc_oc=AdpjoF0IDOQTnhm1Oh0teMcb5STwpWG6O4rDg9HkGzFYMlvxcjGfM2w2u2icYcbjpfM&_nc_zt=24&_nc_ht=scontent-dfw6-1.xx&_nc_gid=apKCa4lsSS2rYE3Fc2SY-A&_nc_ss=7b289&oh=00_AQOVBEGwAB2Xx6zryr2uFOzH89tvmYQz-6KpK-sYEOns-A&oe=6ADC1169",
        "reactionCount": 7,
        "publishedAt": "2026-06-02T19:30:33+00:00",
        "replyCount": 6,
        "mediaUrlsExpireAt": "2026-10-24T02:01:13.000Z",
        "reactions": null
      },
      {
        "id": "1565653145168639",
        "url": "https://www.facebook.com/NASA/posts/pfbid02sjDCZCvp6b5pVtkLXpv6oHufykrYPNYPDG4tWZnJMjH6iFDRW37Px5XzuJYaFu7Pl?comment_id=1565653145168639",
        "text": "You had me at Roman",
        "author": {
          "id": "pfbid02ZgyiitCzA59R3MtLzt4P3GVn9pQ8ffeQp17RRMVY9Cxmre75MMfxLoE31cUSQ2gZl",
          "name": "Mike Harwick",
          "shortName": "Mike",
          "gender": "MALE",
          "avatarUrl": "https://scontent-dfw5-2.xx.fbcdn.net/v/t39.30808-1/829196526_28444288788564276_3613430599644772745_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx960x960&ctp=s64x64&_nc_cat=107&ccb=1-7&_nc_sid=e99d92&_nc_ohc=kYVYaeV3TtUQ7kNvwHLw_vT&_nc_oc=Adp92vef16HWM9R2yC1fMYU9pSsxtZ7a92p1HdGDQMxlmvg5vbFDqluA7ZC2e_KAe4M&_nc_zt=24&_nc_ht=scontent-dfw5-2.xx&_nc_gid=apKCa4lsSS2rYE3Fc2SY-A&_nc_ss=7b289&oh=00_AQO5W53hdCNiV67G8bnxz-ohV2zPiNm25OszCtK5FFKGgg&oe=6ADBFCDA"
        },
        "authorAvatarUrl": "https://scontent-dfw5-2.xx.fbcdn.net/v/t39.30808-1/829196526_28444288788564276_3613430599644772745_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx960x960&ctp=s64x64&_nc_cat=107&ccb=1-7&_nc_sid=e99d92&_nc_ohc=kYVYaeV3TtUQ7kNvwHLw_vT&_nc_oc=Adp92vef16HWM9R2yC1fMYU9pSsxtZ7a92p1HdGDQMxlmvg5vbFDqluA7ZC2e_KAe4M&_nc_zt=24&_nc_ht=scontent-dfw5-2.xx&_nc_gid=apKCa4lsSS2rYE3Fc2SY-A&_nc_ss=7b289&oh=00_AQO5W53hdCNiV67G8bnxz-ohV2zPiNm25OszCtK5FFKGgg&oe=6ADBFCDA",
        "reactionCount": 3,
        "publishedAt": "2026-06-03T12:30:24+00:00",
        "replyCount": 0,
        "mediaUrlsExpireAt": "2026-10-24T00:33:30.000Z",
        "reactions": null
      }
    ],
    "hasMore": false,
    "nextCursor": null,
    "feedbackId": "ZmVlZGJhY2s6MTU0MTc1MzUyMzk4NjY4NQ=="
  }
}

Billing metadata (credits charged, cache hit/miss) is returned in the X-Captapi-Credits and X-Captapi-Cache response headers.

Request parameters

NameTypeRequiredDescription
urlstringNoFacebook post or Reel URL. Omit when feedbackId is set. The URL platform must match this endpoint's platform. A page/profile URL also works: Facebook renders the page's most recent post first, so you get that post's comments (each comment's url names the actual post).
feedbackIdstringNoPost feedback id from /v1/facebook/details (base64 feedback:POSTID). Prefer when you already have it — also accepts feedback_id.
limitintegerNoMax items to return (default 50, max 500). Flat 2 credits per call.
cachebooleanNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.

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. 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 access, 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. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Use it for analytics, monitoring, and content automation.

Ready to get Facebook comments?

Start free with 100 credits — no credit card required.

Get your free API key