# Facebook page contact info (Email, phone, website) \[no-cookies] (`memo23/facebook-page-contact-detail-scraper`) Actor

Get Facebook pages addresses, category, email, mobile, likes, website, ratings, hours open,  check-ins, and phone information and social platform links.

- **URL**: https://apify.com/memo23/facebook-page-contact-detail-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Lead generation, Social media, Integrations
- **Stats:** 83 total users, 2 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$7.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

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

## 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 Detail Scraper

### How it works

This actor allows you to scrape Facebook pages contact details information such as addresses, category, email, mobile, likes, website, ratings, hours open, check-ins, and phone information and social platform links.

It now features a **dual-crawler system**:

1. **CheerioCrawler (Default)**: Extremely fast, HTTP-only scraper. It extracts OpenGraph metadata, nested JSON schemas, and visible text without spinning up a browser. This method does not require cookies.
2. **PuppeteerCrawler (Browser)**: Full browser automation via Puppeteer. Requires cookies, but can sometimes intercept hidden GraphQL queries and render complex dynamic content.

### Features

- **Flexible inputs:** Supports scraping based on multiple inputs, whether it's a full URL (`https://www.facebook.com/humansofnewyork`), a plain string (`humansofnewyork`), or an array of request objects (`[{"url": "villaharmonia.santateresa"}]`).
- **Deep Extraction**: Pulls nested metadata, contact info, follower/following counts, profile pictures, cover photos, and business categories.
- **Customizable**: Choose between the lightning-fast HTTP approach or the robust browser approach based on your needs.

### How to Use

1. Set Up: Ensure you have an Apify account and access to the Apify platform.
2. Specify the Facebook page URLs or usernames you want to scrape. You can add multiple inputs for a broader search scope.
3. (Optional) Configure proxy settings for enhanced reliability (residential proxies recommended).
4. Run the actor and obtain the extracted data in your preferred format (JSON, CSV, Excel).

### Input Data

Here's a simple example of how to set up a search:

```json
{
    "startUrls": [
        "humansofnewyork",
        "https://www.facebook.com/villaharmonia.santateresa",
        {
            "url": "https://www.facebook.com/VoltaRoofing"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
}
```

### Output Structure

The output data typically includes:

```json
[
  {
    "pageUrl": "https://www.facebook.com/humansofnewyork",
    "pageId": "1234567890",
    "title": "Humans of New York",
    "categories": [
      "Page",
      "Arts & Humanities Website"
    ],
    "info": [
      "Humans of New York. 17,164,742 likes · 159,261 talking about this. New York City, one story at a time. \nCreated by Brandon Stanton"
    ],
    "likes": 17164742,
    "followers": 17164742,
    "followings": 159261,
    "messenger": null,
    "address": null,
    "phone": null,
    "email": "hony@example.com",
    "website": "http://www.humansofnewyork.com",
    "rating": null,
    "profilePictureUrl": "https://scontent.fsjj1-1.fna.fbcdn.net/v/t39...",
    "coverPhotoUrl": "https://scontent.fsjj1-1.fna.fbcdn.net/v/t39...",
    "profilePhoto": "https://scontent.fsjj1-1.fna.fbcdn.net/v/t39..."
  }
]
```

### Best Practices

- **Rate Limiting:** Respect Facebook's terms of service by avoiding overly frequent requests.
- **Proxies:** Facebook heavily limits Datacenter proxies. Use Residential proxies for the best success rate.
- **Data Storage:** Utilize Apify's data storage solutions for efficient data management.

# Actor input Schema

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

URLs or page names to start with. (e.g. 'humansofnewyork' or 'https://www.facebook.com/humansofnewyork' or \[{'url': 'humansofnewyork'}])

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

Specifies proxy servers that will be used by the scraper in order to hide its origin.<br><br>For details, see <a href='https://apify.com/apify/web-scraper#proxy-configuration' target='_blank' rel='noopener'>Proxy configuration</a> in README.

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

Language for the scraped data (e.g., en-US, hr-HR, de-DE). This sets the Accept-Language header.

## Actor input object example

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

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

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

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

```

## MCP server setup

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

```

## OpenAPI specification

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