
Facebook Pages Scraper
- apify/facebook-pages-scraper
- Modified
- Users 10.7k
- Runs 1.2M
- Created by
Apify
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 scrape basic data from Facebook pages: category, likes, number of check-ins, address, page name, page URL, and more. To get that data, just insert the page URL and click "Save & Start" button. See more Facebook Scrapers if you need to scrape Facebook ads, comments, groups or page reviews.
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:
- Create a free Apify account using your email.
- Open Facebook Pages Scraper.
- Add one or more Facebook Page URLs to scrape its info.
- Click "Start" and wait for the data to be extracted.
- Download your data in JSON, XML, CSV, Excel, or HTML.
Is there a difference between scraping a Facebook Profile and Facebook Page?
Yes, there is. Facebook Pages are created for businesses, companies, non-profits, and other social causes. Those are the Facebook accounts that strive to provide "public-first" content and are often managed by a group of people. An easy way to distinguish between a Facebook profile and a Facebook page is that pages usually have a category of content and activity they would like to be associated with (news, software, hospitality, etc.) Facebook Pages that are particularly popular often include a blue verification badge. This scraper scrapes basic information from Facebook Pages only.
For a step-by-step guide on how to scrape Facebook Pages, follow our Facebook Pages Scraper tutorial 📝.
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 an input example in JSON.
{
"startUrls": [
{
"url": "https://www.facebook.com/copperkettleyqr/"
},
{
"url": "https://www.facebook.com/HiltonGardenInnMontrealAirport/"
},
{
"url": "https://www.facebook.com/humansofnewyork/"
}
]
}
Output
This mini-scraper will deliver results in a dataset. You can choose in which format to download it: JSON, Excel, HTML, CSV, or XML. Here's an excerpt from the JSON dataset you'd get if you apply the input parameters above:
[
{
"categories": [
"Hotel"
],
"info": [
"Hilton Garden Inn Montreal Airport, Ville Saint Laurent, Quebec. 554 likes",
"3 talking about this",
"7,478 were here. The Hilton Garden Inn Montreal..."
],
"likes": 554,
"messenger": "https://m.me/228151500028",
"posts": [],
"title": "Hilton Garden Inn Montreal Airport",
"address": "7880 Cote de Liesse, Ville Saint Laurent, QC, Canada (514) 788-5120",
"pageId": "228151500028",
"pageName": "HiltonGardenInnMontrealAirport",
"phone": "+15147885120"
},
{
"categories": [
"Arts & Humanities Website"
],
"info": [
"Humans of New York, New York, NY. 17,697,628 likes",
"137,512 talking about this. New York City, one story at a time."
],
"likes": 17697628,
"messenger": "https://m.me/102099916530784",
"posts": [],
"title": "Humans of New York",
"pageId": "102099916530784",
"pageName": "humansofnewyork"
},
{
"categories": [],
"info": [
"The Copper Kettle Restaurant, Regina, Saskatchewan. 2,252 likes",
"19 talking about this",
"980 were here. Longstanding local restaurant. Mediterranean..."
],
"likes": 2252,
"messenger": null,
"posts": [],
"title": "The Copper Kettle Restaurant | Regina SK",
"pageId": "100064027242849",
"pageName": "copperkettleyqr",
"pageUrl": "https://www.facebook.com/copperkettleyqr/"
}
]
...
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 Personal 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.
Want to scrape Facebook ads or page reviews?
You can use 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 Page Ads Scraper | 🌟 Facebook Reviews Scraper 💬 Facebook Comments Scraper | 👥 Facebook Groups Scraper
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, Google Drive, and more.
Or you can 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.
Is it legal to scrape Facebook Pages data?
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.