# Facebook Search Scraper - Posts, People, Pages, Groups (`pomlabs/facebook-search-scraper`) Actor

Search Facebook without login: recent posts by keyword, people by name in a city, pages, places, posts of public groups, who a profile follows, pages of a city with their latest posts, groups by keyword and group members. From $1 per 1,000 results.

- **URL**: https://apify.com/pomlabs/facebook-search-scraper.md
- **Developed by:** [Pom Labs](https://apify.com/pomlabs) (community)
- **Categories:** Social media, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 post delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Facebook Search Scraper - Posts, Groups, Comments, Listings

Search **Facebook without login, cookies or an account**: posts by keyword (newest or top, by date range and tagged place), the **posts of public groups** with the **group details**, **every comment and reply**, **buy-and-sell listings** with price and location, **people by name in a city**, **pages and places with their contacts**, **events**, **videos and reels**, **post links**, **who a profile follows**, **groups** and **members**. Every post can come with the **e-mails and phones** found in it, your own **AI labels** and **25 filters**.

### Why this one

- **No login, no cookies:** nothing to set up and no account at risk.
- **All comments and replies:** the first-level comments of each post and the replies to them (two levels), in Facebook's order, newest or oldest first, with author, text, reactions, date, stickers and GIFs. Filters by reactions, date and keyword.
- **Public groups, fully:** the newest posts of any public group with a date range, and the group's About page once per group: **exact member count**, posts in the last day and month, creation date, privacy, description, **rules**, **admins** and name history.
- **Buy-and-sell listings:** posts that are items for sale come with price, currency, sold flag, seller and inventory type; with **listing location** on, also the city, state, **coordinates**, condition, category, delivery and listing date from the Marketplace page. Filter by status and price.
- **Leads in the text:** e-mails and phones (WhatsApp button included) and links written in each post; keep only posts with a contact.
- **AI labels:** write labels in plain English ("offers a property for sale", "asks for a recommendation") and each post gets the ones that apply, with a score from 0 to 1. Keep only the matches if you want.
- **25 filters** before you pay for a post: keywords (any or all), excluded words, authors to keep or drop, author name, post types (text, photo, album, video, link, shared, event), minimum reactions, comments, shares and engagement, only questions, skip Facebook's AI-generated label, only with media, skip without text, skip duplicates, only listings, price range.
- **Only new posts (monitor):** schedule the run and get only the posts never delivered to you under that memory key.
- **Rich post fields:** engagement score and per hour, age in hours, word count, post type, each reaction (like, love, care, haha, wow, sad, angry), images and how many more the album has, video count and views, reel flag, link domain, title and description, tagged users and place, hashtags, mentions, Facebook's question and AI-generated labels, and money, bedrooms and area read from the text (textFacts).
- **People by name in a city:** any of the 5,570 Brazilian cities by name, or the Facebook city id of any city. Each profile comes with "Lives in" and "Works at" when shown.
- **Pages and places with contacts:** with page details on, the address, phone, e-mail, website, rating and category from each page's About tab.
- **Date range that reaches older posts:** in posts mode the date range also goes to Facebook as its own date filter, so you can read posts from last year, not only the newest 100.
- **Also takes the inputs of other Facebook search actors:** `query`, `searchQuery`, `searchQueries`, `searchTerms`, `categories`, `startUrls`, `groupIds`, `postUrls`, `searchType`, `resultsCount`, `resultsLimit`, `maxItems`, `maxItemsPerQuery`, `onlyPostsNewerThan`, `postedAfter`, `locationUid` and more work as they are.

### Input

| Field | What it does |
|---|---|
| `mode` | `posts`, `top`, `people`, `pages`, `places`, `events`, `videos`, `group_posts`, `post_urls`, `following`, `city_pages`, `groups` or `members`. Empty: posts, or group posts / post links when you give those |
| `queries` | Keywords, a city name, group links or ids, post links or a profile link, depending on the mode. Up to 20 |
| `maxResults` | Results per query (default 20) |
| `recentPosts` | Posts: newest first (default on) |
| `startDate`, `endDate` | Only posts in this range (`2026-11-01` or `7 days`) |
| `location` | Posts: Facebook's place filter (a Brazilian city name or a place id) |
| `city` | People: a Brazilian city by name or a Facebook city id |
| `onlyReels` | Videos: only reels |
| `includeComments`, `maxCommentsPerPost`, `commentsSortOrder`, `includeReplies`, `maxRepliesPerComment` | Comments and replies inside each post |
| `minCommentReactions`, `onlyCommentsNewerThan`, `commentKeywords` | Comment filters |
| `includeGroupDetails` | The group's About page once per group |
| `extractContacts`, `onlyWithContact` | E-mails and phones found in posts |
| `aiLabels`, `onlyAiLabelMatches` | Your AI labels |
| `onlyListings`, `listingStatus`, `minPrice`, `maxPrice`, `includeListingLocation` | Buy-and-sell listings |
| `enrichPageDetails` | Pages and places: contacts from the About tab |
| `keywords`, `keywordsMode`, `excludeKeywords`, `excludeAuthors`, `onlyAuthors`, `authorNameContains`, `postTypes`, `minReactions`, `minComments`, `minShares`, `minEngagementScore`, `onlyQuestions`, `excludeAiGenerated`, `excludeAnonymous`, `onlyWithMedia`, `skipPostsWithoutText`, `skipDuplicatePosts`, `duplicateScope` | Post filters |
| `onlyNew`, `stateKey`, `resetState` | Monitor: only posts never delivered to you |
| `maxRequestsPerMinute` | Read slower than our own pace |

### Output

A group post with comments, group details and an AI label:

```json
{
  "type": "post",
  "postId": "1897079874619439",
  "url": "https://www.facebook.com/groups/1114308329563268/posts/1897079874619439/",
  "text": "TU QUINTA SOÑADA EN ATENAS! ...",
  "publishedAt": "2026-11-26T21:18:51Z",
  "ageHours": 0.6,
  "authorName": "Carolina M Jimenez",
  "reactionsCount": 0,
  "commentsCount": 0,
  "postType": "photo",
  "engagementScore": 0,
  "textFacts": { "price": 63000000, "currency": "CRC", "squareMeters": 5063 },
  "aiLabelMatches": [{ "label": "offers a property for sale", "score": 1.0 }],
  "groupDetails": {
    "memberCount": 73664,
    "postsLastDay": 20,
    "postsLastMonth": 486,
    "createdAt": "2024-01-02T01:02:02Z",
    "privacy": "Public",
    "rules": [{ "text": "Property MUST BE UNDER $100,000" }],
    "admins": [{ "id": "1321196418", "name": "Wendy" }]
  },
  "status": "ok"
}
```

A listing with its location:

```json
{
  "type": "post",
  "text": "Vendo iPhone 13 ...",
  "listing": {
    "id": "3224257354426836",
    "title": "Vendo iPhone 13",
    "price": "MX$5,099",
    "amount": 5099,
    "currency": "MXN",
    "isSold": false,
    "location": { "city": "Puebla", "state": "Pue", "latitude": 19.3497, "longitude": -98.1683, "radiusKm": 64 },
    "condition": "Used - like new",
    "category": "Mobile phones",
    "deliveryTypes": ["IN_PERSON"],
    "seller": { "id": "100006947592128", "name": "Juan Reyes" }
  }
}
```

A comment inside `comments`: `commentId`, `commentUrl`, `text`, `date`, `profileName`, `profileUrl`, `likesCount`, `repliesCount`, `threadingDepth` and its `replies`.

Other rows: `profile`, `page`, `place`, `event`, `video`, `following`, `group` and `member`. Queries that fail (private group, bad link, Facebook refusing) come as a row with `type: "error"` and the reason, and are not charged.

### Use cases

- **Social listening:** what people post right now about a brand, a product or a topic, with every comment.
- **Real estate and marketplace monitoring:** new listings in buy-and-sell groups, with price, location and the seller's phone.
- **Lead generation:** posts that ask for a service, with the author's contact, classified by your AI labels.
- **Community research:** the activity, rules and admins of the groups in your niche.
- **Local research:** people and businesses of a city, events and what local pages are posting.

### Pricing

- **$1.00 per 1,000** posts, profiles, pages, places, events, videos and followed accounts (less on higher Apify plans).
- **$0.50 per 1,000** posts of a group.
- **$2.00 per 1,000** groups found by keyword and group members.
- **$0.20 per 1,000** comments and replies.
- **$0.10 per 1,000** posts checked by your filters or the monitor (only when one is on).
- **$0.40 per 1,000** AI labels judged.
- **$1.00 per 1,000** group details (once per group).
- **$0.60 per 1,000** listing locations.
- **$5.00 per 1,000** posts with a contact found.
- Page details and the analysis fields are free. No start fee.

### FAQ

**How many posts does a keyword give?** Facebook ends a keyword search near 100 posts; split by date range for more. Group feeds go further back.

**Does the group sort (top, recent activity) work?** Without login Facebook gives group posts newest first whatever the sort, so the actor accepts the option and reads newest first.

**Can I get every photo of an album?** Without login Facebook shows the first 5 photos of an album; `imagesCount` and `additionalMediaCount` say how many the album has.

**Does it show which groups a person is in?** No: without login Facebook does not show it. "Following" is what it shows.

# Actor input Schema

## `mode` (type: `string`):

What to search. Empty: posts, or group_posts when you give group links or groupIds, post_urls for post links. Also accepted: searchType (top, latest, posts, people, profiles, pages, places, events, videos, reels).

## `queries` (type: `array`):

One per line: keywords (posts, people, pages, places, groups), a city name (city_pages), a group link or id (group_posts, members) or a profile link, username or id (following). Up to 20. Also accepted as query, searchQuery, searchQueries, searchTerms, categories, startUrls, groupIds or postUrls.

## `maxResults` (type: `integer`):

How many results for each query. Facebook ends a keyword search near 100 posts. Also resultsCount, resultsLimit, maxItems, maxItemsPerQuery.

## `recentPosts` (type: `boolean`):

For posts: newest first (Facebook's 'Recent posts' filter). Off: Facebook's top posts.

## `startDate` (type: `string`):

For posts, group_posts and city_pages: only posts after this date. 2026-11-01, 2026-11-01T10:00:00Z, or relative: 7 days, 2 weeks, 1 month.

## `endDate` (type: `string`):

For posts, group_posts and city_pages: only posts before this date (same formats).

## `city` (type: `string`):

For people: only profiles that live in this city. Any of the 5,570 Brazilian cities by name (Campinas, or Campinas, SP when the name repeats in other states), or the Facebook city id of any city in the world (the number in facebook.com/pages/<City>/<id>, e.g. 105534776146145 for Nova Iguaçu).

## `postsPerPage` (type: `integer`):

For city_pages: latest posts of each place or page found (1 to 20).

## `location` (type: `string`):

Posts search: only posts pinned to this place (a Brazilian city name or a Facebook place id). People: same as city.

## `onlyReels` (type: `boolean`):

Videos mode: keep only reels.

## `includeComments` (type: `boolean`):

Every first-level comment of each post (charged per comment).

## `maxCommentsPerPost` (type: `integer`):

Default 100.

## `commentsSortOrder` (type: `string`):

ranked = Facebook's order; oldest = oldest first; relevant = Facebook's shortlist; newest = newest first.

## `includeReplies` (type: `boolean`):

The replies under each comment and the replies to those (needs All comments).

## `maxRepliesPerComment` (type: `integer`):

Default 20.

## `minCommentReactions` (type: `integer`):

Only comments with at least this many reactions.

## `onlyCommentsNewerThan` (type: `string`):

2026-11-01 or 7 days.

## `commentKeywords` (type: `array`):

Only comments with one of these words (whole words, case and accents ignored).

## `includeGroupDetails` (type: `boolean`):

The group's About page once per group: exact members, posts per day and month, creation date, privacy, description, rules, admins, history (charged per group).

## `extractContacts` (type: `boolean`):

E-mails and phones in the text and in the WhatsApp button (charged per post with a contact).

## `onlyWithContact` (type: `boolean`):

Keep only posts where an e-mail or phone was found.

## `aiLabels` (type: `array`):

Short sentences that finish 'The author ...' (e.g. offers something for sale). Each post gets the labels that apply, with a score (charged per label judged).

## `onlyAiLabelMatches` (type: `boolean`):

Keep only posts where one of your AI labels applies.

## `keywords` (type: `array`):

Keep posts whose text has one of these words (whole words, case and accents ignored).

## `keywordsMode` (type: `string`):

any = at least one; all = every keyword.

## `excludeKeywords` (type: `array`):

Drop posts with these words.

## `excludeAuthors` (type: `array`):

Profile ids or links whose posts are dropped.

## `onlyAuthors` (type: `array`):

Profile ids or links: keep only their posts.

## `authorNameContains` (type: `array`):

Keep posts whose author name has one of these texts.

## `postTypes` (type: `array`):

Only posts of these kinds. Empty: all.

## `minReactions` (type: `integer`):

Keep posts with at least this many reactions.

## `minComments` (type: `integer`):

Keep posts with at least this many comments.

## `minShares` (type: `integer`):

Keep posts with at least this many shares.

## `minEngagementScore` (type: `integer`):

reactions + 2 x comments + 3 x shares.

## `onlyWithMedia` (type: `boolean`):

Keep only posts with a photo or a video.

## `skipPostsWithoutText` (type: `boolean`):

Drop posts that have no text.

## `onlyQuestions` (type: `boolean`):

Posts Facebook marks as a question.

## `excludeAiGenerated` (type: `boolean`):

Posts with Facebook's own AI label.

## `excludeAnonymous` (type: `boolean`):

Drop posts by anonymous group members.

## `skipDuplicatePosts` (type: `boolean`):

The same text posted again.

## `duplicateScope` (type: `string`):

sameAuthor: the same text by the same author; anyAuthor: the same text by anyone.

## `onlyListings` (type: `boolean`):

Posts that are an item for sale, with price, sold flag, seller and location text.

## `listingStatus` (type: `string`):

Listings: any, only available or only sold.

## `minPrice` (type: `number`):

Items for sale priced at least this (listing currency).

## `maxPrice` (type: `number`):

Items for sale priced at most this (0 keeps free items).

## `onlyNew` (type: `boolean`):

Only posts never delivered to you under this memory key; schedule the run.

## `stateKey` (type: `string`):

Separate monitors.

## `resetState` (type: `boolean`):

Forget what this memory key already delivered and start again.

## `maxRequestsPerMinute` (type: `integer`):

Only makes reading slower than our own pace.

## Actor input object example

```json
{
  "mode": "posts",
  "queries": [
    "creatina"
  ],
  "maxResults": 10,
  "recentPosts": true,
  "postsPerPage": 3,
  "onlyReels": false,
  "includeComments": false,
  "commentsSortOrder": "ranked",
  "includeReplies": false,
  "includeGroupDetails": false,
  "extractContacts": false,
  "onlyWithContact": false,
  "onlyAiLabelMatches": false,
  "keywordsMode": "any",
  "onlyWithMedia": false,
  "skipPostsWithoutText": false,
  "onlyQuestions": false,
  "excludeAiGenerated": false,
  "excludeAnonymous": false,
  "skipDuplicatePosts": false,
  "duplicateScope": "sameAuthor",
  "onlyListings": false,
  "listingStatus": "any",
  "onlyNew": false,
  "resetState": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "posts",
    "queries": [
        "creatina"
    ],
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("pomlabs/facebook-search-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "posts",
    "queries": ["creatina"],
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("pomlabs/facebook-search-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "posts",
  "queries": [
    "creatina"
  ],
  "maxResults": 10
}' |
apify call pomlabs/facebook-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pomlabs/facebook-search-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/3f96Fb7wJCuQ167ZA/builds/7iBjChfRLhdvDfqrm/openapi.json
