# Facebook Page Search Scraper: Pages by Keyword (`automation_craft/facebook-page-search-scraper`) Actor

Facebook Page search by keyword, no login: public Pages Facebook's search lists for your words, with name, id, link, picture, badge (none on another route's rows). Add-ons: contacts (category, followers, address, phone, e-mail, website), Ad Library facts. City and country filters. Pay per Page.

- **URL**: https://apify.com/automation_craft/facebook-page-search-scraper.md
- **Developed by:** [Automation Craft](https://apify.com/automation_craft) (community)
- **Categories:** Lead generation, Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 13 total users, 7 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.80 / 1,000 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 Scraper: Pages by Keyword

**Facebook Page search by keyword, without a login or cookies.** Type the words a buyer would type (dentist london, boulangerie paris, yoga studio, nike) and get every public Facebook Page that Facebook's own Page search lists for them: the Page's id, name, link, username, blue badge, profile picture and the description Facebook shows in its results, in Facebook's own order (once Facebook refuses or does not answer its search in a run, the rows of the rest of that run come from other search routes, with the Page's picture and no blue badge or description: see When Facebook refuses the search). Turn on the **Page details** add-on for each Page's public contact and basic info (category, followers, address, phone, e-mail, website, rating with its review count, hours line, price range, other accounts, classic page id) and the **Page transparency** add-on for the facts Meta's Ad Library shows (whether it runs ads now, when the Page was created, its name changes, its admins' countries, its linked Instagram account).

Built for lead lists of local businesses (every dentist, bakery or plumber a keyword finds, filtered to a city and to Pages with an e-mail or without a website), for mapping a niche or a competitor set, and for research. Every keyword gets a free coverage row that says how many Pages Facebook listed and why the list ended. You pay per Page delivered; repeats, Pages your filters leave out and keywords that find nothing are never charged.

### Quick start

1. Open the Actor and type one or more keywords in **Keywords** (one per line), for example `dentist london`.
2. Set **Pages per keyword** (100 when left out). Facebook ends a keyword's list by itself after about 45 to 500 Pages, and lists nothing for some trades (see below).
3. For contact data turn on **Page details (add-on)**, then add filters if you want them: **Locations in the address** (London), **Countries in the address** (GB), **Only Pages with an e-mail**, **Only Pages without a website**, **Minimum followers**.
4. Click **Start**. Each Page is one row of the dataset; download it as JSON, CSV or Excel, or read it through the Apify API.

### What you get

One row per Facebook Page (`type: "page"`), one free coverage row per keyword (`type: "coverage"`) and a free run summary (`type: "summary"`).

| Field | What it is | Filled (measured) |
|---|---|---|
| `pageId` | Facebook's id of the Page, as text | 100 percent |
| `name` | the Page's name | 100 percent |
| `url` | the Page's link (its username link, or facebook.com/people/<name>/<id>/) | 100 percent |
| `username` | the Page's username when its link has one | 48 percent |
| `isVerified` | Facebook's blue badge in the search results (null on rows from the other search routes) | 100 percent of Facebook's own rows (6 percent true) |
| `profilePictureUrl` | the Page's picture (on rows from the other search routes, the one the Page's check shows) | 100 percent of Facebook's own rows, about 91 percent of route rows |
| `description` | the description line Facebook shows in its results (null on rows from the other search routes) | 77 percent of Facebook's own rows |
| `searchQuery`, `searchedAs`, `rank`, `pass` | the keyword, the words sent, the Page's place in the search's order (Facebook's, or the other route's on its rows), the walk it came from | 100 percent |
| `source` | `facebook_search` (Facebook's own Page search), `second_route` or `third_route` (other search routes, when Facebook refuses its search: see below), or `page_link` (a Page link you gave) | 100 percent |

With the **Page details** add-on (`detailsStatus: "read"`), measured on a 100 Page dentist london run on Apify (November 2026: Facebook listed 99 Pages, all 99 read, through the About section):

| Field | What it is | Filled |
|---|---|---|
| `category`, `categories` | the Page's Facebook categories | 100 percent |
| `followers`, `followersMax`, `followersText` | the follower count as Facebook writes it (1.2K) and the range it means (1,200 to 1,299) | 90 percent |
| `address`, `addressMapUrl` | the address the Page shows, and its map link | 72 percent |
| `phone`, `phones` | the phone numbers with their labels | 69 percent |
| `rating`, `ratingPercent`, `reviewCount` | Facebook's rating line (92% recommend (28 reviews), or Not yet rated) and its numbers | 76 percent (12 percent with a recommend share) |
| `website`, `websites` | the websites the Page shows | 64 percent |
| `email`, `emails` | the e-mail addresses the Page shows | 52 percent |
| `hoursStatus` | the hours line Facebook shows a logged out visitor (Open now, Closed now, Always open) | 56 percent |
| `priceRange`, `services`, `serviceArea`, `languages`, `whatsappNumbers` | as the Page shows them | 23 percent and less |
| `otherAccounts` | the Page's other accounts (Instagram, TikTok ...) with their links | 13 percent |
| `classicPageId` | the classic page id (the one the Ad Library and the Graph API use) | 100 percent |
| `followersExact`, `talkingAbout`, `wereHere`, `pageHeadStatus` | from the Page's main page: the exact follower count, and the talking about this and were here counts where Facebook shows them (were here on Pages that are a place) | 70, 14 and 16 percent (the main page read for 74 of 99 Pages) |
| `detailsSource` | where the details came from: `about_section` (in English runs with Apify's default exits the Page's About section is read first, with the classic id and the follower count from the Page's embed) or `contact_page` (the Page's contact page, when the About section could not be read, and in other languages or with other proxies) | 100 percent of read rows |
| `coverPhotoUrl`, `businessPageActive`, `contactPageUrl`, `followingText`, `otherFields` | as served (the cover photo and the business flag come with the contact page only) | varies |

With the **Page transparency** add-on (`transparencyStatus: "read"`): `runningAds` and `activeAdsCount` (ads running now), `pageCreatedAt`, `nameChangeCount` and `lastNameChangeAt`, `adminCountries`, `instagramUsername` and `instagramFollowers`, `adLibraryVerification`, `adLibraryUrl`.

The coverage row of each keyword gives `pagesFound`, `pagesDelivered`, `pagesCharged`, `alreadyDelivered` (found again by this keyword after another delivered them), `filteredOut` by reason, `pagesBeyondCap`, `walks` (each walk's results pages, new Pages and how it ended), `stoppedBy` and `complete`.

#### How deep a keyword goes

Facebook's logged out Page search ends a keyword's list by itself, and it does not end it in the same place twice. Measured on 2026-11-05: three searches of hotel listed 152, 420 and 489 Pages (501 in all), two of restaurant 334 and 333 (358 in all), dentist london from 96 to 263. **Walks per keyword** reads a keyword again on a fresh Facebook search session and delivers only the Pages no walk of the run delivered, so the extra walks only ever add Pages and repeats are free. For more Pages, add keywords (dentist london, dental clinic london, dentist camden).

#### When Facebook refuses the search

Facebook sometimes refuses its search to a whole pool of addresses for a few minutes. When it refuses four of Apify's datacenter exits in a row, the search goes on through Apify residential exits for ten minutes, then back. A keyword whose first page Facebook still refuses goes to the other search routes when the run can use them (below), and so do the keywords after it; a keyword Facebook refuses later ends with the Pages Facebook gave it. Only the Pages delivered are charged, and a keyword that ends early is named on its coverage row and in the run's status message.

When Facebook refuses its Page search on every exit tried (or does not answer it on any), the run goes on through a second search route. It finds Facebook Page links for the keyword; each link is confirmed as a Facebook Page before it becomes a row, and the details and transparency add-ons read it as usual. The second route lists fewer Pages per keyword: 1 to 75 Pages for the keywords measured in November 2026, where Facebook's own search lists 45 to 500. Its rows say `source: "second_route"`, its coverage rows say so in a note and are never `complete`, and the status message names the switch. When the second route is spent or fails, a third route is asked (its rows say `source: "third_route"`), only when the run's earlier Pages have paid for it. When no route answers for two keywords in a row, or none is left, the remaining keywords end free on the skipped row (`search_routes_spent`) and your Page links are still read. The other routes run only with Apify's default exits, no search country and no excluded words (their results do not carry the Page's own description to judge the words on, so a run with excluded words reads Facebook's own search only); Walks per keyword apply to Facebook's own search only, so put the place in the keyword (dentist london uk). Their rows carry the Page's picture from its check and no blue badge or description (null), so Verified only leaves them out.

#### Location: what works logged out

Facebook ignores its own location filter for a logged out visitor (measured on datacenter and residential exits: the same Pages with and without it) and answers nothing to its category filter. So this Actor offers location two ways that work:

- **Locations in the address** and **Countries in the address** read each Page's own address (the Page details add-on). Measured: of 74 dentist london Pages read, 44 had London in their address (6 of them London, KY or Ontario, so add a country), 11 were elsewhere and 19 showed no address. Of 70 bakery chicago Pages, 25 had a Chicago address, 25 another city's and 20 none. A Page without an address is left out unless you turn on **Keep Pages without an address**.
- **Search from country** sends the search from Apify residential exits of a country: Facebook then lists the Pages it shows a visitor there. dentist london searched from Britain listed 303 Pages, 204 of them not in the list Facebook shows from the US.

A details filter is judged on each Page's details, and the Pages it leaves out are free. A run carries only a small amount of unpaid work for that (about a few contact reads before the first Page that passes pays its way), so a filter can end a keyword early with `stoppedBy: "work_allowance"` on its coverage row, and a long list of keywords that find nothing can end the run with the rest named on a free row; the run is then charged its start only. Measured on Apify on 2026-11-05: Locations London and Countries GB on dentist london delivered 50 of 50 Pages in two runs and stopped after one read in another, when Facebook had refused the search on several exits first; adding Only Pages with an e-mail (which keeps about a quarter of the Pages) delivered none in five runs. For filtered lists, run the keyword without the filters and filter the dataset, or add keywords that name the city (dentist london, dental clinic london).

#### Trades Facebook does not list logged out

Facebook's logged out Page search answers no Page for some trades: bar, pub, beer, brewery, winery, distillery, nightclub, cocktail bar, liquor store, pet shop and butcher answered an empty list on 2026-11-05 (bar london 2 Pages, pub london 1), while wine shop and dog grooming answered 15 and 16. Their coverage row says `stoppedBy: "no_results"` with a note that names this. Give such Pages as Page links: they are read directly. Once Facebook refuses or does not answer its search in a run, the other search routes are asked for the rest of that run and may list some (brewery gave 12 to 50 Pages that way in November 2026).

Facebook matches **any one word** of a keyword in a Page's name, so dentist london also finds Pages named only Dentist or only London. **Name must match the keyword** narrows it to Pages whose name holds every word, or the phrase.

### How much does it cost to scrape Facebook Pages?

You pay per event, with the Store discount of your Apify plan:

| Event | Free plan | Bronze | Silver | Gold |
|---|---|---|---|---|
| Page (per 1,000) | $2.52 | $2.30 | $2.09 | $1.80 |
| Page details add-on (per 1,000) | $1.70 | $1.55 | $1.40 | $1.20 |
| Page transparency add-on (per 1,000) | $0.56 | $0.51 | $0.46 | $0.40 |
| Actor start (per run) | $0.008 | $0.008 | $0.008 | $0.008 |

Platinum and Diamond plans pay the Gold price. The Actor start event has no plan discount. The Store pricing card shows these prices per 1,000 events: "$1.80 / 1,000" on the Page row means one Page costs 0.18 cents at Gold.

Worked example at Gold: 1,000 Pages with the Page details add-on cost $1.80 + $1.20 + $0.008 = $3.008; with the transparency add-on as well, $3.408.

What is never charged: a Page found again (by another keyword, another walk or a Page link), a Page your filters leave out, a keyword that finds nothing, a Page details or transparency read that failed, and the coverage, status and summary rows. Every run pays the Actor start event.

### Input

| Setting | What it does |
|---|---|
| `searchQueries` | Keywords, one per line, or Facebook Page search links (facebook.com/search/pages/?q=...). Page links among them are read directly. Also read as `queries`, `keywords`, `keyword`, `query`, `search`, `searchTerms`, `categories`, `startUrls`. |
| `pageUrls` | Facebook Page links or Page ids read directly, from their About section or contact page (needs the Page details add-on; a Page and a Page details event each). |
| `maxResultsPerQuery` | Pages per keyword (100 when left out, up to 5,000). Also `resultsLimit`, `resultsPerQuery`, `maxResults`, `max_results`. |
| `maxItems` | Pages per run over all keywords. |
| `searchPasses` | Walks per keyword (1 to 3). |
| `maxSearchPages` | Results pages per walk (about 16 Pages each). Also `maxPages`. |
| `searchCountry` | Search from Apify residential exits of a country (GB, US, FR ...). |
| `includePageDetails` | The Page details add-on. Also `includeDetails`, `fetchDetails`, `enrichPages`. |
| `includePageTransparency` | The Page transparency add-on (needs the Page details add-on). Also `includeTransparency`, `includeAdStatus`. |
| `language` | The language the contact page is read in (en-US when left out). Texts come back in it; the numbers read from them (followers, rating) are read in English only. |
| `verifiedOnly`, `nameMatch`, `excludeWords` | Free filters on the search results; Page links you give are read as given. A run with excluded words reads Facebook's own search only (see When Facebook refuses the search). |
| `pageCategories`, `locations`, `countries`, `includePagesWithoutAddress`, `minFollowers`, `maxFollowers`, `requireEmail`, `requirePhone`, `requireWebsite`, `withoutWebsite` | Filters on the Page details (need the add-on on). |
| `maxConcurrency` | Pages whose details (About section or contact page) are read at once (1 when left out, up to 4; more contact pages at once meet Facebook's login wall more often). |
| `proxyConfiguration`, `requestDelayMs`, `maxRunSeconds` | Advanced. |

Example input:

```json
{
    "searchQueries": ["dentist london"],
    "maxResultsPerQuery": 50,
    "includePageDetails": true
}
```

An input this Actor cannot use (a setting name it does not know, a value of the wrong kind, a details filter without the add-on) is refused with a free status row that says why; only the run's start fee is charged.

### FAQ

#### How do I find all Facebook Pages of a business type in a city?

Search the trade and the city (bakery chicago) and turn on the Page details add-on: each row carries its address, and Facebook's search matches any word of the keyword, so filter the dataset on the city, or set Locations in the address and Countries in the address to let the Actor leave the others out free. A filter that leaves out most Pages can end a keyword early (see Location above); add keywords for more Pages (bakery, cake shop chicago).

#### Does Facebook Page search work without logging in?

Yes. This Actor reads Facebook's own Page search (and, only once Facebook refuses or does not answer it in a run, other search routes for the Page links of the rest of that run, each confirmed as a Facebook Page) and, with the Page details add-on, each Page's public About section or contact page, as a logged out visitor, with no account, cookies or Meta API token. Facebook's own search page asks a logged out visitor to log in; the search behind it answers without one.

#### Can I get the e-mail and phone number of Facebook Pages?

Yes, when the Page shows them in its public contact and basic info (its About section or contact page): turn on the Page details add-on. Measured on 99 dentist Pages read on Apify in November 2026, 52 percent showed an e-mail and 69 percent a phone number. Only Pages with an e-mail keeps just those. You are responsible for a lawful use of the personal data in the results (GDPR included).

#### Why do I get Pages from other cities?

Facebook's logged out Page search matches any one word of a keyword in a Page's name and ignores its own location filter. Use Name must match the keyword for Pages named with every word, or the address filters (the Page details add-on) for Pages in a place.

#### How many Pages can I get for one keyword?

As many as Facebook's search lists for it, which ends by itself: 45 to 501 Pages in one search in November 2026, and a second search on a fresh session lists more (Walks per keyword). When Facebook refuses its search, the Pages come from a second search route, fewer per keyword (1 to 75 when measured). For more Pages, add keywords.

#### Why does this Actor run with limited permissions?

It runs with Apify's limited permissions, the least privilege an Actor can have: it can read and write only its own run's storages (the dataset of Pages and the run's own record), and nothing else in your account.

### What this Actor does NOT do

- It does not log in or take cookies, and it reads only what Facebook shows a logged out visitor (once Facebook refuses or does not answer its search in a run, the Page links of the rest of that run come from other search routes, each confirmed as a Facebook Page).
- It does not use Facebook's own location or category filters (Facebook ignores them for a logged out visitor or answers nothing); location is read from each Page's address.
- It does not use other search routes by choice: Facebook's own search comes first; other search routes are asked only once Facebook refuses or does not answer it, for the rest of that run, and every row names the route that found it (`source`).
- It does not read people, posts, groups, events or places: it reads Pages. Our listings for Facebook posts by keyword, Facebook groups and Facebook events read those (linked below).
- It does not give the weekly opening hours table or the Messenger link: a logged out visitor sees only the hours line (Open now, Closed now) and no Messenger link.
- It does not find Pages that Facebook's logged out search does not list: bars, pubs, breweries, wineries, liquor stores, nightclubs, pet shops and butchers answered no Page when measured; give their Page links instead (once Facebook refuses or does not answer its search in a run, the other search routes may list some).
- It does not track Pages from one run to the next (no monitor or alert mode): schedule it with Apify's scheduler and keep the Pages you have by their `pageId`.
- It does not deliver numbers read from a translated text: with a language other than English the follower and rating texts are delivered as Facebook writes them.

### Use it through the API

```bash
curl -X POST "https://api.apify.com/v2/acts/automation_craft~facebook-page-search-scraper/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["dentist london"], "maxResultsPerQuery": 20, "includePageDetails": true}'
```

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_TOKEN>' });
const run = await client.actor('automation_craft/facebook-page-search-scraper').call({ searchQueries: ['dentist london'], includePageDetails: true });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((r) => r.type === 'page'));
```

```python
from apify_client import ApifyClient
client = ApifyClient('<YOUR_TOKEN>')
run = client.actor('automation_craft/facebook-page-search-scraper').call(run_input={'searchQueries': ['dentist london'], 'includePageDetails': True})
pages = [r for r in client.dataset(run['defaultDatasetId']).iterate_items() if r['type'] == 'page']
```

### Changelog

See the Changelog tab. 0.1: first release.

### More data tools by Automation Craft

- [Facebook posts by keyword, no login](https://apify.com/automation_craft/facebook-search-scraper)
- [Facebook Page ID Finder: Names to Page IDs](https://apify.com/automation_craft/facebook-page-id-finder)
- [Facebook Posts Scraper - Page Posts, No Login](https://apify.com/automation_craft/facebook-posts-scraper)
- [Facebook Groups Scraper: Posts of Public Groups](https://apify.com/automation_craft/facebook-groups-scraper)
- [Facebook Events Scraper: Pages, Cities, Search](https://apify.com/automation_craft/facebook-events-scraper)
- [Meta Ads Library Scraper - Meta Ad Library API](https://apify.com/automation_craft/meta-ads-library-scraper)
- [Instagram User Search Scraper: Profiles by Keyword](https://apify.com/automation_craft/instagram-user-search-scraper)

# Changelog

This Actor's version history is a separate document: https://apify.com/automation_craft/facebook-page-search-scraper/changelog.md

# Actor input Schema

## `searchQueries` (type: `array`):

The words to search Facebook's Page search for, one per line: a trade and a place (dentist london, boulangerie paris), a brand (nike), a niche (yoga studio). Facebook's own Page search links (facebook.com/search/pages/?q=...) are read too. Facebook matches ANY ONE word of a keyword in a Page's name, so dentist london also finds Pages named only Dentist or only London: use the name match setting or the location filters to narrow it. Also read under the keys queries, keywords, keyword, query, search, searchTerms, categories and startUrls. Up to 500 a run; one keyword given twice is read once.

## `pageUrls` (type: `array`):

Facebook Page links read directly, without a search: facebook.com/<username>, facebook.com/people/<name>/<id>/, facebook.com/profile.php?id=<id>, or a Page id. Each is read from its public About section or contact page (the Page details add-on: turn it on), so each delivered Page is charged a Page and a Page details event. Page links put among the keywords (or startUrls) are read the same way. Read after the keyword searches; a link to a Page the run already delivered is free.

## `maxResultsPerQuery` (type: `integer`):

The most Pages delivered for one keyword (Pages left out by a filter are not counted). 100 when left out. Facebook ends a keyword's list by itself after about 45 to 500 Pages (measured in November 2026): a higher number never brings more than Facebook shows. Also read as resultsLimit, resultsPerQuery, maxResults, max_results.

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

The most Pages one run delivers over all keywords. No limit when left out (the per keyword number and your charge limit bound the run).

## `maxSearchPages` (type: `integer`):

The most results pages one walk of a keyword reads (Facebook shows about 16 Pages a page). No limit when left out: the walk reads to Facebook's own end of the list or the Pages per keyword. Also read as maxPages.

## `searchPasses` (type: `integer`):

How many times each keyword is searched, each time on a fresh Facebook search session. Facebook's list differs from one search to the next (a second search of dentist london added 98 Pages to 96): every extra walk delivers only Pages no walk of the run delivered, so repeats are never charged. A later walk ends after 10 results pages in a row that bring no Page to deliver. 1 when left out.

## `searchCountry` (type: `string`):

A two letter country code (GB, US, FR, DE ...). Facebook answers a logged out search with the Pages it shows to a visitor of that country, and lists more local Pages for it (dentist london from Britain: 303 Pages, 204 of them not in the list Facebook shows from the US). The search calls then go out from Apify residential exits of that country; the Page details add-on keeps the proxy below. Left out: Apify's datacenter exits, which Facebook sees as the US.

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

Reads each delivered Page's public details: in English runs with Apify's default exits its About section first, with its Contact and basic info page as the fallback (and the only door in other languages or with other proxies): category, followers and likes, address and its map link, phone numbers, e-mail addresses, websites, rating with its review count, the hours line Facebook shows (Open now, Closed now, Always open), price range, services, service area, languages, WhatsApp numbers, other accounts (Instagram, TikTok ...) and the classic page id; the cover photo comes with the contact page only. Charged as a Page details event per Page whose details were read; a Page whose details neither door could read is not charged for them (a keyword's Page is then delivered without them; with a details filter, or as a Page link, it is left out free). Also read as includeDetails, fetchDetails, enrichPages.

## `includePageTransparency` (type: `boolean`):

Adds each Page's facts from Meta's Ad Library to its row: whether it runs ads now and how many (runningAds, activeAdsCount), the date the Page was created, its name changes, the countries its admins are in, its linked Instagram account and its Ad Library link. Read by the classic page id the Page details add-on reads, so it needs that add-on on. Charged as one Page transparency event per Page whose facts were read. Also read as includeTransparency, includeAdStatus.

## `language` (type: `string`):

The language the contact page is read in (the Accept-Language Facebook answers): the texts Facebook translates (categories, the rating and hours lines, the follower text, the country in an address) come back in it. The numbers read from those texts (followers, likes, rating percent, review count) are read in English only, so with another language they stay empty and the follower filters cannot be used. English (en-US) when left out.

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

Delivers only Pages with Facebook's blue badge (in the search results). Also read as onlyVerified.

## `nameMatch` (type: `string`):

Facebook matches any one word of a keyword. all_words keeps only Pages whose name holds every word of it (whole words, case and accents set aside); phrase keeps only Pages whose name holds the words in order. any when left out.

## `excludeWords` (type: `array`):

Pages whose name or description holds any of these words or phrases (whole words, case and accents set aside) are left out, free. A run with excluded words reads Facebook's own search only: when Facebook refuses it, the other search routes are not used.

## `pageCategories` (type: `array`):

Keeps Pages whose Facebook category holds one of these words or phrases (Dentist, Bakery, Real Estate Agent, Restaurant ...; whole words, case set aside). Needs the Page details add-on.

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

Keeps Pages whose address holds one of these places as whole words: a city, a district, a state, a postcode (London, Chicago, IL, 75011). Facebook's search takes no location for a logged out visitor, so the place is read from each Page's own address (the Page details add-on). Pages without an address are left out unless the next setting keeps them. Combine with countries: London alone also matches London, KY. Also read as location, cities, city. Needs the Page details add-on.

## `countries` (type: `array`):

Keeps Pages whose address names one of these countries: two letter codes (GB, US, DE) or English names. Read from each Page's own address (the Page details add-on). Also read as country. Needs the Page details add-on.

## `includePagesWithoutAddress` (type: `boolean`):

With locations or countries set, a Page that shows no address is delivered too (its row says so) instead of being left out. About a quarter of local business Pages show none (19 of 74 dentist london Pages read).

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

Keeps Pages with at least this many followers. Facebook writes large counts cut (1.2K is 1,200 to 1,299): a Page whose count could be on either side of the bound is left out, free. Needs the Page details add-on.

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

Keeps Pages with at most this many followers (small local businesses). The same cut counts rule as above. Needs the Page details add-on.

## `requireEmail` (type: `boolean`):

Keeps Pages that show an e-mail address in their contact and basic info (About section or contact page). Needs the Page details add-on.

## `requirePhone` (type: `boolean`):

Keeps Pages that show a phone number in their contact and basic info (About section or contact page). Needs the Page details add-on.

## `requireWebsite` (type: `boolean`):

Keeps Pages that show a website. Needs the Page details add-on.

## `withoutWebsite` (type: `boolean`):

Keeps Pages that show no website (leads for web design work). Needs the Page details add-on.

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

Apify's datacenter exits by default (Facebook answers them logged out). Apify residential exits of a country, no proxy (the run container's own address) or your own proxy links work too. Also read as proxy.

## `maxConcurrency` (type: `integer`):

How many Pages' details (the Page details add-on: the About section or the contact page) are read at the same time, each from its own exit; the Pages are still delivered in the search's order. 1 when left out: Facebook lets each address of Apify's datacenter exits read only a handful of contact pages, so on them parallel reads meet its login wall far more often (measured: 83 percent of tries with 3 at once against 41 percent with 1). More than 1 helps with your own proxies or residential exits.

## `requestDelayMs` (type: `integer`):

The pause between two search calls of one keyword. 400 when left out.

## `maxRunSeconds` (type: `integer`):

Ends the run after this many seconds with the Pages read so far delivered; each keyword's coverage row says where it stopped.

## Actor input object example

```json
{
  "searchQueries": [
    "dentist london"
  ],
  "maxResultsPerQuery": 10,
  "includePageDetails": false,
  "includePageTransparency": false,
  "language": "en-US",
  "verifiedOnly": false,
  "nameMatch": "any",
  "includePagesWithoutAddress": false,
  "requireEmail": false,
  "requirePhone": false,
  "requireWebsite": false,
  "withoutWebsite": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `items` (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 = {
    "searchQueries": [
        "dentist london"
    ],
    "maxResultsPerQuery": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation_craft/facebook-page-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 = {
    "searchQueries": ["dentist london"],
    "maxResultsPerQuery": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("automation_craft/facebook-page-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 '{
  "searchQueries": [
    "dentist london"
  ],
  "maxResultsPerQuery": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call automation_craft/facebook-page-search-scraper --silent --output-dataset

```

## MCP server setup

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