Facebook URL posts and comments scraper avatar
Facebook URL posts and comments scraper

Pricing

$10.00 / 1,000 results

Go to Apify Store
Facebook URL posts and comments scraper

Facebook URL posts and comments scraper

Developed by

z

z

Maintained by Community

Scrapes Facebook posts and comments using Playwright. It requires **logged-in cookies** to access search results consistently.

0.0 (0)

Pricing

$10.00 / 1,000 results

0

11

11

Last modified

18 days ago

Facebook Posts/Comments Scraper

This actor scrapes Facebook posts and comments using Playwright. It requires logged-in cookies to access search results consistently.

Features

  • Search mode: provide search_queries to scrape posts from Facebook search
  • Direct mode: provide post_urls to scrape specific posts
  • Extracts post fields: text, timestamps, author info, counts
  • Extracts comment fields: author info, text, like/reply counts, timestamps
  • Rate limiting + random waits
  • Saves to the default dataset in two item types: post and comment

Input

See input_schema.json for all parameters. The most important is cookies:

  • Provide a raw Cookie header string copied from your browser (while logged into facebook.com).
  • Never share cookies publicly.

Local run

npm install
npm run build
apify run # or: node dist/main.js

Push to Apify

apify login
apify push --name facebook-posts-comments-clone

Notes

  • Facebook constantly changes markup; you may need to tweak selectors.
  • Responsible use only. Respect site terms and local laws.