Facebook Profile Scraper (Private & Public) avatar
Facebook Profile Scraper (Private & Public)

Under maintenance

Pricing

$15.00/month + usage

Go to Store
Facebook Profile Scraper (Private & Public)

Facebook Profile Scraper (Private & Public)

Under maintenance

Developed by

Iñigo Garcia Olaizola

Maintained by Community

Extract Facebook private or public profile posts, including text, images, videos, comments, reactions, and shares. Supports scraping tagged people and translations. Use authentication cookies for access. Ideal for market research, sentiment analysis, and social media monitoring.

0.0 (0)

Pricing

$15.00/month + usage

1

Monthly users

23

Runs succeeded

>99%

Response time

12 hours

Last modified

a month ago

🤖 What does this Actor do?

The Facebook Profile Scraper enables you to extract posts from Facebook profiles. This includes:

  • 💬 Post text and metadata
  • 📷 Images and videos
  • 👤 Author details
  • 💬 Comments and replies (optional)
  • ❤️ Reactions (optional)
  • 👀 People tagged in the post (optional)
  • 🌐 Translations to English (optional)

💡 Why scrape Facebook Profiles?

Facebook profiles contain a wealth of information useful for:

  • 📊 Market research and audience analysis
  • 🌍 Social media trend analysis
  • 💬 Sentiment analysis of public discussions
  • 📑 Archiving and research purposes

⚡ How to scrape Facebook Profiles

🔍 Prerequisites

You will need to provide your own Facebook session cookies. Follow the steps below to export your cookies.

  1. Open Google Chrome.
  2. Install the Cookie-Editor Chrome extension.
  3. Go to Facebook and log into your account.
  4. Change the language to English (if not already).
  5. Click the Cookie-Editor extension in your browser.
  6. Click Export to download your cookies as a JSON file.
  7. Copy the JSON content and provide it in the cookies field when running the scraper.

💧 Running the Scraper

  1. Click Try for free.
  2. Enter the URLs of the Facebook profiles you want to scrape.
  3. Paste your exported cookies in the cookies field.
  4. Set the number of posts to scrape (maxItems).
  5. (Optional) Enable scraping of comments, replies, shares, reactions, and tagged people.
  6. Click Run.

📂 Input Parameters

ParameterTypeDescription
urlsarrayList of Facebook profile URLs to scrape (required).
cookiesarrayJSON exported from Cookie-Editor containing authentication cookies.
maxItemsintegerMaximum number of posts to scrape (default: 10).
endDatestringScrape posts until this date (format: YYYY-MM-DD).
commentsbooleanScrape comments (default: false).
repliesbooleanScrape replies to comments (default: false).
sharesbooleanScrape shares (default: false).
reactionsbooleanScrape reactions (default: false).
peopleWithbooleanScrape people tagged in posts (default: false).
translationsbooleanTranslate posts and comments to English (default: false).
proxyConfigurationobjectProxy settings (Apify Residential Proxy recommended).

⚠️ IMPORTANT: Enabling comments, replies, shares, reactions, and peopleWith may significantly increase the runtime.

Example Input:

1{
2  "urls": ["https://www.facebook.com/zuck"],
3  "cookies": [
4    { "name": "c_user", "value": "123456", "domain": ".facebook.com" }
5  ],
6  "maxItems": 20,
7  "comments": true,
8  "reactions": true,
9  "proxyConfiguration": {
10    "useApifyProxy": true,
11    "apifyProxyGroups": ["RESIDENTIAL"]
12  }
13}

📊 Output Example

1{
2  "id": "1234567890",
3  "attached_id": "",
4  "pinned": false,
5  "created_at": "2024-02-01T12:34:56Z",
6  "permalink": "https://www.facebook.com/zuck/posts/1234567890",
7  "author": {
8    "id": "123456",
9    "name": "Mark Zuckerberg",
10    "url": "https://www.facebook.com/zuck",
11    "image": "https://example.com/avatar.jpg"
12  },
13  "message": "Hello, world!",
14  "translation": "",
15  "comment_count": 5,
16  "reaction_count": 20,
17  "share_count": 3,
18  "comments": [
19    {
20      "id": "987654321",
21      "author": { "id": "654321", "name": "John Doe" },
22      "message": "Great post!",
23      "created_at": "2024-02-01T13:00:00Z"
24    }
25  ],
26  "images": [{ "id": "img1", "url": "https://example.com/image.jpg" }],
27  "videos": [{ "id": "vid1", "url": "https://example.com/video.mp4" }],
28  "links": ["https://example.com"],
29  "reactions": [
30    { "author": { "id": "999999", "name": "Jane Doe" }, "reaction_id": "like" }
31  ],
32  "profile_url": "https://www.facebook.com/zuck",
33  "profile_name": "Mark Zuckerberg"
34}

🚀 Proxy Recommendations

Using Apify Residential Proxy is recommended to avoid detection and IP blocking when scraping Facebook. Set up proxy settings under proxyConfiguration.

Scraping Facebook is subject to Facebook's Terms of Service. You should ensure that you have the legal right to scrape any data and comply with all relevant laws and regulations.

🛠️ Troubleshooting

  • Double-check cookie and proxy settings.
  • Refresh cookies frequently to avoid being blocked.
  • Ensure you have access to the Facebook profiles you are scraping.
  • Monitor logs for error messages.
  • Open an issue if you encounter any problems.

Happy Scraping! 🚀

Pricing

Pricing model

Rental 

To use this Actor, you have to 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.

Free trial

3 days

Price

$15.00