Facebook Post Scraper
by pratikdani
Extract detailed data from any public Facebook post—text, user info, engagement stats, and media. Perfect for automated research, lead gen, and social analysis.
Opens on Apify.com
About Facebook Post Scraper
Need to pull data from Facebook posts for research, marketing, or development? This Facebook Post Scraper does the heavy lifting. You feed it a list of valid Facebook post URLs, and it returns a structured dataset with everything you'd want to know. I've used it to gather the post's text, the publishing user's details, and all the engagement numbers—likes, comments, shares, you name it. It also neatly handles any attached media, grabbing links to images and videos. For me, the real value is in automating what would otherwise be a painfully manual copy-paste job. It's perfect for sentiment analysis, competitor tracking, or building datasets for social media monitoring tools. The output is clean JSON, ready to pipe into your analytics platform or a simple spreadsheet. Just set it up with your target URLs, run it, and you've got a comprehensive snapshot of public Facebook content without ever opening the app.
What does this actor do?
Facebook Post 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
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
Facebook Post Scraper
Overview
This actor extracts structured data from public Facebook posts using their URLs. It returns metadata, content, engagement metrics, and user information in a consistent JSON format.
Key Features
- Comprehensive Data: Extracts post content, author details, timestamps, and post type.
- Engagement Metrics: Captures likes (with reaction breakdown), comments, shares, and video-specific stats like view/play counts.
- Media & Links: Identifies attached images, videos, external links, and hashtags.
- Page Insights: Optionally retrieves page-level data like follower counts and verification status.
How to Use
- Input: Provide one or more valid public Facebook post URLs in the actor's input.
- Run: Start the actor. It will navigate to each URL and scrape the available data.
- Output: Retrieve the structured dataset from the actor's output, typically in JSON format.
Get the actor here: Facebook Post Scraper.
Input/Output
Input: A list of Facebook post URLs. Example:
{
"startUrls": [
"https://www.facebook.com/examplepage/posts/123456789"
]
}
Output: An array of objects containing post data. Key fields include:
| Field | Description |
|---|---|
url, post_id |
The post URL and its unique ID. |
user_url, user_username_raw |
Author's profile URL and display name. |
content, date_posted, hashtags |
Post text, timestamp, and extracted hashtags. |
num_comments, num_shares, likes |
Counts for comments, shares, and total likes. |
num_likes_type |
Detailed breakdown of reactions (Like, Love, Care, etc.). |
attachments |
Array of attached media (videos, images). |
video_view_count, play_count |
Metrics for video posts. |
post_type |
The type of post (e.g., Video, Photo). |
Example Output Snippet:
{
"url": "https://www.facebook.com/arian.n.180/videos/524608810606709/",
"post_id": "524608810606709",
"user_username_raw": "Arian N",
"content": "#MLBB",
"date_posted": "2024-12-28T17:39:18.000Z",
"hashtags": ["mlbb"],
"num_comments": 0,
"num_likes_type": [
{ "num": 2, "type": "Love" },
{ "num": 1, "type": "Like" }
],
"post_type": "Video",
"video_view_count": 150
}
Categories
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 Post Scraper now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- pratikdani
- Pricing
- Paid
- Total Runs
- 26,870
- Active Users
- 334
Related Actors
🏯 Tweet Scraper V2 - X / Twitter Scraper
by apidojo
Instagram Scraper
by apify
TikTok Scraper
by clockworks
Instagram Profile Scraper
by apify
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support