Facebook

Facebook Comments Scraper

Extract comments from public Facebook posts, videos, reels and photos without logging in: comment text, author, publish time, reactions by type, reply counts and optionally the replies themselves, ordered newest first, all comments or most relevant.

What it extracts

Every field below comes from the Actor’s published dataset schema.

FieldDescriptionType
authorAuthorobject
textCommenttext
created_timePosteddate
reactionsReactionsobject
replies_countRepliesnumber
depthDepthnumber
comment_urlComment URLlink
post_urlPost URLlink
attachmentsAttachmentsarray

Input parameters

Generated from the Actor’s input schema — the same fields the Apify console shows.

ParameterTypeRequiredDescription
startUrlsarrayRequiredPublic Facebook posts to collect comments from. Paste post links such as https://www.facebook.com/zuck/posts/pfbid0…, video or reel links, photo links, or permalink.php and story.php links. One entry per post, and as many posts as you like.
maxItemsintegerOptionalMaximum number of comments to scrape from each post (start URL). Replies count towards this limit when they are included.
sortBystringOptionalWhich comments to collect and in what order: all comments in Facebook's default order, newest first, or Facebook's "most relevant" selection, which leaves some comments out.
includeRepliesbooleanOptionalAlso collect the replies under each comment. Replies are separate items with depth 1 and a parent_comment_id, and count towards maxItems.
maxRepliesPerCommentintegerOptionalWhen replies are included, how many to collect under each comment.
proxyConfigurationobjectOptionalProxy configuration. Defaults to Apify residential proxies, which work for every supported link. Datacenter proxies are cheaper and work for post, video and reel links, but Facebook sends photo links to its login page from datacenter IP addresses.

API access

Run this Actor from your own code over the Apify API.

Inputjson
{
  "startUrls": [
    "https://www.facebook.com/zuck/posts/pfbid02XPBMPD53KhnFbypJNZqKupd9yno64L9Vm1VCxppfq7bYh7ndk95fzDDvfgZEMXYkl",
    "https://www.facebook.com/zuck/videos/2300161320399228/"
  ]
}
REST — run and get resultsbash
curl -X POST \
  "https://api.apify.com/v2/acts/logical_scrapers~facebook-comments-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"startUrls":["https://www.facebook.com/zuck/posts/pfbid02XPBMPD53KhnFbypJNZqKupd9yno64L9Vm1VCxppfq7bYh7ndk95fzDDvfgZEMXYkl","https://www.facebook.com/zuck/videos/2300161320399228/"]}'
JavaScript — apify-clientjavascript
import { ApifyClient } from 'apify-client'

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' })

const run = await client.actor('logical_scrapers~facebook-comments-scraper').call({
  "startUrls": [
    "https://www.facebook.com/zuck/posts/pfbid02XPBMPD53KhnFbypJNZqKupd9yno64L9Vm1VCxppfq7bYh7ndk95fzDDvfgZEMXYkl",
    "https://www.facebook.com/zuck/videos/2300161320399228/"
  ]
})

const { items } = await client.dataset(run.defaultDatasetId).listItems()
console.log(items)
Python — apify-clientpython
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("logical_scrapers~facebook-comments-scraper").call(run_input={
    "startUrls": [
        "https://www.facebook.com/zuck/posts/pfbid02XPBMPD53KhnFbypJNZqKupd9yno64L9Vm1VCxppfq7bYh7ndk95fzDDvfgZEMXYkl",
        "https://www.facebook.com/zuck/videos/2300161320399228/",
    ],
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

Runs are executed on Apify. Create an API token in your Apify account, then call the Actor over REST or with the official client for your language. The same input object works in the Apify console, so you can test interactively before automating.

Pricing

Data not currently verified. This Actor's pricing model is not declared in our source repository.

Current rates are published on the Apify listing and can change, so they are not duplicated here. See pricing on Apify

Reliability

99.4% run success rate

Measured across all public Goldmine Actors on Apify, 2026-08-24. This is an account-level figure, not a per-Actor benchmark — per-Actor speed and completeness benchmarks are not yet published. Source.

Field and input tables are generated from this Actor's published schemas. Usage figures measured 2026-08-24 from the Apify listing.