Facebook Posts Scraper avatar

Facebook Posts Scraper

Pricing

from $0.70 / 1,000 results

Go to Apify Store
Facebook Posts Scraper

Facebook Posts Scraper

πŸ”₯$0.7/1000 resultsπŸ”₯ Scrape posts from any public Facebook page or profile. Extract post text, reactions, comments count, shares, timestamps, and author details. 350+ posts/min. Scrape 10 years history. Export as JSON, CSV, Excel. API, MCP, and webhook ready for Claude, ChatGPT, and AI agents.

Pricing

from $0.70 / 1,000 results

Rating

0.0

(0)

Developer

Scrape Smith

Scrape Smith

Maintained by Community

Actor stats

1

Bookmarked

7

Total users

5

Monthly active users

3 days ago

Last modified

Share

πŸ“„ Facebook Posts Scraper

The fastest Facebook posts scraper on Apify. Extract posts from any public Facebook page or profile β€” post text, reactions, comments, shares, author details, and timestamps. 350+ posts per minute.

πŸ” What does Facebook Posts Scraper do?

This scraper collects all publicly visible posts from any Facebook page or personal profile. Paste one or more page URLs and get structured, export-ready data β€” JSON, CSV, or Excel.

Use it for πŸ“Š social media analytics, πŸ•΅οΈ competitor monitoring, πŸ“ˆ content performance tracking, 🧠 sentiment analysis, πŸ“ content calendar research, 🎯 audience insights, πŸ‘‚ social listening, and πŸ“š academic research.

πŸ“¦ What data can you extract?

For every post, the scraper returns:

FieldDescription
postTextπŸ“ Full post text / caption
postUrlπŸ”— Direct permalink to the post
postIdπŸ†” Unique Facebook post ID
timestampπŸ• Unix timestamp (milliseconds) when published
reactionsCount❀️ Total reactions (like, love, wow, haha, sad, angry)
commentsCountπŸ’¬ Number of comments on the post
sharesCountπŸ”„ Number of times the post was shared
authorNameπŸ‘€ Page or profile name that published the post
authorIdπŸ†” Facebook user/page ID of the author
authorProfilePicπŸ–ΌοΈ Author's profile picture URL
pageUrl🌐 URL of the page being scraped

πŸš€ How to scrape Facebook page posts

  1. πŸ”— Go to any Facebook page (brand, news, celebrity, public figure)
  2. πŸ“‹ Copy the page URL from your browser
  3. πŸ“ Paste the URL(s) into the scraper input
  4. πŸ”’ Set the limit β€” how many posts and how far back in time
  5. ▢️ Run the scraper and download your data in seconds

🌐 Supported URL formats

  • πŸ“„ Pages: https://www.facebook.com/PageName
  • πŸ‘€ Profiles: https://www.facebook.com/profile.php?id=123456789
  • 🏒 Business pages: https://www.facebook.com/business-name
  • πŸ“° News pages: https://www.facebook.com/cnn

βš™οΈ Input parameters

ParameterTypeDescription
pageUrlsArray of stringsπŸ”— List of Facebook page or profile URLs to scrape
maxPostsPerPageIntegerπŸ”’ Maximum posts per page (default: 500, max: 10,000)
daysBackIntegerπŸ“… How far back to scrape (default: 365 days, max: 3,650 = 10 years)

πŸ“₯ Example input

{
"pageUrls": [
"https://www.facebook.com/Meta",
"https://www.facebook.com/cnn"
],
"maxPostsPerPage": 1000,
"daysBack": 365
}

πŸ“€ Example output

{
"pageUrl": "https://www.facebook.com/Meta",
"postId": "1075637535125456",
"postUrl": "https://www.facebook.com/Meta/posts/1075637535125456",
"postText": "Exciting updates coming to our platform! Here's what's new this week πŸš€",
"timestamp": 1783701511000,
"reactionsCount": 12500,
"commentsCount": 843,
"sharesCount": 1205,
"authorName": "Meta",
"authorId": "100080376596424",
"authorProfilePic": "https://scontent.xx.fbcdn.net/v/..."
}

πŸ’° How much does it cost to scrape Facebook posts?

The scraper uses Apify's pay-per-result pricing. You only pay for the posts you actually get β€” zero waste.

  • πŸ†“ Free tier: 10 posts per run β€” test before you buy, no credit card needed
  • ⚑ Speed: 350+ posts per minute on high-volume pages
  • πŸͺΆ Memory: Runs on just 256 MB β€” minimal compute cost
  • πŸ“… Depth: Scrape up to 10 years of post history in a single run

Check the Pricing tab above for current per-result rates.

πŸ† Why choose this Facebook Posts Scraper?

⚑ Fastest on the platform

Proprietary speed engine delivers 350+ posts/min on active pages and 200+ posts/min even on slow pages. Automatically optimizes for each page's activity level.

πŸ“… Full history extraction

Scrape up to 10 years of post history. No slowdown at depth β€” post #5,000 loads just as fast as post #1.

πŸ”„ Multi-page batch scraping

Pass multiple page URLs in a single run. Pages are processed back-to-back with zero downtime between them.

πŸ›‘οΈ Enterprise reliability

Built-in health monitoring with automatic failover. If something goes wrong mid-run, the scraper self-heals and continues β€” no false stops, no missed data.

πŸ’‘ Use cases

πŸ“Š Social media analytics & reporting

Track posting frequency, engagement rates, and content performance over time. Export months of posts to build dashboards in Google Data Studio, Tableau, or Power BI.

πŸ•΅οΈ Competitor monitoring

Monitor what competitors post, how often, and what gets the most engagement. Identify their top-performing content themes and posting schedules.

πŸ“ˆ Content strategy & calendar planning

Analyze a page's historical posting patterns β€” what type of content drives reactions, comments, and shares. Use the data to plan your own content calendar.

🧠 Sentiment analysis & NLP

Feed structured post data (text + engagement metrics + timestamps) into your NLP pipeline. Track how sentiment evolves across thousands of posts over months or years.

πŸ“° Media monitoring & PR

Track news organizations, government pages, and public figures. Get alerts when specific pages post about your brand or industry.

πŸ‘‚ Social listening at scale

Monitor dozens of Facebook pages simultaneously. Schedule recurring runs to build a time-series dataset of public Facebook activity.

πŸŽ“ Academic & market research

Collect public post data for research. Export as CSV for analysis in Python, R, SPSS, or Excel. Timestamp precision enables time-series analysis.

🎯 Lead generation & audience research

Identify brands, influencers, and organizations in your niche. Analyze their post engagement to find the most active audiences and communities.

πŸ”Œ Integrations

Connect Facebook Posts Scraper to your workflow:

  • πŸ“Š Google Sheets β€” auto-export posts to a spreadsheet
  • πŸ’¬ Slack / Discord β€” get notified when scraping completes
  • ⚑ Zapier / Make β€” trigger downstream workflows
  • πŸͺ Webhooks β€” POST results to your own API endpoint
  • ☁️ Amazon S3 / Google Cloud β€” store datasets in cloud storage

Use the Apify API or any of the official Apify client libraries (JavaScript, Python) to integrate programmatically.

πŸ€– MCP server integration (AI agents & LLMs)

This actor works as a tool for AI agents via the Apify MCP server. Connect it to Claude, ChatGPT, Cursor, Windsurf, or any MCP-compatible AI assistant to let your agent scrape Facebook posts autonomously.

🟣 Use with Claude Desktop / Claude Code

Add the Apify MCP server to your Claude config:

{
"mcpServers": {
"apify": {
"command": "npx",
"args": ["-y", "@anthropic-ai/apify-mcp-server"],
"env": {
"APIFY_API_TOKEN": "YOUR_APIFY_TOKEN"
}
}
}
}

Then ask Claude: "Scrape the last 500 posts from facebook.com/cnn and summarize the top themes"

🟒 Use with OpenAI / GPT agents

Apify actors are available as OpenAI tools via the Apify platform. See Apify + OpenAI integration docs.

🦜 Use with LangChain / LlamaIndex

from langchain_community.utilities import ApifyWrapper
apify = ApifyWrapper()
loader = apify.call_actor(
actor_id="YOUR_ACTOR_ID",
run_input={
"pageUrls": ["https://www.facebook.com/cnn"],
"maxPostsPerPage": 500,
},
dataset_mapping_function=lambda item: f"{item['postText']} (Reactions: {item['reactionsCount']})",
)

🧩 Why use this with AI agents?

  • πŸ”¬ Research automation: Agent scrapes years of page history β†’ analyzes trends β†’ generates report
  • πŸ“š RAG pipelines: Feed real-time Facebook post data into retrieval-augmented generation
  • πŸ“Š Analytics workflows: Agent collects posts β†’ computes engagement metrics β†’ builds dashboard
  • πŸ•΅οΈ Competitive intel: Agent monitors competitor pages daily and summarizes posting patterns
  • 🎯 Content ideation: Agent analyzes top-performing posts across competitors β†’ suggests content ideas

πŸ”§ API access

Call the scraper programmatically using the Apify API:

Python

from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("YOUR_ACTOR_ID").call(run_input={
"pageUrls": ["https://www.facebook.com/Meta"],
"maxPostsPerPage": 500,
"daysBack": 365,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(f"{item['authorName']}: {item['postText'][:80]}... ({item['reactionsCount']} reactions)")

JavaScript / TypeScript

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('YOUR_ACTOR_ID').call({
pageUrls: ['https://www.facebook.com/Meta'],
maxPostsPerPage: 500,
daysBack: 365,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach(item => console.log(`${item.authorName}: ${item.postText?.slice(0, 80)}`));

cURL

curl "https://api.apify.com/v2/acts/YOUR_ACTOR_ID/runs?token=YOUR_TOKEN" \
-X POST -H "Content-Type: application/json" \
-d '{"pageUrls":["https://www.facebook.com/Meta"],"maxPostsPerPage":500}'

❓ FAQ

πŸ” Does this scraper need my Facebook login?

No. The scraper works without your Facebook credentials. It accesses only publicly available data.

πŸ”’ How many posts can I scrape?

Up to 10,000 posts per page and up to 10 years of history. Most pages have between 500–5,000 posts.

⚑ How fast is it?

350+ posts per minute on high-volume pages (news, media, brands). Smaller pages that post less frequently run at 150–250 posts per minute.

πŸ“„ Can I scrape multiple pages in one run?

Yes. Pass as many page URLs as you need. They're processed sequentially with full speed optimization per page.

πŸ”’ Can I scrape private profiles or groups?

No. Only publicly visible page and profile posts are accessible.

πŸ“± What types of posts are extracted?

Text posts, photo posts, video posts, link shares, live videos, reels, and shared posts from public pages and profiles.

πŸ“… How far back can I scrape?

Up to 10 years of post history (3,650 days). The scraper maintains full speed regardless of depth β€” post #5,000 loads as fast as post #1.

πŸ” Can I filter posts by keyword or date?

The scraper collects all posts within your daysBack range. Use the exported data to filter by keyword, date, engagement threshold, or any field in your analysis tool.

πŸ”„ Does it handle Facebook pages that post very frequently?

Yes. The engine automatically detects high-frequency pages and optimizes for maximum throughput. News pages posting 50+ times per day run at full speed.

πŸ“‰ What about pages that post rarely?

Yes. The engine adapts to low-frequency pages too. A page posting once a week is scraped just as efficiently as one posting hourly β€” no wasted time on inactive periods.

This scraper only accesses publicly visible data. Always review Facebook's Terms of Service and applicable data protection regulations (GDPR, CCPA) before using scraped data commercially.