# Facebook Pages Search Scraper - Find Pages by Keyword (`neverempty/facebook-pages-search-scraper`) Actor

Find public Facebook Pages by keyword, no login or cookies: name, URL, category, email, phone, address, website, rating, followers, verified badge, creation date and ad status, one row per Page. Several keywords per run, or a cheaper name-and-link list.

- **URL**: https://apify.com/neverempty/facebook-pages-search-scraper.md
- **Developed by:** [NeverEmpty](https://apify.com/neverempty) (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 $5.49 / 1,000 page returneds

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/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 Pages Search Scraper: Find Pages by Keyword, No Login

Search Facebook Pages by keyword, such as `dentist chicago` or `coffee roaster`, and get one row per public Page with its name, category, followers and rating, plus email, phone, address and website wherever the Page lists them. Use it as a Facebook Pages search scraper or API to build business lead lists, and export to CSV, Excel or JSON, with no login, cookies or Facebook account.

Each row also shows whether the Page is running ads right now, when it was created, its verified badge and its Ad Library link. Search many keywords in one run.

### What it does

- **Finds Pages by keyword.** Give it words such as a trade and a town (`plumber houston`), a brand or a topic, including non-English text such as `ラーメン 東京`. Each term is searched on its own, the same way as the Pages tab of Facebook search.
- **Opens each Page and returns its details.** Contacts, category, rating, followers, opening status, services and price range come from the Page itself, in one row per Page.
- **Shows who is advertising.** `isRunningAds`, `creationDate` and `adLibraryUrl` tell you which businesses are active and spending on ads.
- **Gives each Page once.** A Page found for two of your terms is returned and charged once.
- **Returns Pages that match your words.** A Page is returned when every word of your search term appears at the start of a word in its name, category, description or address. Pages that do not match are not returned or charged.
- **Gives a free summary per term.** Each term ends with a free note row that tells you how many Pages were returned.

### What you can use it for

- Build a lead list of local businesses: search `roofer dallas`, `dentist chicago` or `wedding photographer london` and export the emails and phone numbers.
- Find businesses that run Facebook ads, or new ones that do not yet, for agency prospecting.
- Map the Pages of a market or a niche, with their followers and ratings side by side.
- Feed a CRM, a spreadsheet or an AI agent with fresh Page data on a schedule.

### How to use it

1. Add one or more terms under **Search terms**, one per line.
2. Set **Pages per search term**.
3. Press **Start**, then export the results as CSV, Excel, JSON or through the API.

**Input options**

| Option | What it does |
|---|---|
| `searchTerms` | One search per line, such as `dentist chicago` or `ラーメン 東京`. Put the town in the same line to find Pages there; spaces inside a line are part of that one search. Up to 200 lines |
| `maxPagesPerTerm` | Most Pages to return for each term, from 1 to 1000. In our tests one search returned from 1 to 46 Pages that match its words, so a term may return fewer than you set. The form starts at 20; if you leave it empty, 25 is used |
| `includeTransparency` | On by default: adds the creation date, whether the Page is running ads now, and the organization responsible. Works when `includeDetails` is on. Turning it off makes the run faster; the price per Page stays the same |
| `includeDetails` | On by default: opens each Page for its contacts, category, rating, followers and more. Off: a lower-priced list of names, Page links, Facebook IDs, verified badges and pictures straight from the search |

Example input:

```json
{
  "searchTerms": ["dentist chicago", "plumber houston"],
  "maxPagesPerTerm": 50,
  "includeTransparency": true
}
```

To find businesses in one place, add the town to the search words. With no search term, the Actor runs the example words `plumber houston` for 10 Pages, and the run says so.

### What you get

A row from a run on 2026-11-11 (search term `yoga studio austin`, some fields left out):

```json
{
  "dataType": "page",
  "searchTerm": "yoga studio austin",
  "title": "Austin Yoga Tree",
  "category": "Yoga Studio",
  "categories": ["Page", "Yoga Studio"],
  "email": "smile@austinyogatree.com",
  "phone": "(512) 887-8807",
  "address": "10401 Anderson Mill Rd #105B, Austin, TX, United States, Texas",
  "website": "https://www.austinyogatree.com/",
  "rating": "100% recommend (35 reviews)",
  "ratingOverall": 100,
  "ratingCount": 35,
  "priceRange": "$",
  "followers": 1630,
  "talkingAbout": 69,
  "wereHere": 834,
  "isVerified": false,
  "isRunningAds": true,
  "creationDate": "2014-10-13",
  "intro": "Austin Yoga Tree is more than a yoga studio. We are a hub for mindfulness and passionate living. We offer yoga, group coaching, meditation and more. Ample free parking in the rear.",
  "hoursStatus": "Closed now",
  "pageUrl": "https://www.facebook.com/AustinYogaTree",
  "facebookUrl": "https://www.facebook.com/AustinYogaTree",
  "pageId": "603116926463279",
  "adLibraryPageId": "603116926463279",
  "facebookId": "100063551502857",
  "adLibraryUrl": "https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=ALL&view_all_page_id=603116926463279",
  "checkedAt": "2026-11-11T02:55:59.290Z"
}
```

`pageId` is the Page's Ad Library ID (the same value as `adLibraryPageId`, or `null` when the Page does not show one), and `facebookId` is its profile ID. List-only rows (`includeDetails` off) carry `facebookId`; the Ad Library ID is read from the opened Page, so they have no `pageId`.

A value the Page does not show is `null`, never a guess. In a test of 39 Pages found by search on 2026-11-11, 39 had a category and ad status, 30 a follower count, 29 a creation date, 23 a rating, 17 a phone number, 17 an address, 12 a website and 11 an email. Image addresses are temporary links from Facebook, so download what you want to keep.

Besides the fields in the example, each row also carries `info`, `likes`, `creation_date`, `ad_status` and `confirmed_owner`, so you can map them to the columns of your own sheet or CRM.

Rows with `"dataType": "note"` are free. Each term gets one: it says how many Pages were returned, and how many Facebook showed that were left out (Pages that do not mention your words, personal profiles, Pages no longer available, Pages returned for an earlier term). Each note carries a `reason`, the `input` it is about and a `message`.

### What does it cost?

You pay per Page row: one price with full details, a lower price for a name-and-link list. With details, each search term read also costs $0.02. There is no start fee, and note rows are free.

| Apify plan | Per 1,000 Pages with details | Per 1,000 Pages, list only (`includeDetails` off) |
|---|---|---|
| Free | $5.99 | $1.49 |
| Bronze | $5.49 | $1.29 |
| Silver | $5.49 | $0.99 |
| Gold and above | $5.49 | $0.79 |

| Event | When it is charged | Price |
|---|---|---|
| `page-returned` | Each Page returned with details | The table above |
| `page-found` | Each Page returned as a list-only row | The table above |
| `search-term` | Each search term read with details, once per term | $0.02 on every plan |

Example on the Bronze plan: 3 search terms with 20 Pages each cost 3 × $0.02 = $0.06 for the terms plus 60 × $0.00549 = $0.33 for the Pages, $0.39 in all. A list-only run has no `search-term` charge, and duplicate or empty terms are not charged.

Set a maximum total charge on the run, and the Actor stops there and says so in the last row.

### Frequently asked questions

**How do I find Facebook business Pages by keyword?**
Type a trade and a town, such as `dentist chicago`, under **Search terms** and press **Start**. Each Page comes back with its contact details. No account or cookies are needed.

**How do I get the emails and phone numbers of local businesses from Facebook?**
Search for the kind of business and the town, then export the run as CSV or Excel. The `email`, `phone`, `address` and `website` columns are filled wherever the Page lists them.

**How many Pages do I get for one search term?**
Facebook shows a limited number of Pages for one search, and the Actor returns those that match your words. In our tests one term returned from 1 to 46 Pages; a common trade in a big city, such as `plumber houston`, returned 34 to 46. To get more, add more terms, such as nearby towns or other wording.

**How can I tell which businesses run Facebook ads?**
Keep `includeTransparency` on. `isRunningAds` is `true` or `false` for each Page, and `adLibraryUrl` opens its ads in the Ad Library.

**Can I get just a list of Facebook Pages for a keyword, cheaper?**
Yes. Turn off `includeDetails`. Each row then has the Page name, its link, its Facebook ID, the verified badge and the profile picture, at a lower price per Page and with no `search-term` charge. A Page is returned when every word of your search term starts a word in its name.

**Can I search in other languages?**
Yes. You can search in Japanese, Spanish and other languages. For Latin-script words, each word of your term must start a word in the Page's name, category, description or address. For Chinese, Japanese, Korean and Thai, the words may sit anywhere in those fields.

**Can I use it from my own code or an AI agent?**
Yes. Start it through the Apify API or the Apify MCP server, and read the rows as JSON.

### Good to know

- **Personal data is your responsibility.** Pages can list the names, emails and phone numbers of the people who run them. The usual Facebook rules and privacy laws such as GDPR apply to how you use the data.
- The Actor returns public Pages, as a visitor who is not logged in sees them. With details on, any personal profile among the search results is left out and counted in the free row. With details off, the rows are the Pages tab of the search as Facebook lists it.
- Search results depend on Facebook's own ranking, so the same term can give a somewhat different set of Pages on another day.
- Facebook sometimes refuses a request. The Actor tries again; a term it could not read gets a free `unreadable` or `incomplete` row. If most requests are refused, the run stops and the last row lists the terms not finished.
- If 25 terms in a row return no Page, the run stops and the last row lists the terms not read; they are not charged. Check their spelling, or run them again later.
- If a run reaches its time limit, the last row lists the terms not finished (`notFinishedTerms`). To continue, resurrect (restart) the same run from the Apify Console. If it reached its maximum charge, first raise the maximum total charge in the run's options, then resurrect it. Pages and search terms already charged are not charged again. A new run starts over and charges for each Page and term it reads.

### Thanks for using this Actor

We build these tools for people who run them every day, and we improve them from what users tell us.

- **Missing a field, or need another filter?** Tell us in the **Issues** tab. If the data is there, we add it.
- **Found a bug or a wrong value?** Post the run ID in the **Issues** tab. Wrong data is the thing we fix first.

If this Actor saved you time, a short review helps other people find it.

# Actor input Schema

## `searchTerms` (type: `array`):

One search per line, such as dentist chicago, coffee roaster or ラーメン 東京. Put the town in the same line to find Pages there; spaces inside a line are part of that one search. Up to 200 lines. If left empty, the example plumber houston is searched for 10 Pages.

## `maxPagesPerTerm` (type: `integer`):

Most Pages to return for each term, from 1 to 1000. In our tests one search returned from 1 to 46 Pages that match its words, so a term may return fewer than you set. The form starts at 20; if you leave it empty, 25 is used.

## `includeTransparency` (type: `boolean`):

Also reads each Page's transparency section: the creation date, whether it is running ads now, and the organization responsible. Works only when "Open each Page for details" is on. On by default; turning it off makes the run faster and the price per Page stays the same.

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

On by default: each Page is opened for its contacts, category, rating, followers and more, charged as page-returned, plus $0.02 per search term read (search-term). Off: you get only the name, Page link, Facebook ID, verified badge and picture from the search list, at a lower price per Page (page-found) and with no search-term charge. With it off, a Page is returned only when every word of your search term is in its name.

## Actor input object example

```json
{
  "searchTerms": [
    "dentist chicago"
  ],
  "maxPagesPerTerm": 20,
  "includeTransparency": true,
  "includeDetails": true
}
```

# Actor output Schema

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

One row per public Facebook Page found for your search terms: name, URL, category, email, phone, address, website, rating, followers, verified badge, creation date, ad status, Ad Library ID (pageId) and Facebook ID. List-only rows carry the name, URL, Facebook ID, verified badge and picture. Rows with dataType "note" are free and say how each search term ended.

# 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 = {
    "searchTerms": [
        "dentist chicago"
    ],
    "maxPagesPerTerm": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("neverempty/facebook-pages-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 = {
    "searchTerms": ["dentist chicago"],
    "maxPagesPerTerm": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("neverempty/facebook-pages-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 '{
  "searchTerms": [
    "dentist chicago"
  ],
  "maxPagesPerTerm": 20
}' |
apify call neverempty/facebook-pages-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neverempty/facebook-pages-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/PGpfsrGxeM0yS1ySL/builds/5CC10UPf2zZnfyfKp/openapi.json
