# Facebook Page Search: Businesses by Keyword (`deepmine/facebook-page-search`) Actor

Facebook page search by keyword and city: find businesses on Facebook and get each page's emails, phones, website, address, rating, hours, followers and category. No login, no cookies.

- **URL**: https://apify.com/deepmine/facebook-page-search.md
- **Developed by:** [DeepMine](https://apify.com/deepmine) (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 $0.99 / 1,000 facebook pages

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 Page Search: Businesses by Keyword

**Facebook page search** by keyword and city: type what businesses you want (`hair salon`, `dentist`, `yoga studio`)
and where (`Chicago`, `Austin TX`), and get one row per Facebook page with its **emails, phone numbers, website,
address, rating, opening status and followers**, in a table you export to **CSV, Excel or JSON**. No Facebook
account, no cookies.

### Example: the form's own search

`hair salon` and `yoga studio` in `Chicago`, 25 pages per search. On 2026-11-14 this returned **50 pages in about 2
minutes**, with the first row in the dataset 6 seconds after the start, all 50 in Chicago. **49 rows had an email, 42 a
phone and 50 a website**, and every row had a category, followers and creation date. At the Starter price the run
costs about $0.06.
Some of its rows (from the same search on 2026-11-03):

| title | category | address | followers | rating | businessHours | keyword | searchRank |
|---|---|---|---|---|---|---|---|
| Gallery of Hair | Beauty salon | 6500 W Irving Park Rd, Chicago, IL | 6764 | 92% recommend (1,114 reviews) | Open now | hair salon | 1 |
| Belmont Hair Salon | Hair Salon | 6011 W Belmont Ave, Chicago, IL | 347 | Not yet rated (4 reviews) | Closing Soon | hair salon | 3 |
| Orbit Salon | Hair salon | 3483 N. Clark, Chicago, IL | 121 | Not yet rated (0 reviews) | Closed now | hair salon | 13 |
| The Sanctuary Yoga Studio | Yoga studio | 6710 N Northwest Hwy, Chicago, IL | 1909 | 100% recommend (7 reviews) | Open now | yoga studio | 1 |
| Bloom Yoga Studio | Yoga Studio | 4663 N Rockwell St, Chicago, IL | 2730 | 100% recommend (309 reviews) | Open now | yoga studio | 2 |
| Chicago Hot Yoga | Yoga studio | 4937 N Damen Ave, Chicago, IL | 2963 | 96% recommend (281 reviews) | Open now | yoga studio | 70 |

Every row also has the page's `email`, `phone` and `website` (in the 📇 Contacts view), the social links, the
transparency fields and the rest of the fields listed below.

### What you get

- **Contacts:** every phone, email and website the page lists, the business address with its map link and
  latitude/longitude, and every social profile it links to (Instagram, TikTok, YouTube, X, LinkedIn).
- **Business details:** categories, rating ("94% recommend (201 reviews)") with the percentage and review count as
  numbers, price range, services, opening status, languages.
- **Audience:** exact followers, people talking about the page, check-ins.
- **Page transparency:** creation date, ad status with an `isRunningAds` flag, confirmed owner, Ad Library id.
- **Where it came from:** the `keyword` and `location` whose search found the page, the Google query and the page's
  rank in it.

### Start in three steps

1. **Type keywords** and optional **locations**, or add Facebook page URLs or usernames in **Facebook pages to enrich directly**.
   You can use both. Each keyword is searched once per location.
2. **Set how many pages per search** (`maxResultsPerSearch`, prefilled with 25). Use `0` or leave it out of a raw
   API input to process all available matching results. Direct inputs are separate from the per-search cap.
3. **Run and export.** Open the 📇 Contacts view and download CSV, Excel or JSON, or schedule the run.

Copy/paste input for the API (Actor id `deepmine/facebook-page-search`):

```json
{
  "keywords": ["hair salon", "yoga studio"],
  "locations": ["Chicago"],
  "maxResultsPerSearch": 25,
  "onlyWithEmail": false
}
```

Use the lead filters to require an email, phone, website, or verification badge, or to find pages that list no
website. You can also set follower bounds, a minimum rating, and ad status. When filtering by followers, rating,
or ads, pages with unknown values are skipped. OUTPUT lists skipped pages by reason; they are not charged.

Use `excludePageIds` to supply IDs or usernames you already have. A matching link is skipped before a read;
if Facebook exposes the match only after reading an alternate link, the row is still skipped without a charge.
For recurring searches, enable `onlyNewPages` and choose a `monitoringStore` name. The first run establishes
the baseline; later runs with the same name skip pages already saved by that monitor. Schedule one run at a time
per store and choose different names for independent monitors.

### How it finds pages

With a location, each keyword is first searched on Google Maps (`hair salon Chicago`): the businesses Maps lists,
and the Facebook page each one names, as its website or as a link on its own website. Keywords without a location,
and searches Maps can't fill, are searched on Google (`site:facebook.com hair salon Chicago`), and only the results
that are Facebook **pages** are opened. A page's own post, video or photo in the results counts as that page (a
dentist's post leads to the dentist's page); group posts and Facebook's own pages are skipped before any Facebook call,
so you never pay for them. A page two searches find is one row, charged once; it names the first search that found it.
The next Google page is read only while a search still needs pages, and when Google's results for a search run out
short of `maxResultsPerSearch`, one more Google query (the location in quotes) looks for the rest.

Broad searches (a category and a city) fill up fast. Trades such as plumbers and dentists are often discussed in
Facebook groups, which aren't pages: those searches can return fewer pages than you asked for. Adding more
locations or similar keywords (`emergency plumber`, `plumbing company`) finds more.

### Pricing

Pay per page in your dataset, nothing else: no start fee.

| Plan | Free | Starter | Scale | Business |
|---|---|---|---|---|
| Per 1,000 pages | $1.49 | $1.29 | $1.09 | $0.99 |

Each page is charged once per run, also across restarts and when two searches find it. Pages skipped by
**Only pages with an email** are not charged. The run summary (OUTPUT) is never charged.

### Output fields

One line per key, in row order.

- `profilePictureUrl`: profile picture (signed Facebook CDN link: it expires after a few days)
- `title`, `pageName`, `intro`: page name, handle, short bio
- `category`, `categories`: first category, every category
- `pageUrl`: the page's Facebook link
- `followers`, `followings`, `likes`, `talkingAbout`, `wereHere`: audience counts (`likes` only where Facebook still
  shows page likes; most pages now show followers only)
- `rating`, `ratingOverall`, `ratingCount`: rating line, percent who recommend, number of reviews
- `phone`, `phones`, `email`, `emails`, `website`, `websites`: first one and every one
- `address`, `addressUrl`, `latitude`, `longitude`: business address, its map link and pin
- `businessHours`: opening status ("Open now", "Closed now", "Always open")
- `priceRange`, `services`, `languages`, `foundingDate`
- `instagramUrl`, `tiktokUrl`, `youtubeUrl`, `xUrl`, `linkedinUrl`, `socialLinks`, `alternativeSocialMedia`
- `messenger`: a Messenger link when the page lists one
- `creationDate`, `adStatus`, `isRunningAds`, `confirmedOwner`: page transparency
- `isVerified`, `coverPhotoUrl`, `profilePhotoUrl`, `info`, `otherInfo`
- `pageId`, `facebookId`, `pageAdLibraryId`, `isBusinessPageActive`: ids
- `aboutTabsRead`, `facebookUrl`, `inputUrl`, `scrapedAt`: provenance
- `keyword`, `location`, `searchQuery`, `searchRank`: the search that found the page and its rank there (Maps or
  Google)

Views: 📊 Overview, 📇 Contacts, 🏪 Business, 📈 Stats, 🔎 Transparency.

### Limits

- Public pages only, as a logged-out visitor sees them. Personal profiles and groups aren't returned.
- Google Maps and Google decide which pages a search finds: up to about 300 Maps places, then about 10 Google pages
  per query. Businesses without a Facebook page aren't returned. For more pages, add locations (neighbourhoods,
  suburbs) or keywords.
- `businessHours` is the open/closed status the About tab shows; the weekly schedule isn't read yet.
- Picture links are signed by Facebook and expire after a few days: download them if you need to keep them.

### More Facebook Actors

- [Facebook Pages Scraper](https://apify.com/deepmine/facebook-pages-scraper): the same row for page links you already have.
- [Facebook Posts Scraper](https://apify.com/deepmine/facebook-posts-scraper): the posts of the pages you found.
- [Facebook Reels Scraper](https://apify.com/deepmine/facebook-reels-scraper): every reel of the same pages.
- [Meta Ad Library](https://apify.com/deepmine/meta-ad-library): the ads a page runs.
- [Google Maps Scraper](https://apify.com/deepmine/google-maps-scraper): local businesses by category and city from Google Maps.

### Did it help?

A short review on the Actor's Store page helps other people find it. Something missing or wrong? Open an issue in the Issues tab.

# Actor input Schema

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

What the businesses are: <code>hair salon</code>, <code>dentist</code>, <code>yoga studio</code>, <code>real estate agent</code>. Each keyword is searched once per location. Provide keywords, direct Facebook pages, or both.

## `startUrls` (type: `array`):

Facebook page URLs, usernames or numeric page IDs. These pages use the same lead filters and deduplication as search results. Direct pages do not use keyword or location matching.

## `locations` (type: `array`):

Cities, regions or countries: <code>Chicago</code>, <code>Austin TX</code>, <code>London</code>. Empty: the keywords alone.

## `maxResultsPerSearch` (type: `integer`):

Pages to return for each keyword and location pair. Use 0 or omit this field from API input to return all available matching pages.

## `onlyWithEmail` (type: `boolean`):

Return only pages that list an email address. Pages without one are skipped and not charged.

## `onlyWithPhone` (type: `boolean`):

Skip pages that do not list a phone number.

## `onlyWithWebsite` (type: `boolean`):

Skip pages that do not list a website. Cannot be combined with Only pages without a website.

## `withoutWebsiteOnly` (type: `boolean`):

Find businesses whose Facebook page does not list a website. Pages with unreadable contact information are skipped.

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

Keep pages with at least this many followers. Pages with an unknown count are skipped.

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

Keep pages with at most this many followers. Pages with an unknown count are skipped.

## `verifiedOnly` (type: `boolean`):

Keep pages with a Facebook verification badge.

## `adsStatus` (type: `string`):

When filtering by ads status, skip pages whose status is unknown.

## `minRatingPercent` (type: `integer`):

Keep pages at or above this rating. Star ratings are converted from a scale of five. Unrated pages are skipped.

## `excludePageIds` (type: `array`):

Page IDs, usernames or page URLs to skip. A matching link is skipped before reading; other aliases are matched when the page ID or username is known.

## `onlyNewPages` (type: `boolean`):

Track saved pages in a named store and skip them on later runs using the same store. The first run establishes the baseline.

## `monitoringStore` (type: `string`):

With Only new pages enabled, give each independent monitor a different store name. Run each monitor one at a time.

## `countryCode` (type: `string`):

Two-letter country of the Google search that finds the pages (gl), e.g. us, gb, de.

## `languageCode` (type: `string`):

Two-letter language of the Google search (hl), e.g. en, de, fr.

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

Apify Proxy datacenter IPs by default: they find each page and read its header. Google is always searched on Apify datacenter IPs.

## `residentialFallback` (type: `boolean`):

On: pages are read on datacenter IPs first, and residential IPs are used only where Facebook refuses every datacenter IP. Off: datacenter only (Facebook may refuse a few more pages).

## Actor input object example

```json
{
  "keywords": [
    "hair salon",
    "yoga studio"
  ],
  "locations": [
    "Chicago"
  ],
  "maxResultsPerSearch": 25,
  "onlyWithEmail": false,
  "onlyWithPhone": false,
  "onlyWithWebsite": false,
  "withoutWebsiteOnly": false,
  "verifiedOnly": false,
  "adsStatus": "any",
  "onlyNewPages": false,
  "monitoringStore": "facebook-page-search-monitor",
  "countryCode": "us",
  "languageCode": "en",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true
}
```

# Actor output Schema

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

No description

## `contacts` (type: `string`):

No description

## `summary` (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 = {
    "keywords": [
        "hair salon",
        "yoga studio"
    ],
    "locations": [
        "Chicago"
    ],
    "maxResultsPerSearch": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("deepmine/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": [
        "hair salon",
        "yoga studio",
    ],
    "locations": ["Chicago"],
    "maxResultsPerSearch": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("deepmine/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": [
    "hair salon",
    "yoga studio"
  ],
  "locations": [
    "Chicago"
  ],
  "maxResultsPerSearch": 25
}' |
apify call deepmine/facebook-page-search --silent --output-dataset

```

## MCP server setup

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