Black Friday: double credits on your first month, any plan · ends Sunday, Nov 29Cyber Monday extension: double credits on your first month, any plan · ends tonightBlack Friday: 2x creditsCyber Monday: 2x creditsSee plans
ScraperCity logo

Facebook Comments API Documentation

Facebook Comments

Get the comments on Facebook posts, videos and reels: comment link, text, date, reactions, replies, and the name and profile link of who wrote each.

$0.0007 per commentPOST /api/v1/scrape/facebook-comments

Parameters

NameTypeRequiredDescription
postsstring[]OptionalFacebook post, video or reel links (up to 200)Example: ["https://www.facebook.com/nike/posts/pfbid0examplePostId"]
maxResultsnumberOptionalThe most comments to return in all (default 100, up to 10,000)Default: 100Example: 100

Examples

Comments on a post

curl -X POST https://app.scrapercity.com/api/v1/scrape/facebook-comments \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "posts": [
      "https://www.facebook.com/nike/posts/pfbid0examplePostId"
    ],
    "maxResults": 500
  }'

Check status and download

curl -X GET https://app.scrapercity.com/api/v1/scrape/status/{runId} \
  -H "Authorization: Bearer YOUR_API_KEY"

# When status is SUCCEEDED, download the CSV
curl -L https://app.scrapercity.com/api/downloads/{runId} -o facebook-comments.csv

Use Cases

  • •Find the people engaging with a competitor's posts
  • •Read customer questions and complaints under a brand's posts

Best Practices

  • •Charged per comment returned; a search is charged at least what it cost to run, shown as a minimum charge
  • •Most searches finish in 1-5 minutes
  • •maxResults is the total across all posts sent
  • •CSV columns: post_url, comment_url, commented_at, text, reactions, replies, author_name, author_url

Every scrape returns a runId. Poll GET /api/v1/scrape/status/{runId} until it completes, then download via GET /api/downloads/{runId}?format=csv.

Authenticate every request with Authorization: Bearer YOUR_API_KEY. See the full API reference for authentication, rate limits and error codes.