# Facebook Search Scraper (`piotrv1001/facebook-search-scraper`) Actor

Search Facebook for pages, places and events by keyword with no login: name, link, description, image, and optionally phone, email, website, address, category, followers and hours for lead lists. Many keywords per run, export to CSV or Excel.

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

## Pricing

from $3.00 / 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

**Search Facebook without an account** and get the results as data. The **Facebook Search Scraper** takes your keywords and returns the matching **pages, places or events**: name, link, description and image, plus, when you switch on details, the phone, email, website, address, category, followers and hours each page lists publicly. No login, cookies or Graph API token. Use it for Facebook lead generation, local business lists, finding pages in a niche and event research, and export to JSON, CSV or Excel.

### ✨ Features

- **Facebook page search**: Find pages by any keyword, such as `pizza new york` or `dentist chicago`.
- **Places and events too**: Choose what to search for. Places are pages with a physical location (an address or check-ins); people are not searched.
- **Contact details on demand**: Phone, email, website and address from each page's public profile, charged only when they came back.
- **Event details**: For events, the date, place, organizers and ticket link.
- **Only real pages are charged**: every result is read from its own public page; links that don't open as a page, place or event are dropped, not billed.
- **Many keywords per run**: Each with its own limit; a page found by two keywords is saved and charged once.

### 🛠️ How It Works

1. **Enter your search keywords**, one per line. Put the city in the words to search one area.
2. **Choose pages, places or events**, and switch on details if you want contacts.
3. **Run it**: download the results as JSON, CSV or Excel, or get them through the API.

### ⚙️ Input

| Field | What it does |
| --- | --- |
| **Search keywords** | Words to search for, one per line. |
| **Search for** | Pages, places or events. Default pages. |
| **Include page details** | Open each result's own page for contacts, category, followers and hours (events: date, place, organizers). Off by default. |
| **Max results per keyword** | Stop after this many results for each keyword. Default 50. |

```json
{
    "queries": ["pizza new york", "dentist chicago"],
    "searchType": "pages",
    "includeDetails": true,
    "maxItems": 100
}
```

### 💰 Pricing

You pay per result saved, with no monthly rental. Details are optional and are only charged when they came back.

| Event | Price | What you get |
| --- | --- | --- |
| **Result** | $0.003 per result ($3 per 1,000) | One page, place or event with its name, link, description and image |
| **Page details** | $0.006 per result ($6 per 1,000) | On top of Result, when the result's own page returned contacts or page data |
| **Actor start** | $0.00005 per run | Charged once when the run starts |

Examples: 100 pages cost $0.30 without details and $0.90 with details on all of them. 1,000 pages cost $3 without details and $9 with them.

### 📊 Sample Output Data

```json
{
    "id": "100000000000000",
    "type": "page",
    "name": "Example Dental Chicago",
    "url": "https://www.facebook.com/exampledentalchicago",
    "isVerified": false,
    "imageUrl": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.30808-1/278163656_491233495772590_4179141000977440050_n.png?…",
    "description": "Family dentistry in Chicago. Call us to book your visit.",
    "query": "dentist chicago",
    "category": "Medical Service",
    "phone": "(312) 555-0100",
    "email": "office@example.com",
    "website": "example.com",
    "address": "100 Example St, Chicago, IL, United States",
    "hours": "Closed now",
    "priceRange": null,
    "rating": "Not yet rated (4 reviews)",
    "followers": 348,
    "likes": null,
    "wereHere": 9,
    "coverPhotoUrl": "https://scontent-lga3-2.xx.fbcdn.net/v/t39.30808-6/278133622_491233492439257_5910380924040402657_n.png?…",
    "hasDetails": true,
    "scrapedAt": "2026-11-01T07:56:50.701Z"
}
```

The fields from `category` on appear when details are on. `hasDetails` shows whether the details came back and were charged. Each page shows only what its owner published: in our test on 16 dentist pages, all had a category, 14 a phone and followers, 13 an address, 11 a website and 6 an email. On a pizza search, 10 of 20 had a phone and 2 an email.

### 🎯 Use Cases for Facebook Search

- **Facebook lead generation**: build lists of local businesses in a niche and city, with phones, websites and addresses.
- **Extract emails from Facebook pages**: the email a page lists publicly comes back in `email`.
- **Market and competitor research**: find every page around a topic and compare followers.
- **Event research**: find upcoming events by city or topic with date, place and organizer.

### ❓ FAQ

**How do I search Facebook without an account?** Enter your keywords and run the Actor. No Facebook account, cookies or Graph API token are needed.

**Is there a Facebook search API?** Facebook's Graph API has no open page search. This Actor works as a Facebook search API: start a run through the Apify API with your keywords and read the rows as JSON.

**How many results does one keyword return?** Facebook's own search no longer answers without an account, so the Actor finds pages in public results and reads each one from Facebook. That gives about 60 to 75 pages per keyword in our tests (75 for `dentist chicago`, 65 for `pizza new york`), fewer places, and around 15 events. When a search runs out before your limit, the status message says how many were found. For more, add keywords: one per city, district or niche (`dentist chicago loop`, `pediatric dentist chicago`).

**What is the difference between pages and places?** Both return Facebook pages. Places keeps only pages with a physical location, an address or check-ins.

**Are events upcoming only?** No. Events come from public results, so past events appear too. Switch on details to get `startTime` and `isPast`.

**Can it filter by city or category?** Put the city or category in the keywords. Results must share at least one word with your keywords, so a few loosely related pages can appear.

**Does it search people or groups?** No. It searches pages, places and events only.

**When am I charged for details?** Only when the result's own page returned contact or page data. If the page shows no contact or page data, the row is saved with `hasDetails: false` and you pay only for the Result.

**Can I export to Excel or CSV?** Yes. Every run's dataset downloads as CSV, Excel, JSON or XML, or through the Apify API.

### 🔗 More Facebook Actors

- [Facebook Posts Search Scraper](https://apify.com/piotrv1001/facebook-posts-search-scraper): search posts by keyword.
- [Facebook Video Search Scraper](https://apify.com/piotrv1001/facebook-video-search-scraper): search videos and reels by keyword.
- [Facebook Pages Scraper](https://apify.com/piotrv1001/facebook-pages-scraper): the full profile of a page you already know.
- [Facebook Events Scraper](https://apify.com/piotrv1001/facebook-events-scraper): events with full details.

# Actor input Schema

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

Words to search for, one per line, e.g. `pizza new york`. Put the city in the words to search one area.

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

What to search Facebook for. Places are pages with an address or check-ins; events include past ones (details give the date).

## `includeDetails` (type: `boolean`):

Open each result's own page for its contact details (phone, email, website, address), category, followers and hours; for events the date, place and organizers. Charged per result only when the details came back.

## `maxItems` (type: `integer`):

Stop after this many results for each keyword. A keyword usually gives about 50 to 70 pages; add keywords per city or niche for more.

## Actor input object example

```json
{
  "queries": [
    "pizza new york",
    "dentist chicago"
  ],
  "searchType": "pages",
  "includeDetails": false,
  "maxItems": 50
}
```

# 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 = {
    "queries": [
        "pizza new york"
    ],
    "searchType": "pages",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/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": ["pizza new york"],
    "searchType": "pages",
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("piotrv1001/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": [
    "pizza new york"
  ],
  "searchType": "pages",
  "maxItems": 50
}' |
apify call piotrv1001/facebook-search-scraper --silent --output-dataset

```

## MCP server setup

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