Facebook Comments API: export comments and replies of public posts as JSON

To export the comments of a public Facebook post or reel, send the post URL to one REST endpoint and you get the comments back as JSON, one page at a time with a cursor. A second endpoint loads the replies under a single comment. You do not need a Facebook app, a page access token or admin rights on the page, and each successful call is billed on its own.

Buy credits

Use cases

Endpoints and cost

EndpointWhat it returnsCredits/callUSD/call (Freelance plan)
/v1/facebook/post_commentsComments1$0.0017
/v1/facebook/post_comment_repliesComment Replies1$0.0017

Endpoint details

/v1/facebook/post_comments

Comments 1,000 calls = 1,000 credits = $1.67 on the Freelance plan.

ParameterTypeRequiredDescription
urlstringnoFacebook post URL (or reel URL)
feedback_idstringnoUsing feedback_id (instead of url) will *really* speed up the request. You can get the feedback_id when you make a request to /v1/facebook/post.
next_cursorstringnoCursor to get more comments. Get 'cursor' from previous response.

Sample response (trimmed):

{
 "comments": [
  {
   "id": "Y29tbWVudDoxMjA2OTAzNjAxNDgzOTYwXzc3OTIzNDI4MTE0NjkzNQ==",
   "text": "Do 1/2 mini Oreos and 1/2 peanut butter ritz Bitz, otherwise the same recipe. It’s the BEST",
   "created_at": "2025-09-01T01:10:40.000Z",
   "reply_count": 1,
   "reaction_count": 95,
   "reactions": {
    "thankful": 0,
    "like": 79,
    "love": 4,
    "care": 0,
    "haha": 1,
    "wow": 11,
    "sad": 0,
    "anger": 0,
    "pride": 0,
    "confused": 0
   },
   "author": {
    "id": "pfbid02SdzVLPYTHY2eGMdrwFrLw54sVZdguAGnLUj4RPL3HxFtG2D4PBBjptiMEwpB21Ehl",
    "name": "Robin Bergsagel",
    "gender": "FEMALE",
    "short_name": "Robin"
   }
  }
 ],
 "next_cursor": "MToxNzc2NDYxMjMwOgF......",
 "has_next_page": true
}

/v1/facebook/post_comment_replies

Comment Replies 1,000 calls = 1,000 credits = $1.67 on the Freelance plan.

ParameterTypeRequiredDescription
feedback_idstringyesThe *feedback_id* of the comment. Be careful, this is not the comment id. You can get the feedback_id from the /v1/facebook/post/comments endpoint.
expansion_tokenstringyesThe expansion_token of the comment. You can get the expansion_token from the /v1/facebook/post/comments endpoint.
next_cursorstringnoThe cursor to paginate to the next page

Example: curl

curl -H "X-Scapi-Key: $SCAPI_KEY" "https://api.scrapall.bipsport.com/scapi/v1/facebook/post_comments"

Example: Python

import os, requests
r = requests.get("https://api.scrapall.bipsport.com/scapi/v1/facebook/post_comments",
    headers={"X-Scapi-Key": os.environ["SCAPI_KEY"]})
print(r.json())

FAQ

How do I export comments from a Facebook post?

Call the comments endpoint with the public post or reel URL, or with its feedback_id, and your API key in the header. Each response holds one page of comments with the id and text of each comment. Pass next_cursor to load the next page.

Can I get the replies to a comment?

Yes. The comment replies endpoint takes the feedback_id and expansion_token of a comment and returns its replies with cursor pagination. Each reply includes an attachments array for images and other media.

Do I need to be an admin of the page?

No. Only public posts and reels are read, so you do not need admin rights, a Facebook app or a Graph API token. You only need a Scrapall API key.

Does it work for reels as well as posts?

Yes. The comments endpoint accepts the URL of a public post or a public reel, and paginates the same way for both.

How is it billed?

Each successful page request is billed from your credit balance. The exact cost per endpoint is shown in the cost table on this page and comes from the live price list.

How do I pay and get my API key?

Open the Buy page, pick the Freelance plan and pay in USDT on TRC20 or ERC20. The key is shown once, right after the payment is confirmed on-chain.

How many credits does one call use?

The cost table on this page lists credits per call for each endpoint. The Freelance plan is $45 for 27,000 credits per 30 days.

Get an API key and credits

Full reference: all facebook endpoints.