Facebook Scraper Post avatar
Facebook Scraper Post

Pricing

Pay per event

Go to Apify Store
Facebook Scraper Post

Facebook Scraper Post

Developed by

Giichi Arai

Giichi Arai

Maintained by Community

Fast API-powered scraper to extract posts from Facebook profiles. Output format mimics the Facebook Graph API response, making it easy to integrate with existing tools and pipelines.

0.0 (0)

Pricing

Pay per event

0

2

2

Last modified

5 hours ago

Facebook Scraper Post – Fast API-powered Facebook Posts Extractor

Fast and reliable scraper for extracting posts from Facebook profiles. Perfect for social media monitoring, content analysis, and research.

Features

  • 🚀 Fast & Reliable: Built with high-performance API endpoints
  • 🔄 Pagination Support: Automatically handles pagination to get all posts
  • 📊 Multiple Output Formats: Export data as JSON, CSV, or Excel
  • 🎯 Precise Targeting: Get posts from specific Facebook profiles using URLs
  • 🔧 Flexible Configuration: Customize post limits and output formats
  • 💾 Structured Data: Clean, formatted output with consistent field names
  • 🔍 Deduplication: Automatically removes duplicate posts across profiles

Input Parameters

Required Parameters

  • Facebook URLs (facebookUrls): List of Facebook profile URLs to extract posts from
    • Format: Array of strings containing Facebook profile URLs
    • Example: ["https://www.facebook.com/profile1", "https://www.facebook.com/profile2"]
    • Supports full Facebook URLs (e.g., https://www.facebook.com/username)

Optional Parameters

  • Maximum Posts Per Profile (maxPostsPerProfile): Maximum number of posts to extract per profile
    • Default: 50
    • Range: 1-2000

Usage Examples

Basic Usage

{
"facebookUrls": ["https://www.facebook.com/zuck"],
"maxPostsPerProfile": 25
}

Multiple Profiles

{
"facebookUrls": [
"https://www.facebook.com/profile1",
"https://www.facebook.com/profile2",
"https://www.facebook.com/profile3"
],
"maxPostsPerProfile": 50
}

Output sample

[
{
"id": "998877665544332211_1234567890",
"type": "link",
"description": "Today, the online community is spreading an interesting clip about a dog that can play the piano.",
"message": "You won't believe it! 🐶🎹",
"picture": "https://example.com/images/dog_piano_thumb.jpg",
"attachments": [
{
"title": "Today, the online community is spreading an interesting clip about a dog that can play the piano.",
"description": "A Golden Retriever has gone viral after performing a famous piece of music on the piano.",
"url": "https://example.com/articles/dog-playing-piano",
"type": "share",
"media": {
"src": "https://example.com/images/dog_piano.jpg",
"width": 640,
"height": 360
}
}
],
"from": {
"id": "998877665544332211",
"name": "Pet Lovers News",
"link": "https://facebook.com/petloversnews",
"profile_url": "https://facebook.com/petloversnews",
"picture": "https://example.com/images/page_avatar.jpg"
},
"reaction_count": 124,
"share_count": 15,
"comment_count": 32,
"created_time": "2025-09-10T08:45:00+0000",
"updated_time": "2025-09-11T12:30:00+0000"
}
]

How It Works

  1. Profile ID Resolution: Each Facebook URL is sent to the ID API to get the internal Facebook profile ID
  2. Posts Retrieval: Using the profile ID, the actor fetches posts from the Facebook API
  3. Pagination: Automatically handles pagination to retrieve all requested posts
  4. Data Processing: Formats and structures the data consistently
  5. Deduplication: Removes duplicate posts across multiple profiles
  6. Data Storage: Saves results to Apify Dataset for easy export

Common Use Cases

  1. Social Media Monitoring: Track posts from specific Facebook pages or profiles
  2. Content Analysis: Analyze posting patterns and engagement metrics
  3. Brand Monitoring: Monitor mentions and content from brand pages
  4. Research: Study social media behavior and content trends
  5. Competitive Analysis: Monitor competitor social media activity
  6. Content Curation: Collect posts for content inspiration