# Facebook Page Followers Following Count Scraper  Pro (`alpha-scraper/facebook-page-followers-following-count-scraper-pro`) Actor

Facebook Page Followers & Following Count Scraper Pro extracts public Facebook page data including page name, bio, profile picture URL, followers count, and following count. Supports Facebook page URLs and usernames, delivering clean structured output for analytics,monitoring, and reporting.

- **URL**: https://apify.com/alpha-scraper/facebook-page-followers-following-count-scraper-pro.md
- **Developed by:** [Alpha Scraper](https://apify.com/alpha-scraper) (community)
- **Categories:** Real estate, Social media, SEO tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.00 / 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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Followers & Following Count Scraper Pro

**Extract public Facebook Page metadata, follower counts, following counts, page names, usernames, bios, and profile picture URLs in a clean structured format.**

> ✅ Keyword : Facebook Page Followers Count Scraper, Facebook Page Following Count Scraper, Facebook Page Metadata Extractor, Facebook Page Details Scraper, Facebook Page Profile Scraper, Facebook Public Page Data Extractor, Apify Facebook Page Scraper Pro.

---

### 🌟 Overview

**Facebook Page Followers & Following Count Scraper Pro** is an Apify actor designed to help you collect key public data from Facebook pages in a structured, easy-to-use format.

This actor is ideal for users who need:

* Facebook page followers count
* Facebook page following count
* Page name and username
* Page bio / description
* Profile picture URL
* Clean output for analytics, monitoring, lead research, directory building, and dataset enrichment

It is built for **public Facebook page data extraction** and returns results in a simple JSON record per page.

---

### 🔍 What Data This Actor Provides

This actor provides the following public Facebook page fields:

* **Page Name**
* **Page Username**
* **Page URL**
* **Bio / Description**
* **Profile Picture URL**
* **Followers Count**
* **Following Count**
* **Followers Count (Formatted)**
* **Following Count (Formatted)**

These fields help you quickly analyze a page’s visibility, identity, and public profile summary.

---

### 📤 What Outputs It Generates

The actor outputs one record for each provided Facebook page URL or username.

Each output item is a structured JSON object containing the page details and count fields.

#### Output Format Summary

* **One input page = one output record**
* Output is ready for export, filtering, analysis, or downstream automation
* Values are returned in a consistent schema to simplify usage

---

### 🧾 Output Fields Explained

Below is a simple explanation of each output field.

#### `page_name`

The public display name of the Facebook page.

#### `page_username`

The username or handle associated with the page, when available.

#### `page_url`

The normalized Facebook URL used for the page.

#### `bio`

A short public description or page bio.

#### `profile_picture_url`

The URL of the page’s public profile image.

#### `followers_count`

The total followers count returned as a numeric string when available.

#### `following_count`

The total following count returned as a numeric string when available.

#### `followers_count_formatted`

A readable compact version of the followers count, such as `12.5K`, `3.2M`, or `842`.

#### `following_count_formatted`

A readable compact version of the following count, such as `1.2K`, `8.4M`, or `56`.

---

### 🧠 Why Use This Actor?

#### ✅ Benefits

* Saves time by collecting Facebook page details in bulk
* Great for monitoring page popularity and growth signals
* Useful for marketing research and audience analysis
* Helps build datasets for reporting and lead enrichment
* Returns clean, structured output for easy automation
* Supports both Facebook page URLs and usernames

#### 🚀 Advantages

* Simple input format
* Flexible use with URLs or usernames
* Easy-to-read formatted counts
* Useful for both small and large data collection workflows
* Designed for public page metadata collection

---

### ✨ Features & Overview

* Accepts **Facebook page URLs**
* Accepts **Facebook usernames / handles**
* Returns **page metadata** in JSON format
* Includes **followers and following counts**
* Includes **formatted count versions** for easier reading
* Provides **bio** and **profile image URL**
* Built for **public Facebook page data** use cases
* Suitable for **Apify datasets, exports, and integrations**

---

### 🧩 Input

You can provide data in two ways:

1. **Start URLs**
2. **Usernames**

#### Input Fields

##### `startUrls`

List of one or more Facebook page URLs.

**Example:**

* `https://www.facebook.com/rihanna`
* `https://www.facebook.com/shakira`

##### `usernames`

List of Facebook page usernames or handles.

**Example:**

* `katyperry`
* `BillGates`

---

### 📝 Input Sample

```json
{
    "startUrls": [
        {
            "url": "https://www.facebook.com/rihanna"
        },
        {
            "url": "https://www.facebook.com/shakira"
        }
    ],
    "usernames": [
        "emmawatson",
        "jenniferlopez"
    ]
}
````

***

### 📊 Output Sample

```json
[
  {
    "page_name": "Rihanna",
    "page_username": "rihanna",
    "page_url": "https://www.facebook.com/rihanna",
    "bio": "Rihanna. 102,652,788 likes · 20,959 talking about this. rihanna.store",
    "profile_picture_url": "https://scontent.fdxb3-2.fna.fbcdn.net/v/t39.30808-1/625093475_1435201954644046_2662504369043726977_n.jpg?stp=dst-jpg_tt6&cstp=mx458x458&ctp=s458x458&_nc_cat=111&ccb=1-7&_nc_sid=3ab345&_nc_ohc=_UbR4vfWoGUQ7kNvwEFX7Wg&_nc_oc=AdpZ9ZML0CYWqmKnY7Ij2dRLb1xfeSTfvdew6E8GwMT3TIWp4wh4dl4I22BXcBV8750&_nc_zt=24&_nc_ht=scontent.fdxb3-2.fna&_nc_gid=2oywYniPzflsXmZwThvLyA&_nc_ss=7d289&oh=00_Af5UICkDwGC9Iwc7rxD08ta9-QkL_APradrMU30LUcekjw&oe=6A205863",
    "followers_count": "102000000",
    "following_count": "20",
    "followers_count_formatted": "102M",
    "following_count_formatted": "20"
  },
  {
    "page_name": "Shakira",
    "page_username": "shakira",
    "page_url": "https://www.facebook.com/shakira",
    "bio": "Shakira. 122,693,543 likes · 2,444,172 talking about this. #LMYNLWorldTour",
    "profile_picture_url": "https://scontent.fdxb3-3.fna.fbcdn.net/v/t39.30808-1/690603126_1579427603546976_256779936672202477_n.jpg?stp=dst-jpg_tt6&cstp=mx960x960&ctp=s720x720&_nc_cat=1&ccb=1-7&_nc_sid=3ab345&_nc_ohc=z619q0RgeG4Q7kNvwHnzE-T&_nc_oc=AdofpFowdXqM4IDqTOqC0_JxooO0nGDfUuIWkbg2eicRzx4udLBweYoi5emAZyGJ3AE&_nc_zt=24&_nc_ht=scontent.fdxb3-3.fna&_nc_gid=sJl7a1-umkpx17rGM7Y3RQ&_nc_ss=7d289&oh=00_Af4z2Nh1RYWQQTb8p0mTClLMpLLLJpDaselMH4us-j0dLA&oe=6A206D4F",
    "followers_count": "122000000",
    "following_count": "72",
    "followers_count_formatted": "122M",
    "following_count_formatted": "72"
  },
  {
    "page_name": "Emma Watson",
    "page_username": "emmawatson",
    "page_url": "https://www.facebook.com/emmawatson",
    "bio": "Emma Watson. 32,740,681 likes · 2,480 talking about this. Emma’s official Facebook page is currently dormant and is not being updated.",
    "profile_picture_url": "https://scontent.fdxb3-1.fna.fbcdn.net/v/t1.6435-1/57192362_2469931443025731_3740869721147310080_n.jpg?stp=dst-jpg_tt6&cstp=mx603x603&ctp=s603x603&_nc_cat=106&ccb=1-7&_nc_sid=3ab345&_nc_ohc=SKKVVnsfRhsQ7kNvwEX3Pm8&_nc_oc=Adq2oBWRWS2BQKaRcjBjbIJxLml6yWkfejAHuDCwXxlYVVcOAG1mPeJdeaJAB_sNzf4&_nc_zt=24&_nc_ht=scontent.fdxb3-1.fna&_nc_gid=L5fH6D-11jsv3H3Yh950dQ&_nc_ss=7d289&oh=00_Af5yBosusx0mkzqjm7aDjNUcLdrQzZxKzfy5QAni_qD94A&oe=6A420B74",
    "followers_count": "32000000",
    "following_count": "11",
    "followers_count_formatted": "32M",
    "following_count_formatted": "11"
  },
  {
    "page_name": "Jennifer Lopez",
    "page_username": "jenniferlopez",
    "page_url": "https://www.facebook.com/jenniferlopez",
    "bio": "Jennifer Lopez. 60,223,694 likes · 428,547 talking about this. SÁLVAME HOY 🎶 con David Guetta & Gabito Ballesteros Ya Disponible 💫 OFFICE ROMANCE coming...",
    "profile_picture_url": "https://scontent.fdxb3-3.fna.fbcdn.net/v/t39.30808-1/702250292_1566641308157922_954519489311767732_n.jpg?stp=cp6_dst-jpg_tt6&cstp=mx1365x1365&ctp=s720x720&_nc_cat=1&ccb=1-7&_nc_sid=3ab345&_nc_ohc=4zeADqO82QwQ7kNvwHKmQLe&_nc_oc=AdpGzxZVfJjze3OWyK7-ZDrO1vUv2ekPpvO77twzCxLUuv8CEu0crs4dIohqQcB9Cwg&_nc_zt=24&_nc_ht=scontent.fdxb3-3.fna&_nc_gid=Zn1geTix2dnWmfxj-Wf2Fg&_nc_ss=7d289&oh=00_Af7FmitmwQGF-CqsYRMYVFhaxtR1Lva4gO9CJazuC872Qw&oe=6A2062E3",
    "followers_count": "60000000",
    "following_count": "124",
    "followers_count_formatted": "60M",
    "following_count_formatted": "124"
  }
]
```

***

### 📌 How to Use This Actor

#### Step 1: Add your Facebook page targets

Provide either page URLs, usernames, or both.

#### Step 2: Run the actor

Start the actor from Apify.

#### Step 3: Review the dataset

Each page will return one structured record.

#### Step 4: Export or connect

Use the output in your dashboards, spreadsheets, APIs, or automation pipelines.

***

### 🎯 Best Practices for Using It

To get the best results, follow these recommendations:

- Use **public Facebook pages** only
- Provide **valid page URLs or usernames**
- Keep usernames clean and correctly spelled
- Use fewer invalid or broken links to reduce failed records
- Prefer pages that are active and publicly visible
- Review the output fields after each run to confirm the expected format
- Use the formatted count fields when you need quick readability
- Use the raw count fields when you need exact numeric processing

***

### ⚠️ Possible Causes of Errors and How to Avoid Them

#### 1. Invalid Page URL or Username

**Cause:** The input page does not exist or the username is incorrect.

**How to avoid it:**

- Double-check spelling
- Make sure the URL points to a real Facebook page

#### 2. Private, Restricted, or Unavailable Page

**Cause:** The page is not publicly accessible.

**How to avoid it:**

- Use public pages only
- Verify the page can be opened normally in a browser

#### 3. Missing Followers or Following Data

**Cause:** Some pages may not expose all fields publicly.

**How to avoid it:**

- Understand that some pages may return `N/A`
- Use alternative pages if those fields are essential

#### 4. Temporary Access Issue

**Cause:** A page may temporarily fail to return expected data.

**How to avoid it:**

- Retry later
- Use fewer inputs per run if necessary

#### 5. Input Format Issues

**Cause:** Incorrect structure in the input JSON.

**How to avoid it:**

- Follow the sample input format carefully
- Use arrays for both `startUrls` and `usernames`

***

### 🧪 Data Quality Notes

- Some fields may be unavailable for specific pages
- When data cannot be found, the output may return `N/A`
- Counts may appear in raw or formatted form depending on availability
- Results may vary from page to page based on what is publicly visible

***

### 🔎 Friendly Use Cases

This actor is a strong fit for people searching for:

- Facebook page followers count extractor
- Facebook page following count checker
- Facebook page details scraper
- Facebook public page metadata extractor
- Apify Facebook page scraper
- Facebook page bio and profile picture extractor
- Facebook page analytics dataset builder
- Facebook page audience research tool

***

### 🏆 Why This Actor Is Useful for Apify Users

This actor is built to provide a clean and practical way to collect Facebook page data in a structured format. It is especially useful when you need quick access to page identity, public description, and follower/following metrics without manually checking each page one by one.

It is simple, focused, and ideal for users who want a **Facebook Page Followers & Following Count Scraper Pro** that produces useful, organized output for analysis and automation.

***

### 📚 Common Questions

#### Can I use usernames instead of URLs?

Yes. You can provide usernames directly in the `usernames` input field.

#### Does it return one record per page?

Yes. Each provided page returns one output record.

#### What if a field is not available?

The actor may return `N/A` for unavailable values.

#### Is the output easy to export?

Yes. The output is structured and suitable for datasets, spreadsheets, and integrations.

***

### 📝 Example Summary

If you provide Facebook page URLs or usernames, this actor returns a clean dataset containing:

- page name
- username
- page URL
- bio
- profile image URL
- followers count
- following count
- formatted followers and following counts

This makes it a powerful tool for anyone looking for a **Facebook Page Followers & Following Count Scraper Pro** on Apify.

***

### 🚀 Final Note

Use this actor whenever you need a reliable and easy-to-read dataset of public Facebook page information. It is designed for fast analysis, simple workflows, and strong SEO visibility on Apify search.

**Keywords:** Facebook Page Scraper, Facebook Followers Count, Facebook Following Count, Facebook Page Metadata, Facebook Public Page Data, Facebook Profile Extractor, Apify Facebook Scraper, Facebook Page Details Tool.

***

## Here my another actors :

### Youtube Iteams:

- [🎶 Youtube Audio Downloader (Video/Shorts)](https://console.apify.com/actors/lTUPL4gmLTDNXBeWw/source)
- [Youtube Video Downloader Advanced](https://console.apify.com/actors/XOpQsUkgGZLGSCJd0/source)
- [Youtube Video Downloader ( Soundless )](https://console.apify.com/actors/gFsczW1QplIquv9eL/source)
- [Youtube Video Downloader](https://console.apify.com/actors/9kZQcUlHZRKp1ilZA/source)
- [Youtube Video Details Scraper](https://console.apify.com/actors/On4VfiWjGnT79clm1/source)
- [Youtube Transcript Ninja (Subtitles) ](https://console.apify.com/actors/eWrsJHhdeEbVHChpX/source)
- [Youtube Thumbnails Downloader & Scraper](https://console.apify.com/actors/YShot3wkL0HJdRkD0/source)
- [Youtube Tags or Hashtags Scraper](https://console.apify.com/actors/O1FU99ID2ccR5wcS8/source)
- [Youtube Tags Scraper](https://console.apify.com/actors/1wVokAhQLbbeeFVfR/source)
- [Youtube Shorts Scraper lite](https://console.apify.com/actors/bOyWDt1IbXZsadWRp/source)
- [Youtube Shorts Downloader Pro](https://console.apify.com/actors/bN1AjNRMops81rGkg/source)
- [Youtube Shorts Comments Scraper](https://console.apify.com/actors/ON1C4qgHaEQEhhEmI/source)
- [Youtube Community Posts Scraper](https://console.apify.com/actors/X38E51BParHFNaCw1/source)
- [Youtube Channel Id Scraper Pro](https://console.apify.com/actors/2uuIEovgGHcYjEKyN/source)
- [Youtube Video Transcript  Scraper ( Subtitles )](https://console.apify.com/actors/IEmSN6FkNn0tw10BA/source)
- [Youtube Video Comments Scraper](https://console.apify.com/actors/URh4zBT1aesfE8QKc/source)
- [Youtube Shorts Scraper  Pro](https://console.apify.com/actors/G4McyHJJzc2TbUSo6/source)
- [Youtube Shorts Scraper](https://console.apify.com/actors/XP0WgKweF1M83FnmR/source)
- [Youtube Channel Scraper](https://console.apify.com/actors/ufMZfwMgyHeaoDdAd/source)
- [YouTube Video Description Extractor](https://console.apify.com/actors/Xqae3CmxqT3HfHaJ5/source)
- [YouTube Hashtag Scraper](https://console.apify.com/actors/d4bYqQ0LWuczEgumx/source)
- [YouTube Description Scraper pro](https://console.apify.com/actors/OVymx0bku0C8gowB0/source)
- [YouTube Comments Scraper | Pay Per Result](https://console.apify.com/actors/ict6AecoJ85T4RthZ/source)
- [YouTube Channel ID Scraper](https://console.apify.com/actors/P9XlG8ylMGqfoelOg/source)

### Tiktok Iteams:

- [Tiktok Video Downloader](https://console.apify.com/actors/dlyQGIrqOracdqOeb/source)
- [Tiktok Video Details Scraper Pro](https://console.apify.com/actors/kZMMAHBehLOdG2FBb/source)
- [Tiktok Profile Scraper](https://console.apify.com/actors/C9mdCvPs7mDV8AYdd/source)
- [TikTok Video Scraper](https://console.apify.com/actors/7NjipRJbS73X9Io90/source)
- [TikTok Profile Videos Scraper](https://console.apify.com/actors/F6ar6Hu5STLp5mdAf/source)
- [TikTok Profile Scraper pro](https://console.apify.com/actors/3fmkMmoCBQ4SBIIAN/source)
- [TikTok Audio Downloader 🎵](https://console.apify.com/actors/jHipu7fQihSVhBE3x/source)

### Snapchat Iteams:

- [Snapchat Video Downloader (Spotlight )](https://console.apify.com/actors/yKz99HNmn4AgmhPOf/source)
- [Snapchat Video  Details Scraper (Spotlight)](https://console.apify.com/actors/fyV48EkRqcNoeq2kH/source)
- [Snapchat Followers Scraper](https://console.apify.com/actors/PxBiNYw0mgZOagGyD/source)
- [Snapchat Profile     Scraper](https://console.apify.com/actors/siCUsZdm6xmc3g7HF/source)
- [Snapchat Profile Scraper  Mini](https://console.apify.com/actors/qhkQO51Cv6iHJxdAs/source)

### Instagram Iteams:

- [Instagram video Downloader + Scraper](https://console.apify.com/actors/zIpixF6ZjlbelQDrY/source)
- [Instagram Video Downloader (Soundlss)](https://console.apify.com/actors/QQkJuhIQp4pexakls/source)
- [Instagram Thumbnail Scraper Video & Reels](https://console.apify.com/actors/z8JOosBY8hlqiUthl/source)
- [Instagram Reels  Downloader](https://console.apify.com/actors/VRbovYCWXTZXuVaN2/source)
- [Instagram Profile URL to Username Converter & Extractor](https://console.apify.com/actors/FOApkedA1VuG6ncno/source)
- [Instagram Profile Scraper](https://console.apify.com/actors/5dvorBkg7ccX95wAg/source)
- [Instagram Post Videos Downloader](https://console.apify.com/actors/h95ZexZ0ifOX4JEYQ/source)
- [Instagram Followers Scraper](https://console.apify.com/actors/c55pdH9mCE02sj7Dg/source)
- [Instagram Audio Downloader](https://console.apify.com/actors/MQRNuEHUqKreEi8gI/source)
- [Instagram Video Scraper + Downloader](https://console.apify.com/actors/63Z5eSy3IxgdIEYOX/source)
- [Instagram Video  scraper Advanced](https://console.apify.com/actors/79ng2nukXLzUn0aWg/source)
- [Instagram Video Details  scraper](https://console.apify.com/actors/VLyBXSwQpHTFwUcds/source)
- [Instagram Reels Details scraper](https://console.apify.com/actors/oGR3xfeXTuIirhdlZ/source)
- [Instagram Followers Scraper Pro](https://console.apify.com/actors/MqW3EtUZXm6OHdvcI/source)

### Facebook Iteams:

- [Facebook reels Downloader  (Separate audio or video)](https://console.apify.com/actors/nuvIRaMeRIzz3cfxK/source)
- [Facebook Video Downloader advanced](https://console.apify.com/actors/2SU8ZuABbAVFNKMZa/source)
- [Facebook Video Details Scraper Advanced](https://console.apify.com/actors/umYouAXm92472jIdY/source)
- [Facebook Video Details Scraper](https://console.apify.com/actors/cQi4k63arffL6Cn0m/source)
- [Facebook Transcript & Subtitle scraper](https://console.apify.com/actors/hMNe1QYDOtcTc95qI/source)
- [Facebook Thumbnail Downloader Video & Reels](https://console.apify.com/actors/9SmYiqGTUia29Yd1Y/source)
- [Facebook Reels Downloader Advanced](https://console.apify.com/actors/3Zdnp9TnvltdoC44T/source)
- [Facebook Reels Details Scraper  Best and  Affordable](https://console.apify.com/actors/nuzr418MKJltywrCh/source)
- [Facebook Reels Details Scraper](https://console.apify.com/actors/OGBA89e5Ki6Y5amko/source)
- [Facebook Page Details Scraper](https://console.apify.com/actors/PL9nP9BrKDSsKwSZF/source)
- [Facebook Audio Downloader](https://console.apify.com/actors/uVrcf4OJ9VW8iCybQ/source)

### Amazon Iteams:

- [Amazon Search Scraper](https://console.apify.com/actors/YcgJR1WP1cHJhHzvH/source)
- [Amazon Product Details Scraper ](https://console.apify.com/actors/1twpltijc10KFaVeb/source)

# Actor input Schema

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

List of one or more Facebook page URLs (e.g. https://www.facebook.com/rihanna).

## `usernames` (type: `array`):

List of Facebook page usernames or handles (e.g. katyperry, BillGates). No URL needed.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/rihanna"
    },
    {
      "url": "https://www.facebook.com/shakira"
    }
  ],
  "usernames": [
    "emmawatson",
    "jenniferlopez"
  ]
}
```

# 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/rihanna"
        },
        {
            "url": "https://www.facebook.com/shakira"
        }
    ],
    "usernames": [
        "emmawatson",
        "jenniferlopez"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/facebook-page-followers-following-count-scraper-pro").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/rihanna" },
        { "url": "https://www.facebook.com/shakira" },
    ],
    "usernames": [
        "emmawatson",
        "jenniferlopez",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/facebook-page-followers-following-count-scraper-pro").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": [
    {
      "url": "https://www.facebook.com/rihanna"
    },
    {
      "url": "https://www.facebook.com/shakira"
    }
  ],
  "usernames": [
    "emmawatson",
    "jenniferlopez"
  ]
}' |
apify call alpha-scraper/facebook-page-followers-following-count-scraper-pro --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Facebook Page Followers Following Count Scraper  Pro",
        "description": "Facebook Page Followers & Following Count Scraper Pro extracts public Facebook page data including page name, bio, profile picture URL, followers count, and following count. Supports Facebook page URLs and usernames, delivering clean structured output for analytics,monitoring, and reporting.",
        "version": "0.0",
        "x-build-id": "4LPNa3jEkpeh6Bx9J"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/alpha-scraper~facebook-page-followers-following-count-scraper-pro/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-alpha-scraper-facebook-page-followers-following-count-scraper-pro",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/alpha-scraper~facebook-page-followers-following-count-scraper-pro/runs": {
            "post": {
                "operationId": "runs-sync-alpha-scraper-facebook-page-followers-following-count-scraper-pro",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/alpha-scraper~facebook-page-followers-following-count-scraper-pro/run-sync": {
            "post": {
                "operationId": "run-sync-alpha-scraper-facebook-page-followers-following-count-scraper-pro",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "List of one or more Facebook page URLs (e.g. https://www.facebook.com/rihanna).",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "usernames": {
                        "title": "Usernames",
                        "type": "array",
                        "description": "List of Facebook page usernames or handles (e.g. katyperry, BillGates). No URL needed.",
                        "items": {
                            "type": "string"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
