# Facebook Profile/Page Scraper (No Cookies) (`mina_safwat/facebook-profile-scraper`) Actor

Want to easily scrape any Facebook profile posts to gather engagement data and see what your competitors are doing on Facebook? This tool is simple and straightforward

- **URL**: https://apify.com/mina_safwat/facebook-profile-scraper.md
- **Developed by:** [Mina](https://apify.com/mina_safwat) (community)
- **Categories:** Automation, Social media, Lead generation
- **Stats:** 173 total users, 13 monthly users, 98.0% runs succeeded, 2 bookmarks
- **User rating**: 4.52 out of 5 stars

## Pricing

from $9.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

### Scrape Facebook Profile Posts

This tool allows you to scrape posts from any Facebook profile. It’s powerful, easy to use, and perfect for collecting engagement data or analyzing competitors’ content.

### Input

The input consists of:

- `url`: The profile url on Facebook.
- `limit`: The maximum number of results to return.
- `startDate`: The start date to begin scraping from.
- `endDate`: The end date to stop scraping at.

### Output

````json
{
  "url": "https://www.facebook.com/reel/625885050263599/",
  "owner_name": "El fútbol",
  "thumbnail": "https://scontent.fdxb3-4.fna.fbcdn.net/v/t15.5256-10/486041056_1153845886438815_1706879142590252092_n.jpg?...",
  "statistics": {
    "reaction_count": {
      "count": 1,
      "is_empty": false
    },
    "comment_count": 0,
    "shares_count": 0,
    "video_view_count": 0
  },
  "post_id": "122150535824513880",
  "id": "122150535824513880",
  "type": "video",
  "permalink_url": "https://www.facebook.com/reel/625885050263599/",
  "video_details": {
    "owner": {
      "owner_as_page": {
        "id": "61565416409159",
        "name": "El fútbol",
        "profile_url": "https://www.facebook.com/solofutbolel10",
        "avatar": "https://scontent.fdxb3-4.fna.fbcdn.net/v/t39.30808-1/461831884_122112468794513880_2537835398059283245_n.jpg?..."
      }
    },
    "title": {
      "text": "Literalmente se tiró un piscinazo #realmadrid #chile #Fútbol #barcelona #speed #messi #México #peru #futbol #cr7"
    },
    "publish_timestamp": 1742771206000,
    "publish_date": 1742771206000
  },
  "scrape_date": "2025-03-24 01:23:37.154791",
  "post_title": "Literalmente se tiró un piscinazo #realmadrid #chile #Fútbol #barcelona #speed #messi #México #peru #futbol #cr7",
  "images": [
    "https://scontent.fdxb3-4.fna.fbcdn.net/v/t15.5256-10/486041056_1153845886438815_1706879142590252092_n.jpg?..."
  ],
  "videos": [
    "https://video.fdxb3-1.fna.fbcdn.net/o1/v/t2/f2/m69/AQMoN5_x6cZFHfpiEr3FYfWMfteU9PrW8UPmHO8tFtcF46zy-rEyobWwiX7X2GEDjJWJMgj3ADp__8XX1w4OBT7-.mp4?..."
  ],
  "video_cover_images": [
    "https://scontent.fdxb3-4.fna.fbcdn.net/v/t15.5256-10/486041056_1153845886438815_1706879142590252092_n.jpg?..."
  ],
  "video_durations": [
    11
  ]
}

### SEO Keywords

facebook profile scraper, facebook page scraper, scrape facebook page posts, facebook competitor analysis, facebook page engagement data, scrape facebook without cookies, facebook business page data, social media competitive intelligence, facebook page posts api, facebook profile data extractor



# Actor input Schema

## `url` (type: `string`):

The URL of facebook profile you want to get the data from.
## `limit` (type: `integer`):

number of posts to scrape
## `startDate` (type: `string`):

Select absolute date in format YYYY-MM-DD
## `endDate` (type: `string`):

Select absolute date in format YYYY-MM-DD

## Actor input object example

```json
{
  "url": "https://www.facebook.com/OrangeEgyptOfficial",
  "limit": 5
}
````

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "url": "https://www.facebook.com/OrangeEgyptOfficial",
    "limit": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("mina_safwat/facebook-profile-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 = {
    "url": "https://www.facebook.com/OrangeEgyptOfficial",
    "limit": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("mina_safwat/facebook-profile-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 '{
  "url": "https://www.facebook.com/OrangeEgyptOfficial",
  "limit": 5
}' |
apify call mina_safwat/facebook-profile-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mina_safwat/facebook-profile-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/MFvJ9odbDYlg7JV4C/builds/22a8ggj3tx0EdcfAw/openapi.json
