# Facebook Search Scraper 💰 $2.4/1K · No Login · Posts & Pages (`first-penguin/facebook-search-scraper`) Actor

Scrape Facebook search results without login: posts, Pages and people. Posts include text, author, date, reactions by type, comments and shares at no extra cost. Date range, monitor mode with Slack, Discord or webhook alerts. $2.4 per 1,000 results; empty searches free.

- **URL**: https://apify.com/first-penguin/facebook-search-scraper.md
- **Developed by:** [First Penguin](https://apify.com/first-penguin) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.40 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-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 — $2.4/1K · No Login · Posts, Pages, People

Give it search keywords and get Facebook's search results, **one row per result**. For **posts**: text, author, date, **reactions (with the breakdown by type), comment count and share count**, photos — all in the same row, no extra fee. For **Pages** and **people**: name, URL, verified badge, picture.

No Facebook account, no cookies, no login. You pay only for results returned: **$2.4 per 1,000**. Keywords with no results are free.

Add a **date range**, a **place**, or turn on **monitor mode** and schedule it: each run returns only posts published since the last run and sends them to **Slack, Discord or any webhook** (Zapier, Make, n8n).

**What it does not do (read first)**

- **Facebook does not return search results to the end.** Logged-out visitors get a limited list per keyword: narrow keywords usually stop after 50–200 results (17 keywords in our test: 55–203, median 85). Broad keywords went much further (hair salon: 872 results and still going). The run summary says, for every keyword, whether it stopped at your limit or because Facebook ran out.
- **"Recent" is Facebook's Recent posts filter, not a strict timeline.** It returns mostly the latest day or few days of posts in no fixed order, and sometimes older ones. The output is sorted newest first, but a result list is not a complete feed of everything posted.
- **The place filter is a hint, not a fence.** Facebook applies it loosely: New York results included Brooklyn posts but also posts from elsewhere.
- **Comment text is not included** — only the number of comments. Use a comments scraper with the post URLs from this Actor.
- Two runs of the same keyword at the same moment can return different posts: Facebook varies what logged-out visitors see.
- Groups, events and places are not supported. Search results are limited to posts, Pages and people.

### Who uses it

| You want to | Example | Turn on |
|---|---|---|
| Watch your brand and competitors | New public posts mentioning your brand in Slack every morning | Posts + Monitor mode + Slack + a schedule |
| Market and opinion research | The most-reacted posts about a topic, with reactions, comments and shares | Posts + a date range |
| Find local businesses and leads | Pages for "plumber" or "yoga studio", with name and URL | Pages |
| Feed AI and automation | Posts into n8n, Make or an LLM to summarize or classify | Any input, via API or MCP |
| Feed a deeper scrape | Post and Page URLs into a comments or posts Actor | Posts or Pages |

### How it works

1. **Give keywords** — one or many, as you would type them in Facebook's search box. Choose posts, Pages or people.
2. **It reads the results the way Facebook's own search page does for a visitor who is not logged in**, page after page (about 5–6 results per page), until your limit, your date range, or the end of what Facebook returns. Duplicates are removed.
3. **One row per result.** A keyword with no results comes back as one free row that says so.

### Compared with other Facebook search scrapers

| | This Actor | A typical Facebook search Actor |
|---|---|---|
| Login or cookies | Not needed ✅ | Not needed ✅ |
| Price | $2.4 / 1,000 results, no start fee ✅ | $2.4–6 / 1,000, some add a fee per search page ❌ |
| Reactions, comments, shares | In the same row, no extra fee ✅ | Extra fee per detail ❌, or not provided ❌ |
| Date range | Only posts inside your dates are returned and charged ✅ | Posts outside the range are common in reviews ❌ |
| Place filter | Facebook place ID (loose) ⚠️ | Offered, with complaints about results from other places ⚠️ |
| New-post alerts | Slack, Discord, webhook ✅ | None ❌ |
| What you can search | Posts, Pages, people | Posts only, or several types |
| Why a search stopped | Per keyword, in the run summary ✅ | Log lines or nothing ❌ |

### Pricing

| | Price |
|---|---|
| Result returned (post, Page or person) | **$2.4 / 1,000** |
| Run start | Free |
| Keywords with no results, posts outside your date range, posts you already have (monitor mode) | **Free** |

1,000 results cost at most $2.4. Residential proxy is included in the price.

### Input

| Field | What it does |
|---|---|
| `queries` | Search keywords (one search each) |
| `searchType` | `posts` (default), `pages` or `people` |
| `maxResultsPerQuery` | Stop a keyword after this many results (default 100; 0 = until Facebook ends) |
| `sortBy` | Posts only: `recent` (default) or `relevance` |
| `publishedAfter` / `publishedBefore` | Posts only: dates (`YYYY-MM-DD`). Only posts inside the range are returned and charged |
| `locationId` | Posts only: Facebook place ID (for example `108424279189115` = New York, `106078429431815` = London) |
| `monitor` / `monitorName` | Return only posts newer than the previous run that you have not had before |
| `slackWebhookUrl` / `discordWebhookUrl` / `webhookUrl` | Where to send new posts (monitor mode) |
| `maxConcurrency` | Keywords searched at the same time (default 3) |

Minimal input:

```json
{ "queries": ["coffee shop"] }
```

Posts about your brand, new ones only, to Slack:

```json
{ "queries": ["acme coffee"], "monitor": true, "slackWebhookUrl": "https://hooks.slack.com/services/…" }
```

Pages:

```json
{ "queries": ["plumber", "electrician"], "searchType": "pages", "maxResultsPerQuery": 50 }
```

### Output

Post (made-up data):

```json
{
  "status": "ok",
  "query": "coffee shop",
  "searchType": "posts",
  "position": 1,
  "postId": "1234567890123456",
  "url": "https://www.facebook.com/examplecafe/posts/pfbid0example",
  "text": "New seasonal menu is here ☕",
  "textContainsQuery": false,
  "authorName": "Example Cafe",
  "authorId": "100000000000001",
  "authorUrl": "https://www.facebook.com/examplecafe",
  "createdAt": "2026-11-22T09:15:00.000Z",
  "reactionCount": 206,
  "reactionsByType": { "Like": 157, "Love": 48, "Care": 1 },
  "commentCount": 16,
  "shareCount": 144,
  "media": [{ "type": "Photo", "url": "https://scontent.xx.fbcdn.net/…" }],
  "scrapedAt": "2026-11-23T09:00:00.000Z"
}
```

Page or person: `kind` (`page` / `person`), `name`, `url`, `profileId`, `isVerified`, `pictureUrl`, `description` (people: for example "Lives in …", when Facebook shows it).

`textContainsQuery` tells you whether the post text contains all your keywords — Facebook also returns posts that only match in other ways.

A keyword with nothing to return (not charged): `{ "status": "no_results", "query": "…", "detail": "…" }`. Other statuses: `no_new_results` (monitor mode) · `failed` with `reason` (`rate_limited`, `unavailable`, `invalid_input`).

The run summary (`RUN_SUMMARY` in the key-value store) lists every keyword with its result count, the pages read, and why it stopped: `limit` (your limit), `end_of_results` (Facebook ran out), `no_more_in_range` (no more posts in your date range), `no_more_new` (monitor mode), `max_pages`, or `failed_…`.

### Monitor mode

- The first run returns the current recent posts (up to your limit) as a baseline. Later runs return only posts **published after the previous run** that were not returned before. Facebook mixes older posts into its results from run to run, so "not seen before" alone would bring old posts back as "new".
- **Seen post IDs are stored only in your own Apify account** (a named key-value store). The developer stores nothing.
- Use Apify's scheduler to run it daily or hourly. A post that Facebook does not show to logged-out visitors during a run cannot be returned by that run.
- If an alert fails to send, the first row of that keyword keeps the error in `notifyErrors` — the data is never lost.

### Measured results

Measured on Apify, no login, residential proxy, November 2026:

| Test | Result |
|---|---|
| 3 keywords, posts, 163 results | Text, author, date, URL, reaction count, comment count and share count present on 163 of 163 rows (reaction breakdown on 124; the other 39 have 0 reactions) |
| 10 keywords at once, 472 results | 57 seconds, 1 retry, no keyword failed |
| Date range (from 2026-11-20), 2 keywords | 160 results, every one inside the range |
| Pages and people | Name, URL and profile ID on every row |
| Cost to us | About $0.24 per 1,000 results (proxy and compute) |
| Speed | About 5–6 results per request; one keyword returned 60 results in 35–45 seconds |

### FAQ

**Do I need a Facebook account?** No. The Actor never logs in and does not use cookies.

**Why did my keyword stop at 80 results?** Facebook ends the result list for logged-out visitors on its own. The run summary shows `end_of_results`. Try broader or several related keywords.

**Why do some posts not contain my keyword?** Facebook's search matches more than the text. Use `textContainsQuery` to keep only posts with your keywords in the text.

**Why are results outside my place or date?** Dates: the Actor checks each post's date and only returns posts inside your range. Place: Facebook applies the place loosely; see the limits above.

**Does it need a proxy?** Yes, a residential proxy (the default, included in the price). Facebook rejects datacenter proxies.

### Use with AI agents

Call it through the [Apify MCP server](https://mcp.apify.com) (`first-penguin/facebook-search-scraper`).

- **Auth:** your Apify API token
- **Minimal input:** `{ "queries": ["coffee shop"] }`
- **Output:** one row per result (`text`, `createdAt`, `reactionCount`, `commentCount`, `shareCount`, `url`, …) or a `no_results` / `failed` row
- **Billing:** `result` $0.0024 each; everything else free

### Support & feature requests

Questions, bugs and feature requests: use the **Issues** tab of this Actor. Include the keyword and run link so it can be reproduced.

### Disclaimer

- This Actor reads only the search results Facebook shows publicly to visitors who are not logged in.
- Facebook's terms of service restrict automated collection of its content. You are responsible for how you use the results.
- Results contain personal data (names, IDs, profile URLs, post text). You are responsible for having a legitimate reason to process it under GDPR and other laws. The developer is not the controller of your data.
- Not affiliated with, endorsed by, or sponsored by Facebook or Meta Platforms, Inc.

### Keywords

facebook search scraper, facebook posts search, scrape facebook search results, facebook keyword search, facebook public posts scraper, facebook pages search, facebook people search, facebook brand monitoring, facebook social listening, facebook search no login, facebook search api

### Related Actors

- [Facebook Posts Scraper](https://apify.com/first-penguin/facebook-posts-scraper) — posts of a given Page or profile, with new-post alerts
- [Facebook Group Posts Scraper](https://apify.com/first-penguin/facebook-groups) — posts from public Facebook groups, with new-post alerts
- [Facebook Ads Library Scraper](https://apify.com/first-penguin/facebook-ads-library-scraper-monitor) — ads from Meta's Ad Library, with new and stopped ad alerts

# Actor input Schema

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

One or more search terms, exactly as you would type them in Facebook's search box. Each keyword is searched separately.

## `searchType` (type: `string`):

Public posts, Pages (businesses, brands, public figures) or People.

## `maxResultsPerQuery` (type: `integer`):

Stop a keyword after this many results. Facebook stops returning results by itself after a while (often 50–200 for narrow keywords). Set 0 for no limit other than Facebook's own end. You are charged per result returned.

## `sortBy` (type: `string`):

Posts only. 'Recent' uses Facebook's Recent posts filter: mostly the last day or few days of posts, in no strict order (rows are sorted newest first in the output). 'Relevance' is Facebook's default order.

## `publishedAfter` (type: `string`):

Posts only. Date (YYYY-MM-DD). Facebook's own date filter also returns posts outside the range, so the Actor checks every post's date and only returns (and charges) posts in range. It stops after several result pages in a row with nothing in range.

## `publishedBefore` (type: `string`):

Posts only. Date (YYYY-MM-DD). Newer posts are skipped (not charged).

## `locationId` (type: `string`):

Posts only. Limit results to one place. Use Facebook's numeric place ID (for example 108424279189115 for New York, 106078429431815 for London). You can find a place ID in the URL of a Facebook place page.

## `monitor` (type: `boolean`):

The first run returns the current recent posts as a baseline. Next runs return only posts published after the previous run that were not returned before. Run it on a schedule. Posts are read with Facebook's Recent posts filter. Run it on a schedule to get new posts about your keywords every day. Seen post IDs are stored only in your own Apify account (a named key-value store).

## `monitorName` (type: `string`):

Use different names to keep separate watch lists.

## `slackWebhookUrl` (type: `string`):

Optional. In monitor mode, sends a message when a keyword has new posts.

## `discordWebhookUrl` (type: `string`):

Optional. In monitor mode, sends a message when a keyword has new posts.

## `webhookUrl` (type: `string`):

Optional. In monitor mode, receives a JSON POST per keyword with the new posts.

## `maxConcurrency` (type: `integer`):

How many keywords to search at the same time.

## `proxyConfiguration` (type: `object`):

Residential proxy is required (included in the price). Datacenter proxies are rejected by Facebook.

## Actor input object example

```json
{
  "queries": [
    "coffee shop"
  ],
  "searchType": "posts",
  "maxResultsPerQuery": 100,
  "sortBy": "recent",
  "monitor": false,
  "monitorName": "default",
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

One row per result, plus one row per keyword with no results or that could not be read (not charged).

## `summary` (type: `string`):

Per keyword: how many results, and why the search ended (limit reached, Facebook ran out, date reached, or an error).

# 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 = {
    "queries": [
        "coffee shop"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("first-penguin/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 = {
    "queries": ["coffee shop"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("first-penguin/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 '{
  "queries": [
    "coffee shop"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call first-penguin/facebook-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,first-penguin/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/UccVn62MSkqPbv8aN/builds/nk79E81n0Di9wTe9t/openapi.json
