# Facebook Page Search - Business Pages by Keyword with Email (`aolmo/facebook-page-search`) Actor

Find Facebook business pages by keyword (trade, profession, brand) and city or country, without login: page name, category, followers, likes, address, website, and the email and phone of the page and of its website. Follower range filter and only-with-contact option. $0.004 per page.

- **URL**: https://apify.com/aolmo/facebook-page-search.md
- **Developed by:** [Antonio del Olmo Tena](https://apify.com/aolmo) (community)
- **Categories:** Lead generation, Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 page founds

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

Search Facebook business pages by keyword and location and get their contact details in one run. Give keywords for a trade, profession or brand type (dentist, bakery, real estate agency, yoga studio) and, optionally, a city or country. The Actor finds the matching Facebook pages, reads each one and returns one row per page with name, category, followers, likes, address, website, the email and phone shown on the page, and the emails, phones and social links of its website. Filter by follower range, or keep only pages with an email or phone. Local business leads, agency prospecting and partner lists at **$0.004 per page**.

Facebook does not show its search to logged-out visitors, so the Actor discovers pages through a web search restricted to facebook.com and reads each public page as any visitor sees it. It never logs in or bypasses CAPTCHAs or rate limits.

### What you get

**Page** (one row each): `name`, `url`, `username`, `category`, `description`, `followers`, `likes`, `verified`, `address`, `website`, `websites`.

**Contacts**: `email`, `phone`, `emails`, `phones`, `pageEmail` and `pagePhone` (shown on the page), `siteEmails` and `sitePhones` (found on the website), `socials`, `websiteStatus`, `hasContact`.

**Match**: `keyword`, `position`, `foundUrl`, `foundTitle`, `candidatesFound`, `pagesRead`.

**Changes** on scheduled runs: `isNew` is true for pages that were not returned in the previous run of the keyword.

Pages that cannot be read and pages outside your filters are listed in `skipped` and are free.

### How to use it

1. Open the **Input** tab.
2. Add **Keywords**, one per line: `dentist`, `wedding venue`, `car dealer`.
3. Optionally add a **City or country**: `Miami`, `Madrid`, `Ireland`.
4. Set **Minimum followers**, **Maximum followers** and **Max pages per keyword** (up to 50).
5. Turn on **Only results with email or phone** for outreach lists.
6. Click **Start** and export the pages as JSON, CSV or Excel.

### Input

```json
{
  "keywords": ["dentist", "orthodontist"],
  "location": "Miami",
  "maxPages": 10,
  "minFollowers": 100,
  "onlyWithContact": true,
  "crawlWebsite": true
}
```

### Output

```json
{
  "keyword": "dentist",
  "position": 3,
  "name": "Smile Miami Dental Office",
  "url": "https://www.facebook.com/smilemiami",
  "category": "General Dentist",
  "followers": 771,
  "address": "Miami, FL",
  "website": "https://smilemiami.example",
  "pageEmail": "smilemiamidental@example.net",
  "pagePhone": "+13055981428",
  "email": "smilemiamidental@example.net",
  "phone": "+13055981428",
  "emails": ["smilemiamidental@example.net"],
  "socials": { "instagram": "https://www.instagram.com/smilemiami" },
  "hasContact": true,
  "foundUrl": "https://www.facebook.com/smilemiami/",
  "isNew": false,
  "timestamp": "2026-11-16T12:00:00.000Z"
}
```

### Pricing

Pay per event: **$0.004 per page returned** and **$0.002 per new page** detected on a scheduled run. Pages that cannot be read or are filtered out are free. 10 keywords x 20 pages (200 pages) cost $0.80.

### Use it as an API

```bash
curl -X POST "https://api.apify.com/v2/acts/aolmo~facebook-page-search/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["dentist"], "location": "Miami", "maxPages": 10, "onlyWithContact": true}'
```

### FAQ

**How are pages found?** Through a web search of Facebook pages for your keyword and location, several variations per keyword. Each page is then read on Facebook for its category, followers and contact details.

**Why do some pages have no email?** Many pages only list a phone, a website or nothing in their About section. The Actor also reads the linked website (2 pages). Turn on **Only results with email or phone** to pay only for pages you can contact.

**Does it read personal profiles or groups?** No. Only public pages; groups, events and posts are skipped.

**Where is the data stored between runs?** In a Key-Value Store of your account named `micro-saas-state-facebook-page-search`, one key per keyword. Delete it to start fresh.

### Related Actors

- **Facebook Page Contact Scraper**: contacts of pages you already know.
- **Google Maps No-Website Leads**: local businesses without a website.
- **Instagram Profile Search**: Instagram accounts by keyword with emails.

# Actor input Schema

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

One per line: dentist, bakery, real estate agency, yoga studio. Up to 50 per run.

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

Optional, such as Miami, Madrid or Australia.

## `maxPages` (type: `integer`):

Up to 50.

## `minFollowers` (type: `integer`):

Skip smaller accounts (free).

## `maxFollowers` (type: `integer`):

0 = no maximum.

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

Return (and charge) only pages with at least one email or phone. Takes longer: more are read to fill the list.

## `crawlWebsite` (type: `boolean`):

Open the website of each page (2-3 pages) for emails, phones and social links.

## `region` (type: `string`):

Region of the web search used to discover them: us-en, uk-en, es-es, de-de, fr-fr, in-en... or wt-wt for no region.

## `product` (type: `string`):

Internal. Leave as is.

## Actor input object example

```json
{
  "keywords": [
    "dentist"
  ],
  "location": "Miami",
  "maxPages": 5,
  "minFollowers": 0,
  "maxFollowers": 0,
  "onlyWithContact": false,
  "crawlWebsite": true,
  "region": "us-en",
  "product": "facebook-page-search"
}
```

# Actor output Schema

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

Dataset items: url, changed, events, data, timestamp and error (when the target failed).

# 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 = {
    "keywords": [
        "dentist"
    ],
    "location": "Miami",
    "maxPages": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("aolmo/facebook-page-search").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 = {
    "keywords": ["dentist"],
    "location": "Miami",
    "maxPages": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("aolmo/facebook-page-search").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 '{
  "keywords": [
    "dentist"
  ],
  "location": "Miami",
  "maxPages": 5
}' |
apify call aolmo/facebook-page-search --silent --output-dataset

```

## MCP server setup

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

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/55BeLvQzJRBbSablj/builds/GNOLoAe3xakkIzCTC/openapi.json
