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 ~30 credits (0.6/result) per call — no OAuth, scraping or platform SDKs. Pull Facebook comments with author, text, likes, and timestamps.

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?url=https%3A%2F%2Fwww.facebook.com%2FNASA%2Fposts%2Fpfbid02skzNsrLf5atYZfzvzHAK9gHwDnZC5u4pDZMLQ1u3iJmfoA8tNsGpT7Uj6WPs6K3Rl" \
  -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": 10,
    "comments": [
      {
        "id": "1003271445544158",
        "url": "https://www.facebook.com/NASA/posts/pfbid02sYSwFx8buCZPUWBSu4R21XWs6dbEM8aZmq4m4pJXi1MgGED8ZEVbh2gtwKen47GLl?comment_id=1003271445544158",
        "text": "how is this different from JWST?",
        "author": "Jack Ryan Miller",
        "authorUrl": null,
        "authorAvatarUrl": "https://scontent-lga3-3.xx.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=d8gNfUMGQpkQ7kNvwGCmvw7&_nc_oc=AdrzxpmcFDLwBliIIzZ9rK7qODcDwTCslB_HiujEINZoS3xuTk07somGR1DaTdLpS-c&_nc_zt=24&_nc_ht=scontent-lga3-3.xx&_nc_gid=NDDEMd-zvvrxDXE4mWGeGg&_nc_ss=72289&oh=00_AQDhR5PlDm2xc8sEM_ZP4s136NQYAetxrt7aw6TlWewofw&oe=6A4DAF69",
        "likeCount": 7,
        "publishedAt": "2026-06-02T19:30:33.000Z",
        "replyCount": 6
      },
      {
        "id": "1565653145168639",
        "url": "https://www.facebook.com/NASA/posts/pfbid02sYSwFx8buCZPUWBSu4R21XWs6dbEM8aZmq4m4pJXi1MgGED8ZEVbh2gtwKen47GLl?comment_id=1565653145168639",
        "text": "You had me at Roman",
        "author": "Mike Harwick",
        "authorUrl": null,
        "authorAvatarUrl": "https://scontent-lga3-2.xx.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=2R8B2A4Q9v4Q7kNvwHheESe&_nc_oc=Ado8G1jVQjwWgb2472nxoRMNn5LkeqMcZKwsLz5qNU-0zQY9tWdiI8wLPtXcAvOPmVA&_nc_zt=24&_nc_ht=scontent-lga3-2.xx&_nc_gid=NDDEMd-zvvrxDXE4mWGeGg&_nc_ss=72289&oh=00_AQB3bWNAdGchRPoAQwI2PZ4KgajEx526nlG21jxAXMYrRg&oe=6A4DBFD4",
        "likeCount": 3,
        "publishedAt": "2026-06-03T12:30:24.000Z",
        "replyCount": 0
      },
      {
        "id": "2545567982564356",
        "url": "https://www.facebook.com/NASA/posts/pfbid02sYSwFx8buCZPUWBSu4R21XWs6dbEM8aZmq4m4pJXi1MgGED8ZEVbh2gtwKen47GLl?comment_id=2545567982564356",
        "text": "For those confused about whom this was named after. Nancy Grace Roman (May 16, 1925 – December 25, 2018) was an American astronomer who made important contributions to stellar classification and stellar motions. The first female executive at NASA, Roman served as NASA's first Chief of Astronomy throughout the 1960s and 1970s, establishing her as one of the \"visionary founders of the US civilian space program\"",
        "author": "Michael Johnson",
        "authorUrl": null,
        "authorAvatarUrl": "https://scontent-lga3-2.xx.fbcdn.net/v/t39.30808-1/715464960_1534487678342523_3205477696229619791_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx1200x1200&ctp=s32x32&_nc_cat=101&ccb=1-7&_nc_sid=e99d92&_nc_ohc=rlfUfVuSX3AQ7kNvwHGCZZY&_nc_oc=AdqibTW46-J6jDQycx21xiQpJ9PR5Hoc6clsgkWjUykXDJ4w0uK0Oqo3XXS7ekmYcz4&_nc_zt=24&_nc_ht=scontent-lga3-2.xx&_nc_gid=NDDEMd-zvvrxDXE4mWGeGg&_nc_ss=72289&oh=00_AQBkIBV0dg_ERT9bl3n7ByAoxhYewIPHmITmvk4m5M0qnQ&oe=6A4DC58B",
        "likeCount": 5,
        "publishedAt": "2026-06-05T19:10:38.000Z",
        "replyCount": 0
      },
      {
        "id": "3207368056140091",
        "url": "https://www.facebook.com/NASA/posts/pfbid02sYSwFx8buCZPUWBSu4R21XWs6dbEM8aZmq4m4pJXi1MgGED8ZEVbh2gtwKen47GLl?comment_id=3207368056140091",
        "text": "This is the era of space initiatives. 👏",
        "author": "Megan Kelly",
        "authorUrl": null,
        "authorAvatarUrl": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.30808-1/699650025_27974478592140854_2536163107065285396_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx1536x1539&ctp=s32x32&_nc_cat=108&ccb=1-7&_nc_sid=e99d92&_nc_ohc=tbqyy3KAvYEQ7kNvwHlS58I&_nc_oc=AdqNmfmG0DHZcM5qhkRH3gACPM1cJJuatbfKW3OAq0s8ZWOsSUHPawkrnqIZVWTLhAo&_nc_zt=24&_nc_ht=scontent-lga3-3.xx&_nc_gid=NDDEMd-zvvrxDXE4mWGeGg&_nc_ss=72289&oh=00_AQA-auJ1P7MpdCJxQQLZPoNHlQWxCqgtMjZ0pp-u7cFJxA&oe=6A4DB689",
        "likeCount": 4,
        "publishedAt": "2026-06-03T13:15:11.000Z",
        "replyCount": 0
      },
      {
        "id": "1009195248315125",
        "url": "https://www.facebook.com/NASA/posts/pfbid02sYSwFx8buCZPUWBSu4R21XWs6dbEM8aZmq4m4pJXi1MgGED8ZEVbh2gtwKen47GLl?comment_id=1009195248315125",
        "text": "Anxious to see what the new scope sees.",
        "author": "Richard Alexandrowich",
        "authorUrl": "https://www.facebook.com/richard.alexandrowich.1",
        "authorAvatarUrl": "https://scontent-lga3-2.xx.fbcdn.net/v/t39.30808-1/449687176_1970527473417419_1705720154636413099_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx960x957&ctp=s32x32&_nc_cat=100&ccb=1-7&_nc_sid=e99d92&_nc_ohc=25mjsrWPI24Q7kNvwHK9wMZ&_nc_oc=Adq0tkmzElFjiLVTBzfbc39TkfQ2vS42BV89O2aUBf7ryYLH6vPJgQxvHhTYw7FlyKY&_nc_zt=24&_nc_ht=scontent-lga3-2.xx&_nc_gid=NDDEMd-zvvrxDXE4mWGeGg&_nc_ss=72289&oh=00_AQBTQe7yogIemboS_dtKxWbR_nslC8CcrxVMtBuvQt3CFw&oe=6A4DA704",
        "likeCount": 3,
        "publishedAt": "2026-06-03T02:04:15.000Z",
        "replyCount": 7
      },
      {
        "id": "1002105058890776",
        "url": "https://www.facebook.com/NASA/posts/pfbid02sYSwFx8buCZPUWBSu4R21XWs6dbEM8aZmq4m4pJXi1MgGED8ZEVbh2gtwKen47GLl?comment_id=1002105058890776",
        "text": "Congratulations, NASA! 👏👏🔭 Wishing great success to the Nancy Grace Roman Space Telescope mission. We look forward to new discoveries that will help us better understand the universe. The future of space exploration is truly inspiring. ✨",
        "author": "Shaafici Yuusuf Isaxaaq",
        "authorUrl": "https://www.facebook.com/people/Shaafici-Yuusuf-Isaxaaq/pfbid0eESdgWovgikQ6hqSpGiRxqw2BGbyS5LoqsUmZe9X8f6ywW7spjtzZXXn4na9Cuwxl/",
        "authorAvatarUrl": "https://scontent-lga3-3.xx.fbcdn.net/v/t1.30497-1/453178253_471506465671661_2781666950760530985_n.png?stp=cp0_dst-png&cstp=mx2048x2048&ctp=s32x32&_nc_cat=1&ccb=1-7&_nc_sid=136b72&_nc_ohc=ysO1ZV-VvVsQ7kNvwE9oW_3&_nc_oc=AdrK4s32AKaoPwwp8lstFlPFeOeirKgnzORz--SMgE4OSUmI_E1LELs0S0e_QJAmVEU&_nc_zt=24&_nc_ht=scontent-lga3-3.xx&_nc_ss=72289&oh=00_AQAnmtdghSEDny9DGLjfGj_X4oWovIhrP54zDXY2LSc9Dg&oe=6A6F3DFA",
        "likeCount": 3,
        "publishedAt": "2026-06-02T19:59:30.000Z",
        "replyCount": 0
      },
      {
        "id": "2588022801599649",
        "url": "https://www.facebook.com/NASA/posts/pfbid02sYSwFx8buCZPUWBSu4R21XWs6dbEM8aZmq4m4pJXi1MgGED8ZEVbh2gtwKen47GLl?comment_id=2588022801599649",
        "text": "Best Wishes: NASA :)",
        "author": "Bharat Gupte",
        "authorUrl": null,
        "authorAvatarUrl": "https://scontent-lga3-1.xx.fbcdn.net/v/t39.30808-1/369676819_3101434540166215_6134137925538258367_n.jpg?stp=c0.0.1032.1032a_cp0_dst-jpg_tt6&cstp=mx1032x1032&ctp=s32x32&_nc_cat=109&ccb=1-7&_nc_sid=e99d92&_nc_ohc=PzpCGM6kwXUQ7kNvwE4AIn9&_nc_oc=Adr3e1QR4GSsMcJAsvqtq4VgJZHTwPZ7W4TYkOcjpqHv198arYj7xT875z_HKWhQujI&_nc_zt=24&_nc_ht=scontent-lga3-1.xx&_nc_gid=NDDEMd-zvvrxDXE4mWGeGg&_nc_ss=72289&oh=00_AQAVYVePWcvn9nlWqQLpPvwEADo1USrqj-2SHhc5bhcYPQ&oe=6A4DBFB9",
        "likeCount": 4,
        "publishedAt": "2026-06-02T19:13:18.000Z",
        "replyCount": 0
      },
      {
        "id": "2065327014385245",
        "url": "https://www.facebook.com/NASA/posts/pfbid02sYSwFx8buCZPUWBSu4R21XWs6dbEM8aZmq4m4pJXi1MgGED8ZEVbh2gtwKen47GLl?comment_id=2065327014385245",
        "text": "So excited!!!!!",
        "author": "Omar Velez Cruz",
        "authorUrl": null,
        "authorAvatarUrl": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.30808-1/666204534_10165870909217323_1446294414061896309_n.jpg?stp=cp6_dst-jpg_tt6&cstp=mx2048x2048&ctp=s32x32&_nc_cat=106&ccb=1-7&_nc_sid=1d2534&_nc_ohc=mgWAFgIhgDgQ7kNvwEuVTtX&_nc_oc=AdpUa268YE1IiPjS-Bn6SzYjYaN5DmPUOfkSX0h6QeaGnHUPFqi6oCWktBOUPkMzMzM&_nc_zt=24&_nc_ht=scontent-lga3-3.xx&_nc_gid=NDDEMd-zvvrxDXE4mWGeGg&_nc_ss=72289&oh=00_AQAnLQocPxNf2ACuG12mfpz52hALkCYy8EZhoHzZ6mAFMA&oe=6A4D9AA2",
        "likeCount": 5,
        "publishedAt": "2026-06-02T19:14:01.000Z",
        "replyCount": 0
      },
      {
        "id": "1223091789783822",
        "url": "https://www.facebook.com/NASA/posts/pfbid02sYSwFx8buCZPUWBSu4R21XWs6dbEM8aZmq4m4pJXi1MgGED8ZEVbh2gtwKen47GLl?comment_id=1223091789783822",
        "text": "Superb! ⭐✨ ⭐",
        "author": "Joshua Furchner",
        "authorUrl": "https://www.facebook.com/joshua.furchner",
        "authorAvatarUrl": "https://scontent-lga3-2.xx.fbcdn.net/v/t39.30808-1/736413473_10167616880043852_1821425717597838096_n.jpg?stp=c0.120.720.720a_cp0_dst-jpg_tt6&cstp=mx720x720&ctp=s32x32&_nc_cat=100&ccb=1-7&_nc_sid=e99d92&_nc_ohc=ScLRyGVqaUAQ7kNvwEpJ-mK&_nc_oc=AdrKAa9eO7Kg0Uk7DDYONGeCAfPf6u8o3eGBqq-XJ-tq1OrWy1zSS-ryTieYjZBKlVc&_nc_zt=24&_nc_ht=scontent-lga3-2.xx&_nc_gid=NDDEMd-zvvrxDXE4mWGeGg&_nc_ss=72289&oh=00_AQAguYRPu1UIE2Wws3QfsPYb81BS6LbOmgIi234lEYLjug&oe=6A4DADD2",
        "likeCount": 6,
        "publishedAt": "2026-06-02T20:58:50.000Z",
        "replyCount": 0
      },
      {
        "id": "974877578687126",
        "url": "https://www.facebook.com/NASA/posts/pfbid02sYSwFx8buCZPUWBSu4R21XWs6dbEM8aZmq4m4pJXi1MgGED8ZEVbh2gtwKen47GLl?comment_id=974877578687126",
        "text": "Cool 😎.",
        "author": "Paul Smith",
        "authorUrl": null,
        "authorAvatarUrl": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.30808-1/514400895_3128556083960795_3070587807461343248_n.jpg?stp=c0.0.183.183a_cp0_dst-jpg_tt6&cstp=mx183x183&ctp=s32x32&_nc_cat=106&ccb=1-7&_nc_sid=e99d92&_nc_ohc=c4n99BSyADIQ7kNvwGpocIU&_nc_oc=AdrkDzcDhh3A4_ccotuY4dZ4Xq0U2Snn5WQ4gXOCRYI6VZJIb6syk3xe1T3ego20KKc&_nc_zt=24&_nc_ht=scontent-lga3-3.xx&_nc_gid=NDDEMd-zvvrxDXE4mWGeGg&_nc_ss=72289&oh=00_AQBrifFxt3CWk7galuN8AtxK9sEiJ7ovYhojfLGMrsJ-MA&oe=6A4DC6EA",
        "likeCount": 2,
        "publishedAt": "2026-06-04T21:54:48.000Z",
        "replyCount": 0
      }
    ]
  }
}

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

Request parameters

NameTypeRequiredDescription
urlstring YesPublic Facebook video or post URL. The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble.
limitintegerNoMax items to return (default 50, max 500). Billed per result.
cachebooleanNoSet true to serve from the 24h response cache. Default false — always fetch fresh data.

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?

At the default limit this endpoint costs 30 credits (0.6 per result). Billing scales with how many results you request. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh. 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 shared cache (0 credits on hit); default is always fresh. 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