Facebook Posts API call Facebook Posts Search Scraper from your code
Looking for a Facebook Posts API? EasyAPI’s Facebook Posts Search Scraper runs on Apify: call it like an API, land structured datasets, and pay per result.
- 1,457users
- 92.2%30-day success
- 4.33 ★rating
curl -X POST \
"https://api.apify.com/v2/acts/easyapi~facebook-posts-search-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchQuery":"football","maxPosts":10}' from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("easyapi/facebook-posts-search-scraper").call(run_input={
"searchQuery": "football",
"maxPosts": 10,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item) import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('easyapi/facebook-posts-search-scraper').call({
"searchQuery": "football",
"maxPosts": 10
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items); Who calls this API
- Developers who want Actor API / webhook access instead of maintaining scrapers
- Data teams that need JSON/CSV exports on a schedule
- Product and research folks validating a source before building in-house
Why use Facebook Posts Search Scraper as your API
- Focused on public posts by keyword with text, links and engagement
- Apify Actor API, schedules and dataset exports out of the box
- Pay-per-result pricing with a live rate on the Actor page
- One integration pattern (Apify API) works for every EasyAPI tool
- From $2.99 / 1k on this landing (as of Oct 2026)
- 92.2% successful Apify runs in the last 30 days
- 1,457 Apify users have run this Actor
What to look for in an API-style option
Prefer an official API when the source offers one that fits. Otherwise look for a maintained scraper with a clear schema, exports and pricing.
- An official or well-documented API when the source offers one
- If not: a maintained Apify Actor with clear input/output schema
- Export formats (JSON/CSV) and webhook/API hooks for automation
- Transparent usage pricing and run logs
Facebook Posts Search Scraper at a glance
Keyword search → post rows
Collect Facebook search posts with content, engagement signals and author fields for social listening and research dumps.
Engagement-aware shortlists
Sort and filter posts by likes/comments signals so GTM and research teams prioritize what is actually moving.
Then go deeper in the FB toolkit
Need groups, comments or hashtags? Switch to Facebook Groups Search, Comments or Hashtag scrapers with the same Apify export pattern.
Input fields
searchQuerystringThe search query to find Facebook posts. Choose either this or Search URL.
searchUrlstringComplete Facebook search results page URL. Choose either this or Search Query.
maxPostsintegerThe maximum number of posts to scrape from the search results. The actor will stop when this limit is reached.
postTimeRangestringFilter posts by time range
{
"searchQuery": "football",
"maxPosts": 10
} {
"id": "123",
"text": "Example post\u2026",
"author": "example",
"url": "https://\u2026",
"likes": 120
} Straight answers
Is this an official Facebook Posts API?
No — it is EasyAPI’s Apify Actor that scrapes public pages into structured data. If the platform offers an official API, prefer that for production compliance needs.
How do I call it like an API?
Run the Actor via the Apify API or console, then fetch the dataset. You can schedule runs and push results with webhooks.
Where is the tool landing?
See Facebook Posts Search Scraper on easyapi.tools and the live Actor on Apify for schema and pricing.
What does Facebook Posts Search return?
Post-level rows: text, author, URL and engagement signals when available. Verify live fields on the Apify dataset schema.
Posts vs Groups vs Comments — which Actor?
Posts Search finds posts matching a query. Groups Search discovers public groups. Comments scrapes comment threads on posts. Start with Posts for listening; Groups for community maps; Comments for thread-level analysis.
Related tools
- Social $2.99 / 1k
Facebook Groups Search Scraper
Discover public Facebook groups by keyword with name, URL, member count and posting activity for community research.
- Social $2.99 / 1k
Facebook Post Comments Scraper
Export comments from public Facebook posts with text, authors and timestamps for sentiment and community analysis.
- Social $2.99 / 1k
Facebook Hashtag Search Scraper
Collect public Facebook posts for any hashtag with text, links and engagement to track campaigns and topics.
Start calling Facebook Posts Search Scraper
Run a small test on Apify’s free credits and compare the output with whatever you use today.