# Facebook Page Details & Contact Scraper (`dataji/facebook-page-contact-scraper`) Actor

Get contact details and page info from public Facebook Pages without logging in: email, phone (also in E.164), address, website, social links, category, followers, rating, opening status and recent post links. You only pay for pages delivered; failed pages are free.

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

## Pricing

from $2.00 / 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 Details & Contact Scraper

Get **contact details and page info from public Facebook Pages**, with no login and no Facebook account. Paste page links, usernames, page ids **or business websites**, and get one clean row per page: email, phone (also in international E.164 format), address split into street, city, region and postal code, website, social links, category, followers, rating, the latest post with its engagement, and whether the page is active. Optional add-ons give the page's **creation date and whether it is running ads**, and **find the email on the business's website** when Facebook shows none.

**No start fee. Failed, duplicate and filtered-out pages are free.** You only pay for page rows that are delivered, and for an add-on only when it delivers its data.

### What can this Facebook page scraper do?

- 📇 Get a page's **email, phone, address and website** from its Intro section
- ☎️ Get the phone **as shown and in E.164 format** (`(212) 475-4880` → `+12124754880`) for dialers and CRMs
- 🏠 Get the **address split** into street, city, region and postal code (US, Canada, UK and Australia), plus the country code
- 🌐 **Start from business websites**: paste `levainbakery.com` or a whole Google Maps export, and the actor finds each business's Facebook Page and scrapes it
- ✉️ **Find email on website** (add-on): no email on Facebook? The actor checks the business's own website and contact pages
- 📢 **Page transparency** (add-on): creation date, **running ads now: yes/no**, and the confirmed owner, plus a free link to the page's Ad Library
- 📰 Get the **latest post's text, reactions, comments and shares**, its date, and an **activity status** (active, stale or dormant)
- 🎯 **Lead filters**: keep only pages with an email, with a phone, without a website, or real businesses. Filtered pages are free
- ✅ Get **contact flags**: completeness (email / phone / address / website), a 0–4 score, and whether the email is on the business's domain, a role address (info@) or free mail (gmail)
- 🏷️ Get **name, category, page type** (business or other), intro text, verified badge and the company that confirmed it owns the page
- 👥 Get **exact follower counts** (`28,725,641`, not just `28M`), following, "talking about this" and check-ins
- ⭐ Get **rating** (`96% recommend`), **review count**, **price range and level (1–4)**, **open now / closed** status and services
- 📍 Get **latitude and longitude** of the business address
- 🔗 Get **links to recent posts** to feed into our [Facebook Comments Scraper](https://apify.com/dataji/facebook-comments-replies-scraper)
- 🆓 **Failed pages are free**: not found, login-walled and blocked pages return a free error row with the reason and a hint
- 🛡️ **Automatic residential fallback**: if Facebook blocks the default datacenter IPs for a page, its last retry runs on a residential IP, at no extra cost to you
- 📦 Export to **JSON, CSV, Excel, XML or HTML**, or pull the data through the Apify API

### Why use this scraper?

- **Fair billing.** No start fee. You are charged one `page` event per page row delivered, and nothing for pages that fail, are filtered out or are given twice (for example as a link and as an id, or found on two websites). Add-ons are charged only for rows where they delivered data.
- **Ready-to-use leads.** Phones in E.164, addresses split into columns, a country code taken from the address (or the phone), website links unwrapped from Facebook's redirect links, email quality flags and a completeness score per page. The **Lead list** view gives one flat row per page for your CRM.
- **Every column, every time.** Every row has the same keys, with `null` for missing values, so CSV and Excel exports always line up.
- **Price.** **$3.00 per 1,000 pages** on the free plan, down to $2.00 on Gold. Apify's official Facebook Pages Scraper lists $12.00 per 1,000 pages on the free plan and $5.40 on Gold (18 Nov 2026). See **Pricing** and the comparison below.

### How to scrape Facebook pages

1. Click **Try for free**.
2. Paste one or more **Facebook pages** (links, usernames or ids) or **business websites**, or upload a file.
3. Turn on the add-ons and lead filters you want. All are off by default.
4. Keep the default proxy. If Facebook blocks a datacenter IP, the actor retries that page on a residential IP by itself.
5. Click **Start** and download your data when the run finishes.

### Input

| Field | Description |
|---|---|
| **Facebook pages or business websites** | Page links (`https://www.facebook.com/NASA`), id links (`profile.php?id=...`, `/people/.../<id>/`), page share links (`/share/...`), `@usernames`, plain usernames, numeric page ids, or **business websites and bare domains** (`https://levainbakery.com`, `levainbakery.com`). Duplicates are removed. You can also upload a text or CSV file. |
| **Include recent post links** | On by default. Adds the links and dates of the recent posts Facebook includes in the page (usually the latest one). The latest post's text and engagement are always included. |
| **Page transparency** | Add-on, off by default. Creation date, running ads (yes/no) and confirmed owner. One extra request per page; charged per page where the data was returned. |
| **Find email on website** | Add-on, off by default. For pages with no email on Facebook but a website: looks at the site's homepage and at most 2 contact pages. Charged per email found and delivered. |
| **Only pages with an email** / **with a phone** / **without a website** / **Only businesses** | Lead filters, off by default. Pages that don't match come back as free `filteredOut` rows without page data. The email filter is checked after **Find email on website**, so a website email counts. |
| **Max concurrency** | How many pages load at the same time, each through its own proxy IP. Default 5. |
| **Proxy configuration** | Apify Proxy (datacenter) by default, which worked for 11 of 11 real pages in our tests. With the default, a page that is still blocked after two datacenter tries gets its last try on Apify residential proxy automatically, included in the price. If you pick your own proxy group, country or proxy URLs, the actor uses exactly that and nothing else. |
| **Country of the automatic residential retry** | Two-letter country code of that residential retry. Default `US`. |

#### Example: Facebook pages

```json
{
    "startUrls": [
        { "url": "https://www.facebook.com/NASA" },
        { "url": "https://www.facebook.com/RussAndDaughters" },
        { "url": "@LevainBakery" },
        { "url": "100064809453726" }
    ],
    "includeRecentPostUrls": true,
    "includeTransparency": true,
    "maxConcurrency": 5,
    "proxyConfiguration": { "useApifyProxy": true }
}
```

#### Example: business websites and domains

Give the business's website and the actor finds its Facebook Page (the link in the site's header or footer, or on its contact page), then scrapes the Page as usual. Each row says which website it came from (`inputWebsite`) and where the link was found (`pageFoundVia`).

```json
{
    "startUrls": [
        { "url": "levainbakery.com" },
        { "url": "https://www.magnoliabakery.com/" },
        { "url": "https://franklinbbq.com" }
    ],
    "findEmailOnWebsite": true,
    "onlyWithEmail": true
}
```

Website lookups are free. A website that doesn't link to a Facebook Page gives a free `noFacebookPage` row. If several websites lead to the same Page, you get it once.

#### Recipe: Google Maps results → Facebook contacts

1. Run a Google Maps scraper (for example [Google Maps Scraper](https://apify.com/compass/crawler-google-places)) for your search, such as "bakery in Austin".
2. Export its results and keep the **website** column (CSV, or one website per line in a text file).
3. In this actor, open **Facebook pages or business websites**, choose **Upload file** (or **Link to a file**) and add that file. Google Maps links, image links and the header line in the file are skipped automatically.
4. Turn on **Find email on website** and the lead filters you need, then **Start**.

You get each business's Facebook Page with its email, phone, followers, rating, ad status and activity, and `inputIndex` and `inputWebsite` to match the rows back to your sheet.

### Output example

One row per page:

```json
{
    "inputUrl": "https://www.facebook.com/RussAndDaughters",
    "inputIndex": 0,
    "inputWebsite": null,
    "pageFoundVia": null,
    "pageUrl": "https://www.facebook.com/RussAndDaughters",
    "pageId": "119899578051327",
    "profileId": "100068826391918",
    "username": "RussAndDaughters",
    "name": "Russ & Daughters",
    "category": "Bagel Shop",
    "pageType": "business",
    "intro": "Appetizing Since 1914. 4th Generation Family Business. NYC's Home of Bagels & Lox.",
    "followers": 15137,
    "following": 11,
    "talkingAboutCount": 27,
    "checkinsCount": 20540,
    "verified": false,
    "confirmedOwner": null,
    "createdAt": "2010-06-06",
    "createdAtText": "6 June 2010",
    "runningAds": false,
    "adStatusText": "This Page isn't currently running ads.",
    "adLibraryUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=ALL&view_all_page_id=119899578051327",
    "email": "store@russanddaughters.com",
    "emailSource": "facebook",
    "emailDomainMatchesWebsite": true,
    "isRoleEmail": true,
    "isFreeMailEmail": false,
    "websiteEmail": null,
    "phone": "(212) 475-4880",
    "phoneE164": "+12124754880",
    "websitePhones": null,
    "address": "179 E Houston St, New York, NY, United States, New York",
    "street": "179 E Houston St",
    "city": "New York",
    "region": "NY",
    "postalCode": null,
    "countryCode": "US",
    "latitude": 40.72263,
    "longitude": -73.9883,
    "website": "http://www.russanddaughters.com/",
    "websites": ["http://www.russanddaughters.com/"],
    "socialLinks": [],
    "instagram": null,
    "twitter": null,
    "youtube": null,
    "tiktok": null,
    "linkedin": null,
    "whatsapp": null,
    "priceRange": "$$",
    "priceLevel": 2,
    "openStatus": "Open now",
    "services": [],
    "ratingText": null,
    "recommendPercent": null,
    "reviewCount": null,
    "profilePictureUrl": "https://scontent.xx.fbcdn.net/v/t39.30808-1/898166470_...",
    "coverPhotoUrl": "https://scontent.xx.fbcdn.net/v/t39.30808-6/475417769_...",
    "recentPostUrls": ["https://www.facebook.com/RussAndDaughters/posts/pfbid0gmxEnSqo78rR8Zs6rx6buaF4789rhk127G3HrYU1dUmPWUE68LiuDGC19E3zWRdml"],
    "recentPosts": [
        {
            "url": "https://www.facebook.com/RussAndDaughters/posts/pfbid0gmxEnSqo78rR8Zs6rx6buaF4789rhk127G3HrYU1dUmPWUE68LiuDGC19E3zWRdml",
            "postId": "581873180783557",
            "date": "2023-07-12T10:51:17+00:00",
            "text": "Staff training is in session! See you soon at Russ & Daughters 34th St.",
            "reactionCount": 168,
            "commentCount": 69,
            "shareCount": 10
        }
    ],
    "latestPostText": "Staff training is in session! See you soon at Russ & Daughters 34th St.",
    "reactionCount": 168,
    "commentCount": 69,
    "shareCount": 10,
    "lastPostAt": "2023-07-12T10:51:17+00:00",
    "daysSinceLastPost": 1224,
    "activityStatus": "dormant",
    "contactCompleteness": { "email": true, "phone": true, "address": true, "website": true },
    "contactScore": 4,
    "scrapedAt": "2026-11-18T09:05:12+00:00",
    "error": null,
    "errorMessage": null
}
```

The transparency fields (`createdAt` to `adStatusText`) are filled when the **Page transparency** add-on is on; `adLibraryUrl` is always filled for free.

An input that could not be scraped, or a page left out by a lead filter, gives a free row with the same keys, all `null` except these:

```json
{
    "inputUrl": "https://www.facebook.com/dataji-no-such-page",
    "inputIndex": 4,
    "scrapedAt": "2026-11-17T18:38:12+00:00",
    "error": "loginRequired",
    "errorMessage": "Facebook asked to log in. The page does not exist, was removed or renamed, or Facebook only shows it to logged-in users (for example age- or country-restricted pages)."
}
```

### Output fields

**Input tracking**

| Field | Description |
|---|---|
| `inputUrl` | What you entered, unchanged |
| `inputIndex` | Position of the input in your list (0-based; entries of an uploaded file count from the file's place in the list) |
| `inputWebsite` | For a website input: the website the page was found from (`null` otherwise) |
| `pageFoundVia` | For a website input: the website page where the Facebook link was found (`null` otherwise) |

**Page**

| Field | Description |
|---|---|
| `pageUrl`, `username` | The page's Facebook link and username (`null` for pages without a username) |
| `pageId`, `profileId` | The classic page id and the profile id (`profile.php?id=<profileId>` opens the page) |
| `name`, `category`, `intro` | Page name, category (e.g. `Bakery`) and intro text |
| `pageType` | `business` when the Intro shows an address, phone, price range, opening hours, services or reviews; `other` for brands, media, public figures and creators |
| `followers`, `following` | Follower and following counts as numbers. Followers are exact when Facebook provides them, otherwise rounded (`28M` → `28000000`) |
| `talkingAboutCount`, `checkinsCount` | "Talking about this" and "were here" counts, when the page shows them |
| `verified` | `true` if the page has the blue verified badge |
| `confirmedOwner` | The organisation Facebook confirmed as responsible for the page, when shown |
| `priceRange`, `priceLevel` | Price range as shown (`$$`; the symbol follows the viewer's country), and the level 1–4 |
| `openStatus` | Opening status at the time of scraping, e.g. `Open now`, `Closing Soon` |
| `services` | Services shown in the Intro, e.g. `In-store pickup` |
| `ratingText`, `recommendPercent`, `reviewCount` | Rating as shown (`96% recommend (3,410 reviews)`), the percentage and the review count |
| `profilePictureUrl`, `coverPhotoUrl` | Profile picture and cover photo links |

**Contacts**

| Field | Description |
|---|---|
| `email` | The page's email from its Intro; when Facebook shows none and **Find email on website** found one, the website email |
| `emailSource` | `facebook` or `website`: where `email` came from (`null` when there is no email) |
| `emailDomainMatchesWebsite` | `true` when the email is on the website's own domain (`info@levainbakery.com` for `levainbakery.com`) |
| `isRoleEmail` | `true` for role addresses such as `info@`, `hello@`, `sales@`, `store@` |
| `isFreeMailEmail` | `true` for free mail providers such as Gmail, Yahoo, Outlook |
| `websiteEmail` | The email the add-on found on the website (only looked for when Facebook shows no email) |
| `phone`, `phoneE164` | Phone as shown, and in E.164 (`+12124754880`) when the country is known (see FAQ) |
| `websitePhones` | Phones from `tel:` links on the website, in E.164 when possible (with the add-on; `null` when the website was not checked) |
| `address`, `countryCode` | Address as shown, and the page's ISO country code (`US`, `GR`, ...): from the address, or from the phone number when there is no address |
| `street`, `city`, `region`, `postalCode` | The address split into parts, for US, Canadian, UK and Australian addresses that follow the usual pattern; otherwise `null` (the full `address` is always kept) |
| `latitude`, `longitude` | Coordinates from the page's map link |
| `website`, `websites` | First website, and all websites the page lists |
| `socialLinks` | All social accounts: `[{"network": "instagram", "url": "..."}]` |
| `instagram`, `twitter`, `youtube`, `tiktok`, `linkedin`, `whatsapp` | The first link per network, for easy columns |
| `contactCompleteness` | Which contacts the row has: `{"email": true, "phone": true, "address": false, "website": true}` |
| `contactScore` | How many of the four contacts the row has, from 0 to 4 |

**Transparency (add-on) and ads**

| Field | Description |
|---|---|
| `createdAt`, `createdAtText` | The page's creation date as an ISO date (`2010-06-06`), and as Facebook shows it |
| `runningAds` | `true` if the page is running ads now, `false` if not, `null` if unknown |
| `adStatusText` | The ad status as Facebook shows it |
| `adLibraryUrl` | Link to the page's ads in the Meta Ad Library. Always filled when the page id is known, free, and built by the actor (the Ad Library itself is not scraped) |

**Posts and activity** (free)

| Field | Description |
|---|---|
| `recentPostUrls`, `recentPosts` | Links, ids, dates, text and engagement of the posts Facebook includes in the page, usually one (with **Include recent post links**) |
| `latestPostText` | Text of the latest post Facebook shows |
| `reactionCount`, `commentCount`, `shareCount` | Reactions, comments and shares of that post |
| `lastPostAt`, `daysSinceLastPost` | When it was posted, and how many days ago |
| `activityStatus` | `active` (posted in the last 30 days), `stale` (30–179 days) or `dormant` (180 days or more); `null` when Facebook shows no post |

**Row status**

| Field | Description |
|---|---|
| `scrapedAt` | When the row was made (UTC) |
| `error`, `errorMessage` | `null` for pages. For failed or filtered inputs: the code and the reason (see FAQ) |

The run's **Output** has these views: **Overview**, **Contacts**, **Lead list** (flat columns: name, category, email, phone in E.164, website, city, region, country, followers, running ads, activity, page link), **Transparency & activity** and **Errors**. Each run also saves a **RUN_SUMMARY** record in its key-value store with the number of pages, the count per error code and a plain hint for each error.

### Pricing

This actor uses **pay per event** pricing. There is **no start fee**. You pay for what is delivered:

| Event | What it is | Free plan | Bronze | Silver | Gold |
|---|---|---|---|---|---|
| `page` | One page row delivered | $3.00 / 1,000 | $2.60 / 1,000 | $2.30 / 1,000 | $2.00 / 1,000 |
| `transparency` | Add-on: transparency data returned for a delivered page | $1.00 / 1,000 | $0.85 / 1,000 | $0.70 / 1,000 | $0.50 / 1,000 |
| `website-email` | Add-on: an email found on the website and delivered | $2.00 / 1,000 | $1.70 / 1,000 | $1.40 / 1,000 | $1.00 / 1,000 |

Per page that is $0.0030 on the free plan ($0.0020 on Gold), plus $0.0010 for transparency ($0.0005 on Gold) and $0.0020 per website email found ($0.0010 on Gold).

**Examples:**

- 500 local business pages on the free plan: 500 × $0.0030 = **$1.50**
- The same 500 pages with transparency, where 480 returned it: $1.50 + 480 × $0.0010 = **$1.98**
- 10,000 pages on Gold with **Find email on website**, where 2,000 pages had no Facebook email and 900 of those had one on their website: 10,000 × $0.0020 + 900 × $0.0010 = **$20.90**

**Never charged:** error rows (not found, login required, blocked, invalid input, not a Page, no Facebook Page on the website), pages filtered out by your lead filters, pages given twice, website lookups, add-ons that found nothing, and the Ad Library link. Proxy costs are included, also when a page needs the residential fallback. The run stops cleanly before your spending limit: room for each page and the add-ons you turned on is set aside before the page is loaded, and the status message tells you how many inputs were left.

### How does it compare with the official Facebook Pages Scraper?

An honest side-by-side with Apify's [Facebook Pages Scraper](https://apify.com/apify/facebook-pages-scraper) (`apify/facebook-pages-scraper`), as of 18 Nov 2026:

| | This actor | Official Facebook Pages Scraper |
|---|---|---|
| Name, category, intro, email, phone, address, website, followers, rating, profile and cover photo | ✅ | ✅ |
| Page transparency: creation date, running ads, confirmed owner | ✅ (add-on, $1.00 / 1,000 Free) | ✅ |
| Ad Library reference per page | ✅ ready link, free | ✅ Ad Library id |
| Phone in E.164 format (`+12124754880`) | ✅ | ❌ |
| Address split into street, city, region, postal code | ✅ | ❌ |
| Contact completeness flag, 0–4 score and email quality flags | ✅ | ❌ |
| Exact follower count (`28,725,641`, not `28M`) | ✅ | ❌ |
| Latitude and longitude | ✅ | ❌ |
| All social links sorted by network (Instagram, X, YouTube, TikTok, LinkedIn, WhatsApp) | ✅ | ❌ |
| Business websites as input (finds the Facebook Page) | ✅ | ❌ |
| Email from the business's website when Facebook shows none | ✅ (add-on) | ❌ |
| Latest post text and engagement, activity status | ✅ | ❌ |
| Price per 1,000 pages | **$3.00** Free / **$2.00** Gold | $12.00 Free / $5.40 Gold |

### Use cases

- **Local lead lists**: emails and phones of restaurants, shops, salons and other local businesses
- **Google Maps → Facebook**: turn a Google Maps export into Facebook contacts, followers, ratings and ad status (see the recipe above)
- **Agency prospecting**: find businesses **without a website**, pages that are **not running ads**, or **dormant** pages that need help with social media
- **Competitor and brand monitoring**: follower counts, ratings, ad status and the latest posts of a list of pages
- **Comment analysis**: send `recentPostUrls` to the [Facebook Comments Scraper](https://apify.com/dataji/facebook-comments-replies-scraper)

### FAQ

#### Do I need a Facebook account?

No. The actor only reads what Facebook shows to a visitor who is not logged in. It never logs in, never uses cookies from an account, and never tries to get around login walls, bot checks or security checks.

#### What don't logged-out pages show?

Some things Facebook only shows to logged-in users, so no logged-out scraper can get them:

- **Likes count**: new-style Pages show followers, not likes. `followers` is the number to use.
- **Star rating**: new-style Pages show "96% recommend" instead of stars. `recommendPercent` and `reviewCount` hold it.
- **Review texts** and reviewer names.
- **Messenger, booking and other buttons** in the page header, and the **full weekly opening hours** (only the current `openStatus` is shown).
- **Ads in the Ad Library**: logged out it answers with a bot check, so the actor does not load it. You get `runningAds` (with the transparency add-on) and a ready `adLibraryUrl` to open in your browser.

#### Can I scrape personal profiles?

No. This actor is for Facebook **Pages** (businesses, brands, organisations, public figures). A personal profile gives a free `notAPage` row, and personal profile links on websites are ignored.

#### Which pages fail, and why?

Each failed input gets one free error row with an `error` code. The run's `RUN_SUMMARY` record counts them and gives a hint for each code.

| Code | Meaning |
|---|---|
| `loginRequired` | Facebook asked to log in. This happens when the page **does not exist** (Facebook does not say "not found" to logged-out visitors), was renamed or removed, or is only shown to logged-in users: **age-restricted pages** (alcohol, gambling and similar brands), **country-restricted pages**, and unpublished pages. A security checkpoint also ends here. **Tip:** open the link in an incognito (private) window; if it asks you to log in there, no logged-out scraper can read it. |
| `notFound` | The page or id does not exist (Facebook sent the visitor to its home page, or answered 404). |
| `blocked` | Facebook did not return the page after 3 tries on 3 different proxy IPs (with the default proxy, the last try is already on a residential IP), or what it returned had no Page data (for example a link that leads to a post or group). Try again later, or with the Page link itself. |
| `notAPage` | The link is a personal profile. Personal profiles are not scraped. |
| `noFacebookPage` | A website input whose homepage and contact pages don't link to a Facebook Page, or that could not be loaded. |
| `filteredOut` | The page did not match your lead filters. Not charged, and the row holds no page data. |
| `invalidInput` | Not a Facebook Page link, username, id or website: for example a group or event link, a post, reel or video link that does not name a page (`/share/p/...`, `permalink.php`, `watch`), or an Instagram or Google Maps link. A post link under a page name, like `facebook.com/NASA/posts/...`, gives that page's row. |
| `failed` | An unexpected problem while reading the page. Please report it in the **Issues** tab. |

#### How does the website lookup work?

For a website input the actor loads the site's homepage like a normal browser, without cookies, and takes the Facebook Page link (usually in the header or footer). If there is none, it tries the site's contact or about page. It loads at most 3 pages per website, waits between them, and never charges for them. Share buttons, Facebook plugins and pixels, group, event and post links, and links that look like a personal profile are ignored; a `profile.php?id=` link is used only when it is the only one.

#### How does "Find email on website" choose the email?

It reads `mailto:` links and emails written on the homepage and up to 2 contact pages (a page already loaded for the website lookup is reused). It prefers an email on the website's own domain, then general inboxes (`info@`, `hello@`, `sales@`), then other addresses. Image names that look like emails (`logo@2x.png`), placeholders (`you@example.com`) and no-reply addresses are dropped. You are charged only when an email is found and delivered in the row.

#### Which proxy does it use?

By default, Apify's datacenter proxy, which is fast and worked for every real page in our tests. If Facebook still blocks a page after two tries on fresh datacenter IPs, the actor makes its third and last try on an Apify residential IP (in the US, or the country you set). You don't need to change anything, and it costs you nothing extra. The transparency request of a page uses the same IP as the page itself. Business websites go through Apify's datacenter proxy. Login walls and security checks are never retried on another proxy. If you choose your own proxy settings, the actor uses exactly those for Facebook.

#### Why is `phoneE164` empty when there is a phone?

E.164 needs the country. The actor uses the country in the page's address, then the website's country domain (like `.de` or `.fr`), and numbers written in the North American style `(212) 475-4880`. If none of these is there, guessing could give a wrong number, so `phoneE164` stays `null` and `phone` still has the number as shown.

#### Why is the price range `££` instead of `$$`?

Facebook shows the price symbol of the viewer's country. Use `priceLevel` (1–4), which is the same everywhere.

#### Why is there usually only one post?

Facebook includes only one post in the page it sends to logged-out visitors: the newest post that is not pinned. `activityStatus` is based on it. To get more posts and their comments, use the post links with our [Facebook Comments Scraper](https://apify.com/dataji/facebook-comments-replies-scraper).

#### Some pages have no email or phone. Is that a bug?

Usually not. Many pages simply don't list them. Turn on **Find email on website** to look on the business's website, and use `contactScore` or the lead filters to keep only the pages you need. If a page shows a contact on Facebook that the actor missed, please open an issue with the page link.

#### Can I scrape groups or posts?

No. This actor is for Facebook **Pages**. For comments on posts, use the [Facebook Comments Scraper](https://apify.com/dataji/facebook-comments-replies-scraper).

#### Can I use it through the API?

Yes. You can start runs and download results with the [Apify API](https://docs.apify.com/api/v2), the Apify JavaScript and Python clients, or integrations like Make, Zapier and Google Sheets. Add `?view=leads` to the dataset items URL for the flat lead list.

### Is it legal to scrape Facebook pages?

This actor only collects information that businesses and organisations publish on their public Facebook Pages, as shown to any visitor who is not logged in. It does not log in and skips personal profiles. Still, please use the data responsibly:

- **Personal data.** The contact details of sole traders, freelancers and small family businesses can be personal data under the **GDPR** (EU and UK) and similar laws. You need a lawful basis, such as legitimate interest, to store and use them, and you must honour people's rights, including the right to object.
- **Outreach.** If you contact people with the data, follow the rules for marketing messages: **CAN-SPAM** for email and the **TCPA** for calls and texts in the US, and the GDPR and ePrivacy rules in Europe. Respect do-not-call lists and opt-outs.
- **Facebook's terms.** Facebook's terms restrict automated collection. You are responsible for how you use this actor and the data.

You can read more in Apify's blog post on [the legality of web scraping](https://blog.apify.com/is-web-scraping-legal/), and check with a lawyer if you are unsure.

**Removal requests.** If your information appears in output from this actor and you want it removed, or have a privacy question, email **privacy@dataji.io**. We aim to answer within 30 days.

### Need something custom?

This actor is one of many data tools we build at Dataji. If you need something different, we can build it for you, whether that's a change to this actor or a scraper for any other website or data source.

Popular requests include:

- finding Facebook Pages by keyword, category or city, then scraping their contacts
- extra fields, filters or checks, such as email validation
- scheduled runs that track follower and rating changes over time
- delivery straight to Google Sheets, your CRM or a webhook

These are only examples. If the data is online, we can most likely collect it for you. Tell us what you're trying to build through the [contact form](https://dataji.io/contact-us/) or email support@dataji.io. For bugs or questions about this actor, please use the **Issues** tab.

### Support

Found a bug or need a field that is missing? Open an issue in the **Issues** tab and we'll take a look.

# Changelog

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

# Actor input Schema

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

Facebook Pages to scrape, one per line. Accepted: page links (https://www.facebook.com/NASA), id links (https://www.facebook.com/profile.php?id=100044561550831, /people/.../<id>/), page share links (https://www.facebook.com/share/...), @usernames, plain usernames and numeric page ids. You can also give a business website or bare domain (https://levainbakery.com or levainbakery.com): the actor finds the Facebook Page the site links to and scrapes it (website lookups are free; a site without a Page link gives a free 'noFacebookPage' row). Duplicates are removed. You can upload a text or CSV file, for example the website column of a Google Maps export; Google Maps and image links in the file are skipped. Group and event links, and post, reel or video links that don't name a page, are not Pages and come back as free 'invalidInput' rows.

## `includeRecentPostUrls` (type: `boolean`):

Add the links (and dates) of the recent posts that Facebook includes in the page itself, usually the latest one. Paste them into our Facebook Comments Scraper to get the comments. The latest post's text, reactions, comments, shares and the page's activity status are always included, at no cost.

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

Add the page's creation date, whether it is running ads right now, and the confirmed owner, from the page's public transparency section (one extra request per page). Charged as a 'transparency' event only for pages where this data was returned. The Ad Library link (adLibraryUrl) is always included for free.

## `findEmailOnWebsite` (type: `boolean`):

For pages that list no email on Facebook but have a website: look for the email on the website's homepage and at most 2 contact pages. Charged as a 'website-email' event only when an email is found and delivered. Phones found on the site are added free (websitePhones).

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

Deliver only pages with an email (from Facebook, or from the website when 'Find email on website' is on). Other pages come back as free 'filteredOut' rows without page data.

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

Deliver only pages that list a phone on Facebook. Other pages come back as free 'filteredOut' rows.

## `onlyWithoutWebsite` (type: `boolean`):

Deliver only pages that list no website (for example to sell web design). Other pages come back as free 'filteredOut' rows.

## `onlyBusinesses` (type: `boolean`):

Deliver only business pages: pages whose Intro shows an address, phone, price range, opening hours, services or reviews. Brands, media, public figures and creators come back as free 'filteredOut' rows.

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

How many pages are loaded at the same time, each through its own proxy IP. Higher is faster; lower is gentler and less likely to be blocked.

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

Apify Proxy (datacenter) is used by default. With the default, a page that is still blocked after two datacenter tries gets its last try on Apify residential proxy automatically, at no extra cost. If you choose a proxy group, country or your own proxy URLs, the actor uses exactly that. Business websites are always loaded through Apify datacenter proxy when Apify Proxy is on.

## `residentialCountry` (type: `string`):

Two-letter country code (for example US, GB, DE) of the residential IP used for the automatic last retry when you keep the default proxy. Facebook shows prices and some labels in the viewer's country style. Default US.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/NASA"
    },
    {
      "url": "https://www.facebook.com/RussAndDaughters"
    }
  ],
  "includeRecentPostUrls": true,
  "includeTransparency": false,
  "findEmailOnWebsite": false,
  "onlyWithEmail": false,
  "onlyWithPhone": false,
  "onlyWithoutWebsite": false,
  "onlyBusinesses": false,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialCountry": "US"
}
```

# Actor output Schema

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

One row per input: page details, or an error row (free) for pages that could not be scraped.

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

Email, phone, address, website and social links per page.

## `leads` (type: `string`):

Flat lead columns: name, category, email, phone, website, city, region, country, followers, running ads, activity, page link.

## `transparency` (type: `string`):

Creation date, ad status and Ad Library link, and the latest post's date and engagement.

## `errors` (type: `string`):

Why an input failed (not found, login required, blocked, invalid input, no Facebook Page on the website) or was filtered out. These rows are free.

# 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 = {
    "startUrls": [
        {
            "url": "https://www.facebook.com/NASA"
        },
        {
            "url": "https://www.facebook.com/RussAndDaughters"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataji/facebook-page-contact-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 = {
    "startUrls": [
        { "url": "https://www.facebook.com/NASA" },
        { "url": "https://www.facebook.com/RussAndDaughters" },
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("dataji/facebook-page-contact-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 '{
  "startUrls": [
    {
      "url": "https://www.facebook.com/NASA"
    },
    {
      "url": "https://www.facebook.com/RussAndDaughters"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call dataji/facebook-page-contact-scraper --silent --output-dataset

```

## MCP server setup

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