Facebook Profile & Posts Scraper

Facebook Profile & Posts Scraper

by cleansyntax

Fetch public Facebook profile data with one tool. Collect profile posts, get profile details by page ID/URL, or get a profile ID from a URL.

21,005 runs
310 users
Try This Actor

Opens on Apify.com

About Facebook Profile & Posts Scraper

Fetch public Facebook profile data with one tool. Collect profile posts, get profile details by page ID/URL, or get a profile ID from a URL.

What does this actor do?

Facebook Profile & Posts Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

๐Ÿ“˜ Facebook Profile Scraper Scrape Facebook Profiles โ€” recent profile posts, profile details (by ID or URL), and profile ID lookup โ€” powered by our Facebook Scraper. --- ## โœจ Features * Profile posts: Fetch public profile posts by ID or by URL. * Profile details: Retrieve rich profile metadata by ID or by URL. * Profile ID lookup: Resolve a profile ID from a URL ## ๐Ÿงญ Endpoints Choose one endpoint per run: 1. profile_posts_by_url GET /profile/posts?profile_url=...&start_date=YYYY-MM-DD&end_date=YYYY-MM-DD 2. profile_posts_by_id GET /profile/posts?profile_id=...&start_date=YYYY-MM-DD&end_date=YYYY-MM-DD 3. details_by_id GET /profile/details_id?profile_id=... 4. details_by_url GET /profile/details_url?url=... 5. profile_id_by_url GET /profile/profile_id?url=... --- ## ๐Ÿš€ How It Works 1. Pick the endpoint in the Actor input (dropdown). 2. Fill only the parameter(s) required for that endpoint. 3. Run the Actor. * For Profile posts, the Actor: * Calls GET /profile/posts?profile_url/id=... (+ optional start_date, end_date), * Pushes posts to the dataset, * Continues with GET /profile/posts?profile_url/id=... until finished. All results are stored in the default Apify Dataset, ready to export as CSV, XLSX, or JSON. --- ## ๐Ÿงพ Input ### Fields * endpoint (required) โ€” one of: * profile_posts_by_id * profile_posts_by_url * details_by_id * details_by_url * profile_id_by_url * profile_id (string) โ€” required for profile_posts, details_by_id * profile_url (string) โ€” required for profile_posts, details_by_url * url (string) โ€” required for details_by_url, profile_id_by_url * start_date (YYYY-MM-DD, optional) โ€” filter for profile_posts * end_date (YYYY-MM-DD, optional) โ€” filter for profile_posts ## ๐Ÿ“ฆ Output All results are saved as items in the default Apify Dataset. ### Profile posts Each dataset item is a post object from the API, plus helper fields: * profile_url or profile_id (search term) โ€” the URL or ID you queried Common fields (may vary): post_id, type, url, message, timestamp, comments_count, reactions_count, reshare_count, reactions (object), author (object), media (image, video, video_files, video_thumbnail, album_preview, external_url). ### Profile details (by ID / by URL) Single record with profile metadata (structure depends on API). We push results if present, otherwise the raw payload, plus: * profile_id (search term) or url (search term) ### Profile ID by URL Single record containing the resolved profile ID, plus: * url (search term) > Export via Dataset โ†’ Export in the Apify UI (CSV, XLSX, JSON). ## ๐Ÿง  Reliability & Pagination * Pagination: Automatically keeps requesting until the API stops returning profile posts. * Retries: 3 attempts with a 5s backoff for transient failures (e.g., 429/5xx). * Polite delay: A short delay between requests helps reduce rate-limit hits. * Minimal logs: Progress lines look like: total posts collected 3 total posts collected 6 --- ## ๐Ÿ›ก๏ธ Best Practices * Use realistic workloads; although the Actor retries on 429/503, excessive calling can still be throttled. * For very large profiles, consider narrowing date filters or splitting runs. * Profiles must be public for data to be returned by the API. --- ## ๐Ÿ”ง Troubleshooting * 422 Field required: profile_id The API requires profile_id even when using a cursor. This Actor always includes it; ensure your input has profile_id filled. * 429 Rate limited The Actor retries up to 3 times with a 5s delay. If it persists, slow down or split the job. * No posts returned The profile may be private, there may be no posts, or your date range excludes available posts. * Empty details/ID Double-check the URL/ID. Some profiles or URLs may not resolve or be supported. ## ๐Ÿ“ˆ SEO Keywords facebook profile scraper, scrape facebook posts, facebook profile details api

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Facebook Profile & Posts Scraper now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
cleansyntax
Pricing
Paid
Total Runs
21,005
Active Users
310
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support