# Facebook Pages Search Scraper - Local Businesses by City (`scrapewise/facebook-pages-search-scraper`) Actor

Scrape Facebook Pages search results and local businesses by keyword and city name, no login: Page name, link, verified badge and description, plus category, address, business phone, website, price range, rating and followers from each Page. For lead lists and local market research.

- **URL**: https://apify.com/scrapewise/facebook-pages-search-scraper.md
- **Developed by:** [Scrapewise Data](https://apify.com/scrapewise) (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 $1.09 / 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.
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 - Local Businesses by City

Facebook Pages Search Scraper finds **Facebook Pages and local businesses by keyword and city name**, with no login and no Facebook account. Type what you are looking for (dentist, tree service, coffee shop) and a city in plain words (`Austin, Texas`), and get one row per Page: name, link, verified badge and description, plus the **category, address, business phone, website, opening status, price range, rating and followers** from each Page. It is built for lead lists, local market research and checking who is active in a city.

### At a glance

- **Search by city name.** Write `Manchester, New Hampshire` or `Austin, Texas`. You never need Facebook's numeric location id.
- **Local businesses or all Pages.** `places` (default) returns businesses with a physical location, which follows the city closely. `pages` returns any Page that matches the term.
- **Business details in the same row.** Category, address, business phone, website, opening status, price range, the share of people who recommend it, review count and followers.
- **Many terms and many cities in one run.** Every term is searched in every city, and each row says which search found it.
- **No account, no cookies.** Public Pages only, read as a visitor sees them.
- **Price:** US$ 1.44 per 1,000 Pages, plus US$ 2.00 per 1,000 Pages with details, plus US$ 0.005 per run. Error rows and duplicates are free.

### Quick start

```json
{
  "searchTerms": ["dentist"],
  "locations": ["Austin, Texas"],
  "searchType": "places",
  "maxItems": 40,
  "includePageDetails": true
}
```

Several trades in several cities:

```json
{
  "searchTerms": ["tree service", "landscaping", "roofing contractor"],
  "locations": ["Concord, New Hampshire", "Manchester, New Hampshire", "Nashua, New Hampshire"],
  "maxItems": 40
}
```

Names and links only, faster and cheaper:

```json
{
  "searchTerms": ["coffee shop"],
  "locations": ["Portland, Oregon"],
  "includePageDetails": false
}
```

### Input

| Field | What it does |
|---|---|
| `searchTerms` | What to look for, as you would type it in Facebook search: a trade, a business type or a brand. Each term is searched in each location. |
| `locations` | City names in plain text (`Austin, Texas`, `Manchester, New Hampshire`, `Toronto, Ontario`). Leave empty to search without a city. |
| `searchType` | `places` (default): local businesses with a physical location. `pages`: any Page that matches, including brands and interest Pages. |
| `maxItems` | Pages per search (term + city), default 40. One search shows about 40 to 60 results; for more, add nearby cities or related terms. |
| `includePageDetails` | Default on: opens each Page for category, address, business phone, website, opening status, price range, rating and followers. Off: name, link, badge and description only. |
| `proxyConfiguration` | Keep the default. |

Input names used by other Facebook search tools also work: `searchQueries`, `queries`, `keywords`, `query` for the terms; `location`, `city`, `cities` for the cities; `maxResults` and `limit` for the number of Pages.

### Output fields

| Field | Description |
|---|---|
| `searchQuery` | The search that found the Page (term + city) |
| `searchType` | `places` or `pages` |
| `position` | Order in which the Page appeared for that search |
| `pageId` | Facebook Page id |
| `pageName` | Page name |
| `pageUrl` | Link to the Facebook Page |
| `profilePictureUrl` | Page profile picture |
| `isVerified` | Verified badge |
| `snippet` | Short description shown in the search results |
| `category` | Page category (General Dentist, Tree Cutting Service, Coffee Shop...) |
| `address` | Business address as shown on the Page |
| `companyPhone` | Business phone published on the Page |
| `companyEmail` | Business contact email published on the Page, when it is a company address such as info@ or contact@ |
| `website` | Website linked from the Page |
| `openingStatus` | Opening status at the time of the run (Open now, Closed now...) |
| `priceRange` | Price range shown on the Page ($, $$, $$$) |
| `recommendPercent` | Share of people who recommend the business |
| `reviewCount` | Number of reviews |
| `followers` | Page followers |
| `detailsLoaded` | `true` when the Page details were read |
| `scrapedAt` | Time of collection (UTC) |
| `errorCode`, `error` | Empty on good rows; filled on free error rows |

Fields the Page does not show come back as `null`. A business that hides its phone or has no website has those fields empty.

### One real row

From the search `dentist` in `Austin, Texas` (6 Nov 2026):

```json
{
  "type": "page",
  "searchQuery": "dentist Austin, Texas",
  "searchType": "places",
  "position": 16,
  "pageId": "100063663726096",
  "pageName": "Northwest Austin Family Dentistry",
  "pageUrl": "https://www.facebook.com/NWAustinFamilyDentistry",
  "isVerified": false,
  "snippet": "Professional, family friendly Dental Practice, providing quality Dental services to all our patient",
  "category": "General Dentist",
  "address": "9222 W Parmer Ln, Austin, TX, United States",
  "companyPhone": "(512) 363-5222",
  "companyEmail": "info@nwaustinfamilydentistry.com",
  "website": "https://nwaustinfamilydentistry.com",
  "openingStatus": "Closed now",
  "priceRange": "$$$",
  "recommendPercent": 88,
  "reviewCount": 12,
  "followers": 498,
  "detailsLoaded": true,
  "scrapedAt": "2026-11-06T03:51:14Z",
  "errorCode": null,
  "error": null
}
```

In that run, 20 of 20 dentists came with category, address and website, 19 with a business phone and 17 with the opening status.

### What you can do with it

- **Local lead lists.** Every roofer, dentist or salon in a list of cities, with phone and website, ready for a CRM or a call list.
- **Agencies selling to small businesses.** Find businesses with a Facebook Page and no website, low follower counts or few reviews.
- **Market research.** Count how many businesses of a type are active in each city, their price range and how people rate them.
- **Franchise and expansion studies.** Map competitors before opening in a new city.
- **Data enrichment.** Add Facebook category, rating and followers to a list of local businesses you already have.

### Errors (never charged)

| errorCode | Meaning |
|---|---|
| `NO_RESULTS` | Facebook returned no Page for this search. Try a broader term or a bigger city. |
| `BLOCKED` | Facebook did not answer this search. Run it again in a few minutes. |
| `INVALID_INPUT` | A field has a wrong value (for example a negative `maxItems`). |
| `UNEXPECTED` | Something else went wrong; what was already delivered stays, nothing more is charged. |

### Pricing

Pay per result, no subscription:

| Event | Price |
|---|---|
| Page found (`pagina-entregue`) | US$ 0.00144 per Page (US$ 1.44 per 1,000) |
| Page details (`detalhes-da-pagina`) | US$ 0.002 per Page whose details were read (US$ 2.00 per 1,000) |
| Run start | US$ 0.005 per run |

Examples: 40 dentists in one city with details cost about US$ 0.143. 1,000 Pages names and links only cost US$ 1.445. Error rows, duplicates and Pages whose details could not be read (for the details event) are free. There is no Apify compute or proxy bill on top.

### Integrations, scheduling and AI agents

- **Schedules:** run the same cities every week to catch new businesses.
- **Export:** JSON, CSV, Excel, XML or HTML from the dataset, or straight through the Apify API.
- **Make, n8n, Zapier:** send each new Page to a Google Sheet, a CRM (HubSpot, Pipedrive) or Slack.
- **AI agents:** call it from the Apify MCP server or the Apify API to answer "find 30 plumbers in Miami with a website".

### FAQ

**Do I need a Facebook account, cookies or a location id?**
No. Cities go in plain words and the Actor reads only what a visitor sees.

**How many Pages can I get for one search?**
Facebook shows about 40 to 60 results for one term in one city. To cover a whole area, add nearby cities or related terms (dentist, dental clinic, orthodontist). A Page found by two searches of the same run is delivered and charged once.

**Which is better, `places` or `pages`?**
`places` follows the city closely and returns businesses with an address. `pages` finds more kinds of Pages, but some may be from other places with a similar name.

**Why is the email empty for some businesses?**
Only company addresses such as info@, contact@ or office@ are returned. Many small businesses publish no email at all.

**Does it collect people's profiles, followers or reviews?**
No. It returns Pages and their business details only. It never returns who follows, likes or reviews a Page.

**Can I search outside the United States?**
Yes. Any city name works (`Toronto, Ontario`, `Manchester, UK`, `Sydney, Australia`). Results follow what Facebook shows for that city.

### Limitations

- About 40 to 60 results per search term and city; Facebook does not show more for one search.
- `openingStatus` is the status at the time of the run, not the full opening hours.
- Ratings show as recommendation share and review count, as Facebook shows them; individual reviews are not collected.
- Pages restricted by age or country are skipped.

### Changelog

- **6 Nov 2026, 0.1:** first release. Facebook Pages and local businesses by keyword and city name, Page details (category, address, business phone, website, opening status, price range, rating, followers), many terms and cities per run, free error rows.

# Actor input Schema

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

What to look for, as you would type it in Facebook search: a trade, a business type or a brand (dentist, tree service, coffee shop). Each term is searched in each location.

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

City names in plain text, for example 'Austin, Texas' or 'Manchester, New Hampshire'. No Facebook location id needed. Leave empty to search without a city.

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

'places' returns local businesses with a physical location, which follows the city best. 'pages' returns any Page that matches, including brands, groups of interest and public figures' Pages.

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

Facebook shows about 40 to 60 results for one search; for more, add nearby cities or related terms.

## `includePageDetails` (type: `boolean`):

Open each Page for category, address, business phone, website, opening status, price range, rating and followers. Turn off for names and links only (cheaper, faster).

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

Keep the default.

## Actor input object example

```json
{
  "searchTerms": [
    "dentist"
  ],
  "locations": [
    "Austin, Texas"
  ],
  "searchType": "places",
  "maxItems": 40,
  "includePageDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `resultsCsv` (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 = {
    "searchTerms": [
        "dentist"
    ],
    "locations": [
        "Austin, Texas"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/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"],
    "locations": ["Austin, Texas"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/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"
  ],
  "locations": [
    "Austin, Texas"
  ]
}' |
apify call scrapewise/facebook-pages-search-scraper --silent --output-dataset

```

## MCP server setup

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