Facebook Posts Search Scraper
Under maintenancePricing
from $5.99 / 1,000 results
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
Maintained by CommunityActor stats
0
Bookmarked
4
Total users
1
Monthly active users
6 days ago
Last modified
Categories
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 field | Description | Example value |
|---|---|---|
| facebookUrl | Page or profile URL associated with the post | https://www.facebook.com/FCBarcelona |
| pageId | Numeric ID of the page/profile (if detected) | "6592350000" |
| pageName | Page/profile name (if detected) | "FC Barcelona" |
| postId | Post/reel/video identifier | "123456789012345" |
| url | Canonical permalink to the post (if available) | "https://www.facebook.com/FCBarcelona/posts/123456789012345" |
| time | Human-readable timestamp derived from Unix time | "2024-04-25 14:32:10" |
| timestamp | Unix timestamp (seconds) | 1714055530 |
| likes | Reaction count parsed from page JSON | 15234 |
| comments | Comment count parsed from page JSON | 1287 |
| shares | Share count parsed from page JSON (0 if missing) | 543 |
| text | Post text content (truncated to ~5,000 chars) | "Matchday photos and highlights from Camp Nou..." |
| searchQuery | The 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
- Sign in to Apify and open the Apify Console.
- Go to Actors and select βfacebook-posts-search-scraperβ.
- 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.
- Click Start to run the actor.
- During the run, the tool discovers Facebook search results for each query and extracts post pages.
- When finished, go to the OUTPUT tab to view your dataset.
- 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 case | Description |
|---|---|
| Social listening & trend tracking | Monitor public conversations and engagement around topics by using this Facebook public posts scraper for ongoing keyword tracking. |
| Brand monitoring | Collect public posts that mention your brand or products to analyze sentiment and engagement. |
| Content research | Discover posts with high reactions/comments to inspire content ideas using a Facebook post history scraper approach. |
| Market & competitor research | Track competitor pages/posts and engagement metrics via a Facebook page posts scraper workflow. |
| Hashtag analysis | Explore public posts around industry or campaign hashtags with a Facebook hashtag posts scraper. |
| Academic & policy research | Build datasets of public discourse for analysis using a Facebook posts data scraper that exports structured JSON/CSV. |
| Automation pipelines | Feed 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.
Is it legal / ethical to use Facebook Posts Search Scraper?
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.