Facebook Pages Scraper avatar
Facebook Pages Scraper
Try for free

7 days trial then $20.00/month - No credit card required now

View all Actors
Facebook Pages Scraper

Facebook Pages Scraper

apify/facebook-pages-scraper
Try for free

7 days trial then $20.00/month - No credit card required now

Facebook scraping tool to crawl and extract basic data from one or multiple Facebook Pages. Extract Facebook page name, page URL address, category, likes, check-ins, and other public data. Download data in JSON, CSV, Excel and use it in apps, spreadsheets, and reports.

What is Facebook Pages Scraper?

It's a simple and powerful tool that allows you to extract basic data from Facebook pages. To get that data, just insert the page URL and click "Save & Start" button. See more Facebook scraping tools if you need to scrape Facebook ads, comments, groups or page reviews.

What Facebook pages data can I extract?

With this Facebook API, you will be able to extract the following data from Facebook:

📝 Page name🔗 Page URL
📮 Address 📞 Contact details
📍 Number of check-ins👍 Number of likes and followers
🎨 Category📢 Mentions

Why scrape Facebook pages?

💪 Competition intelligence

🕵️ Market research or analysis

📈 Monitoring trends and brand sentiment

🤳 Social media analysis

🥸 Identifying hot spots of misinformation

How do I use Facebook Pages Scraper?

Facebook Pages Scraper was designed to be easy to start with even if you've never extracted data from the web before. Here's how you can scrape Facebook data with this tool:

  1. Create a free Apify account using your email.
  2. Open Facebook Pages Scraper.
  3. Add one or more Facebook Page URLs to scrape its info.
  4. Click "Start" and wait for the data to be extracted.
  5. Download your data in JSON, XML, CSV, Excel, or HTML.

For a step-by-step guide on how to scrape Facebook Pages, follow our Facebook Pages Scraper tutorial 📝.

How much will scraping Facebook pages cost you?

When it comes to scraping, it can be challenging to estimate the resources needed to extract data as use cases may vary significantly. That's why the best course of action is to run a test scrape with a small sample of input data and limited output. You’ll get your price per scrape, which you’ll then multiply by the number of scrapes you intend to do.

Watch this video for a few helpful tips. And don't forget that choosing a higher plan will save you money in the long run.

Input

The input for Facebook Pages Scraper should be Facebook Page URLs such as https://www.facebook.com/humansofnewyork/.

Click on the input tab for a full explanation of an input example in JSON.

1{
2  "startUrls": [
3    {
4      "url": "https://www.facebook.com/copperkettleyqr/"
5    },
6    {
7      "url": "https://www.facebook.com/HiltonGardenInnMontrealAirport/"
8    },
9    {
10      "url": "https://www.facebook.com/humansofnewyork/"
11    }
12  ]
13}

Output sample

The results will be wrapped into a dataset which you can find in the Storage tab. Here's an excerpt from the dataset you'd get if you apply the input parameters above:

Facebook pages scraping

And here is the same data but in JSON. You can choose in which format to download your Facebook data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

1[
2  {
3  "categories": [
4    "Hotel"
5  ],
6  "info": [
7    "Hilton Garden Inn Montreal Airport, Ville Saint Laurent, Quebec. 558 likes",
8    "5 talking about this",
9    "7,513 were here. The Hilton Garden Inn Montreal..."
10  ],
11  "likes": 558,
12  "messenger": "https://m.me/228151500028",
13  "posts": [],
14  "title": "Hilton Garden Inn Montreal Airport",
15  "address": "7880 Cote de Liesse, Ville Saint Laurent, QC, Canada +1 514-788-5120",
16  "pageId": "228151500028",
17  "pageName": "HiltonGardenInnMontrealAirport",
18  "pageUrl": "https://www.facebook.com/HiltonGardenInnMontrealAirport/",
19  "phone": "+15147885120"
20},
21{
22  "categories": [],
23  "info": [
24    "The Copper Kettle Restaurant, Regina, Saskatchewan. 2,275 likes",
25    "58 talking about this",
26    "994 were here. Longstanding local restaurant. Mediterranean..."
27  ],
28  "likes": 2275,
29  "messenger": null,
30  "posts": [],
31  "title": "The Copper Kettle Restaurant | Regina SK",
32  "pageId": "100064027242849",
33  "pageName": "copperkettleyqr",
34  "pageUrl": "https://www.facebook.com/copperkettleyqr/",
35  "followers": 2511
36},
37{
38  "categories": [],
39  "info": [
40    "Humans of New York, New York, NY. 17,682,252 likes",
41    "55,738 talking about this. New York City, one story at a time."
42  ],
43  "likes": 17682252,
44  "messenger": null,
45  "posts": [],
46  "title": "Humans of New York | New York NY",
47  "pageId": "100050429952420",
48  "pageName": "humansofnewyork",
49  "pageUrl": "https://www.facebook.com/humansofnewyork/",
50  "followers": 17691051
51}
52]
53...

Do I need proxies to scrape Facebook Pages?

If you run the scraper on the Apify platform, for successful Facebook scraping you will need residential proxies which are included in Apify's monthly Starter plan ($49).

For more details about how our pricing works, platform credits, proxies and usage, see the platform pricing page or this video guide on ▷ how to choose the right subscription plan.

What is the best Facebook scraper?

You can use any of the dedicated scrapers below if you want to scrape specific Facebook data. Each of them is built particularly for the relevant Facebook scraping case be it a group, reviews, comments or ads. Feel free to browse them:

🕵️‍♀️ Facebook Search Scraper🗓 Facebook Events Scraper
🌟 Facebook Reviews Scraper📝 Facebook Posts Scraper
💬 Facebook Comments Scraper👍 Facebook Likes and Reactions Scraper
👥 Facebook Groups Scraper🏞 Facebook Photos Scraper
📢 Facebook Ads Scraper📱 Facebook Pages Info Scraper
#️⃣ Facebook Hashtag Scraperℹ️ Facebook Page Posts Checker

Not your cup of tea? Build your own scraper

Facebook pages scraper doesn’t exactly do what you need? You can always build your own! We have various scraper templates in Python, JavaScript, and TypeScript to get you started. Alternatively, you can write it from scratch using our open-source library Crawlee. You can keep the scraper to yourself or make it public by adding it to Apify Store (and find users for it).

Or let us know if you need a custom scraping solution.

Integrations and Facebook Pages Scraper

Last but not least, Facebook Pages Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Asana, Google Drive, and more.

You can also use webhooks to carry out an action whenever an event occurs, e.g., get a notification whenever Facebook Pages Scraper successfully finishes a run.

Using Facebook Pages Scraper with the Apify API

The Apify API gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule, and run Apify actors. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more. To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPI package.

Check out the Apify API reference docs for full details or click on the API tab for code examples.

Our Facebook scrapers are ethical and do not extract any private user data. They only extract what the user has chosen to share publicly. However, you should be aware that your results could contain personal data. You should not scrape personal data unless you have a legitimate reason to do so.

If you're unsure whether your reason is legitimate, consult your lawyers. You can also read our blog post on the legality of web scraping and ethical scraping.

Your feedback

We’re always working on improving the performance of our Actors. So if you’ve got any technical feedback for Facebook Pages Scraper or simply found a bug, please create an issue on the Actor’s Issues tab in Apify Console.

Developer
Maintained by Apify
Actor metrics
  • 579 monthly users
  • 98.3% runs succeeded
  • 0.6 days response time
  • Created in Feb 2020
  • Modified 5 days ago