# 📘 Facebook Page Contact Info Scraper (`scraper-engine/facebook-page-contact-info-scraper`) Actor

📘 Facebook Page Contact Info Scraper extracts emails, phone numbers & other contact details from Facebook pages. 🚀 Fast, reliable, and great for lead gen, B2B outreach, and market research. 💼📈

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

## Pricing

from $4.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 📘 Facebook Page Contact Info Scraper

Extract **emails, phone numbers, addresses, websites, ratings, likes, followers, Instagram links, business hours, price range, page creation date and ad status** from any **public Facebook Page** — in seconds, as clean structured data. 🚀

No login. No cookies. Just paste page URLs (or usernames) and go.

### 🤔 Why Choose This Actor?

- **🎯 Complete contact pack** — email, phone, address, website and every linked profile in one row.
- **🛡️ Self-shielding proxies** — starts direct, then automatically escalates to datacenter and residential proxies only if Facebook throttles. You don't configure anything.
- **⚡ Bulk & fast** — drop in hundreds of pages; results stream into the dataset live as each page finishes.
- **🧱 Never loses data** — every page is saved the moment it's scraped, so a partial run still gives you everything collected so far.
- **📊 Organized output** — results are split into **Overview**, **Contact Info**, **Business Details** and **Social & Media** views.

### ✨ Key Features

| Feature | Description |
|--------|-------------|
| 📧 Email & 📞 Phone | Public contact details from the page Intro card |
| 📍 Address & 🗺️ Map | Full address + a ready-to-open map link |
| 🌐 Websites | Primary website plus all linked URLs (Google Maps, Instagram, etc.) |
| ⭐ Ratings | Recommendation %, review count and formatted rating text |
| 👍 Likes & 👥 Followers | Audience size, normalized to integers |
| 🏢 Business info | Category, price range, services, opening hours |
| 📅 Transparency | Real page creation date + whether the page runs ads |
| 📸 Social | Instagram handle/URL + profile & cover images |

### 📥 Input

```json
{
  "pages": [
    "https://www.facebook.com/copperkettleyqr/",
    "humansofnewyork"
  ],
  "language": "en-US",
  "proxyConfiguration": { "useApifyProxy": true }
}
```

| Field | Type | Description |
|-------|------|-------------|
| `pages` | array | **Required.** Facebook page URLs or usernames. Bulk supported. |
| `language` | string | Preferred content language (Accept-Language). Default `en-US`. |
| `proxyConfiguration` | object | *(Advanced)* Apify proxy settings. The actor auto-escalates direct → datacenter → residential. |

### 📤 Output

Each page becomes one dataset record:

```json
{
  "facebookUrl": "https://www.facebook.com/copperkettleyqr",
  "title": "The Copper Kettle Restaurant",
  "category": "Pizza place",
  "categories": ["Pizza place"],
  "phone": "+1 306-525-3545",
  "email": "copperkettle.events@gmail.com",
  "website": "http://www.thecopperkettle.online/",
  "websites": ["https://maps.google.com/...", "https://www.instagram.com/copperkettleyqr", "http://www.thecopperkettle.online/"],
  "address": "1953 Scarth Street, Regina, SK, Canada, Saskatchewan",
  "addressUrl": "https://www.bing.com/maps/...",
  "likes": 3243,
  "followers": 3200,
  "followings": 351,
  "rating": "94% recommend (202 Reviews)",
  "ratingOverall": 94,
  "ratingCount": 202,
  "priceRange": "$$",
  "business_hours": "Closed now",
  "business_services": "Outdoor seating",
  "creation_date": "October 29, 2014",
  "ad_status": "This Page is currently running ads.",
  "instagram": [{ "username": "copperkettleyqr", "url": "https://www.instagram.com/copperkettleyqr" }],
  "profilePictureUrl": "https://scontent.../profile.jpg",
  "coverPhotoUrl": "https://scontent.../cover.jpg",
  "pageId": "100064027242849",
  "facebookId": "100064027242849"
}
```

### 🚀 How to Use (Apify Console)

1. Log in at [console.apify.com](https://console.apify.com) → **Actors**.
2. Open **Facebook Page Contact Info Scraper**.
3. Paste your Facebook page URLs / usernames into **Facebook Page URLs**.
4. (Optional) pick a language, or open **Advanced settings** to set a proxy.
5. Click **Start** ▶️.
6. Watch the live log fill with collected contacts.
7. Open the **Output** tab and export to JSON / CSV / Excel.

### 🤖 Use via API

```bash
curl -X POST "https://api.apify.com/v2/acts/<ACTOR_ID>/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"pages":["https://www.facebook.com/copperkettleyqr/"]}'
```

### 💡 Best Use Cases

- 🧲 Lead generation — build contact lists of local businesses.
- 📈 Market research — categories, ratings and audience size at scale.
- 🗂️ CRM enrichment — attach phone/email/website to known pages.
- 🕵️ Competitive analysis — see who is running ads.

### 💰 Pricing

This actor uses the **Pay-Per-Event** model. You are billed per Facebook page successfully scraped (`row_result`), plus standard Apify platform usage. Failed pages are not charged the result event.

### ❓ FAQ

**Do I need to log in or provide cookies?** No — only public page data is collected.

**A field is `null` — why?** That detail isn't public on that page (e.g. no email listed). The scraper returns everything Facebook exposes publicly.

**Can I pass just usernames?** Yes — `copperkettleyqr` works the same as the full URL.

**Why did it switch to a proxy mid-run?** Facebook throttled a direct request, so the actor automatically shielded itself with a datacenter/residential proxy and continued.

### 🛟 Support & Feedback

Found a bug or want a new field? Open an issue on the actor's **Issues** tab in Apify Console.

### ⚖️ Legal

Only **publicly available** data is collected. You are responsible for compliance with GDPR/CCPA, anti-spam laws and Facebook's Terms of Service.

# Actor input Schema

## `pages` (type: `array`):

Add one or more public Facebook pages — full URLs (https://www.facebook.com/yourpage) or just the username/vanity (yourpage). Bulk input supported. 📥

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

Preferred content language for the pages (sent as Accept-Language).

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

The scraper starts direct (no proxy) and automatically shields itself with datacenter then residential proxies if Facebook throttles. Configure your preferred Apify proxy here.

## Actor input object example

```json
{
  "pages": [
    "https://www.facebook.com/copperkettleyqr/"
  ],
  "language": "en-US",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "pages": [
        "https://www.facebook.com/copperkettleyqr/",
        "humansofnewyork"
    ],
    "language": "en-US",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scraper-engine/facebook-page-contact-info-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 = {
    "pages": [
        "https://www.facebook.com/copperkettleyqr/",
        "humansofnewyork",
    ],
    "language": "en-US",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scraper-engine/facebook-page-contact-info-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "pages": [
    "https://www.facebook.com/copperkettleyqr/",
    "humansofnewyork"
  ],
  "language": "en-US",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scraper-engine/facebook-page-contact-info-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scraper-engine/facebook-page-contact-info-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/lnOcwa2veAQWbRbdK/builds/BpIxDsFSCyd7OQ5wc/openapi.json
