Facebook Posts Search Scraper avatar

Facebook Posts Search Scraper

Under maintenance

Pricing

from $5.99 / 1,000 results

Go to Apify Store
Facebook Posts Search Scraper

Facebook Posts Search Scraper

Under maintenance

πŸ”Ž Facebook Posts Search Scraper extracts public Facebook posts by keywords or hashtagsβ€”capturing text, author, date, URL, reactions, shares, comments & media. πŸ“Š Ideal for social listening, brand monitoring, trend analysis & market research. ⚑ Fast, reliable CSV/JSON export.

Pricing

from $5.99 / 1,000 results

Rating

0.0

(0)

Developer

Scrapier

Scrapier

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

1

Monthly active users

6 days ago

Last modified

Share

Facebook Posts Search Scraper

The Facebook Posts Search Scraper is a fast, reliable Facebook posts extractor that discovers and collects public posts by keywords or hashtags. It solves the manual work of sifting through Facebook search results by automating discovery and extraction of post text, author/page metadata, and engagement stats. Built for marketers, developers, data analysts, and researchers, this Facebook post search scraper helps you scrape Facebook posts by keyword at scale and export clean data for analysis.

What data / output can you get?

Use this Facebook posts search tool to extract structured fields from public posts discovered via search. Results are stored in an Apify dataset for easy export to JSON or CSV.

Data fieldDescriptionExample value
facebookUrlPage or profile URL associated with the posthttps://www.facebook.com/FCBarcelona
pageIdNumeric ID of the page/profile (if detected)"6592350000"
pageNamePage/profile name (if detected)"FC Barcelona"
postIdPost/reel/video identifier"123456789012345"
urlCanonical permalink to the post (if available)"https://www.facebook.com/FCBarcelona/posts/123456789012345"
timeHuman-readable timestamp derived from Unix time"2024-04-25 14:32:10"
timestampUnix timestamp (seconds)1714055530
likesReaction count parsed from page JSON15234
commentsComment count parsed from page JSON1287
sharesShare count parsed from page JSON (0 if missing)543
textPost text content (truncated to ~5,000 chars)"Matchday photos and highlights from Camp Nou..."
searchQueryThe keyword that discovered this post"football"

Bonus fields in the dataset include:

  • facebookId (often equals pageId when available)
  • postFacebookId (alias of postId)
  • topLevelUrl (original URL visited)
  • link (alias of url)
  • thumb (image/thumbnail URL when detected)

Exports: Download results from the Apify dataset as JSON or CSV.

Key features

  • πŸ” Powerful keyword-based discovery
    • Search-driven Facebook posts crawler that finds public posts by topic or hashtag and parses post pages for structured data.
  • πŸ“ˆ Batch scraping & bulk automation
    • Provide multiple searchQueries to process in one run. The actor handles concurrent searches and collects up to your maxPosts per query.
  • ⏱️ Flexible time filtering
    • Filter results by recency with postTimeRange options: 24h, 7d, 30d, 90d (or all time by default).
  • πŸ” Resilient fetching with retries
    • Robust HTTP fetching with 3 retries and backoff to reduce transient failures and improve stability.
  • 🌐 Proxy support
    • Works great out of the box with Apify Proxy (prefilled). Dedicated proxy is used for search discovery to improve reliability.
  • πŸ’Ύ Clean, structured outputs
    • Consistent fields for page info, post IDs, timestamps, engagement metrics, and text content. Easy CSV/JSON export from the Apify dataset.
  • 🐍 Built on Python + Apify
    • A developer-friendly Facebook posts extractor built with aiohttp and Apify SDK for predictable, production-ready runs.

How to use Facebook Posts Search Scraper - step by step

  1. Sign in to Apify and open the Apify Console.
  2. Go to Actors and select β€œfacebook-posts-search-scraper”.
  3. Add your input:
    • searchQueries: a list of keywords/hashtags (e.g., ["football", "cricket"]).
    • maxPosts: how many posts to collect per keyword (1–5000).
    • postTimeRange: "", "24h", "7d", "30d", or "90d".
    • proxyConfiguration: leave as prefilled (Apify Proxy) or customize.
  4. Click Start to run the actor.
  5. During the run, the tool discovers Facebook search results for each query and extracts post pages.
  6. When finished, go to the OUTPUT tab to view your dataset.
  7. Export your results as JSON or CSV for analysis.

Pro tip: Use multiple specific searchQueries (including branded terms or topic phrases) to improve match quality for your Facebook search results scraper workflow.

Use cases

Use caseDescription
Social listening & trend trackingMonitor public conversations and engagement around topics by using this Facebook public posts scraper for ongoing keyword tracking.
Brand monitoringCollect public posts that mention your brand or products to analyze sentiment and engagement.
Content researchDiscover posts with high reactions/comments to inspire content ideas using a Facebook post history scraper approach.
Market & competitor researchTrack competitor pages/posts and engagement metrics via a Facebook page posts scraper workflow.
Hashtag analysisExplore public posts around industry or campaign hashtags with a Facebook hashtag posts scraper.
Academic & policy researchBuild datasets of public discourse for analysis using a Facebook posts data scraper that exports structured JSON/CSV.
Automation pipelinesFeed clean post data into analytics or dashboards as part of a Facebook posts crawler pipeline.

Why choose Facebook Posts Search Scraper?

A precise, automation-ready Facebook posts extractor focused on reliability and clean output.

  • 🎯 Accuracy-first parsing: Extracts IDs, timestamps, engagement counts, and text from post page HTML/embedded JSON.
  • ⚑ Scales by query: Handle multiple keywords in one run and set maxPosts up to 5,000 per query for bulk discovery.
  • πŸ” Built-in resilience: Timeouts and 3-retry logic reduce flaky failures common with social platforms.
  • 🌐 Smart proxy usage: Uses Apify Proxy for discovery and supports custom proxy configuration for post fetches.
  • 🧩 Structured outputs: Consistent fields for easy downstream analysis and CSV/JSON exports.
  • πŸ›‘οΈ Public-only focus: Designed for public content; no login or private data access.
  • πŸ—οΈ Production-ready: Python + Apify infrastructure for dependable scraping beyond browser extensions or unstable scripts.

Yesβ€”when used responsibly. This tool targets publicly available Facebook content and does not access private or authenticated data.

Guidelines for compliant use:

  • Only collect and use publicly available information.
  • Do not scrape private profiles or content behind authentication.
  • Follow Facebook’s terms and applicable data protection regulations.
  • Consult your legal counsel for edge cases or regulated use.

Input parameters & output format

Example JSON input

{
"searchQueries": ["football", "cricket"],
"maxPosts": 50,
"postTimeRange": "7d",
"proxyConfiguration": { "useApifyProxy": true }
}

Input fields

  • searchQueries (array)
    • Description: Enter topics/keywords to explore. Each keyword runs as a separate search.
    • Default: [""]
    • Required: No
  • maxPosts (integer)
    • Description: How many posts to collect per keyword. Range: 1 β†’ 5,000. Default: 50.
    • Default: 50
    • Required: No
  • postTimeRange (string)
    • Description: Filter by recency. Allowed values: "", "24h", "7d", "30d", "90d" ("" = all time).
    • Default: ""
    • Required: No
  • proxyConfiguration (object)
    • Description: Proxy configuration. Works great out of the boxβ€”Apify Proxy enabled by default (prefill).
    • Default: (prefill) { "useApifyProxy": true }
    • Required: No

Example JSON output

{
"facebookUrl": "https://www.facebook.com/FCBarcelona",
"pageId": "6592350000",
"pageName": "FC Barcelona",
"facebookId": "6592350000",
"postId": "123456789012345",
"postFacebookId": "123456789012345",
"url": "https://www.facebook.com/FCBarcelona/posts/123456789012345",
"topLevelUrl": "https://www.facebook.com/FCBarcelona/posts/123456789012345",
"time": "2024-04-25 14:32:10",
"timestamp": 1714055530,
"likes": 15234,
"comments": 1287,
"shares": 543,
"text": "Matchday photos and highlights from Camp Nou...",
"link": "https://www.facebook.com/FCBarcelona/posts/123456789012345",
"thumb": "https://scontent.xx.fbcdn.net/v/t1.6435-9/...",
"searchQuery": "football"
}

Notes:

  • Some fields may be null if not present on the page (e.g., pageName, pageId, thumb).
  • shares defaults to 0 when not explicitly found.
  • link mirrors url when the canonical permalink is detected.

FAQ

Do I need to log in to Facebook?

βœ… No. The scraper targets publicly available posts and does not require login or cookies. It collects public content only.

Can it scrape by keyword or hashtag?

βœ… Yes. Provide topics or hashtags in searchQueries to discover public posts that match your queries using this Facebook post scraper and Facebook hashtag posts scraper approach.

What engagement data does it collect?

βœ… It captures reaction counts (likes), comments count, and shares count from public post pages. Comment text is not collectedβ€”only counts.

How many posts can I scrape per keyword?

πŸ“ˆ You can set maxPosts from 1 up to 5,000 per query. The actor processes multiple searchQueries in one run for bulk coverage.

Does it filter by time range?

βœ… Yes. Use postTimeRange with "", "24h", "7d", "30d", or "90d" to filter posts by recency ("" = all time).

What formats can I export to?

πŸ’Ύ Results are stored in an Apify dataset. You can download your data as JSON or CSV from the OUTPUT tab.

How does proxying work?

🌐 The actor works well with Apify Proxy (prefilled). It also uses a dedicated proxy for search discovery. You can customize proxyConfiguration if needed.

What kinds of Facebook posts are supported?

🧭 The tool discovers and processes public Facebook content found through search (e.g., page posts, videos, reels). Extraction is based on the post page HTML/embedded JSON.

Closing CTA / Final thoughts

The Facebook Posts Search Scraper is built to automate discovery and extraction of public Facebook posts at scale. It delivers clean post IDs, timestamps, engagement metrics, and text so marketers, analysts, researchers, and developers can act on insights faster.

Set your keywords, choose a time range, and export structured results to JSON or CSV. Developers can integrate the Apify dataset output into pipelines or analytics stacks with ease. Start extracting smarter with a reliable, search-driven Facebook posts crawler today.

What are other Facebook scraping tools?

If you want to scrape specific Facebook data, you can use any of the dedicated scrapers below for faster and more targeted results.

Scraper NameScraper Name
Facebook Ads Library ScraperFacebook Page Email Scraper
Facebook B2b Email ScraperFacebook Page Lead Scraper
Facebook B2b Lead ScraperFacebook Page Phone Number Scraper
Facebook B2b Phone Number ScraperFacebook Page Posts Scraper
Facebook Comments ScraperFacebook Page Scraper
Facebook Email ScraperFacebook Pages Scraper
Facebook Event Search ScraperFacebook Phone Number Scraper
Facebook Events ScraperFacebook Photos Scraper
Facebook Followers Following ScraperFacebook Posts Scraper
Facebook Followers ScraperFacebook Profile Email Scraper
Facebook Group Member ScraperFacebook Profile Lead Scraper
Facebook Group Post ScraperFacebook Profile Phone Number Scraper
Facebook Group Posts And Details ScraperFacebook Reels Scraper
Facebook Group Profile ScraperFacebook Reviews Scraper
Facebook Groups Posts ScraperFacebook Search Scraper
Facebook Groups ScraperFacebook Url To Id Scraper
Facebook Groups Search ScraperFacebook User Search Scraper
Facebook Lead ScraperFacebook Video Search Scraper
Facebook Likes Reactions ScraperFacebook Video Transcript Extractor
Facebook Marketplace ScraperFacebook Videos Scraper