Facebook Comments Scraper

  • apify/facebook-comments-scraper
  • Modified
  • Users 270
  • Runs 37.3k
  • Created by Author's avatarApify

Extract data from hundreds of Facebook comments from one or multiple Facebook posts. Get comment text, timestamp, likes count and basic commenter info. Download the data in JSON, CSV, Excel and use it in apps, spreadsheets, and reports.

Free trial for 7 days

Then $40.00/month

No credit card required now

Facebook Comments Scraper

Free trial for 7 days

Then $40.00/month

What is Facebook Comments Scraper?

It's a simple and powerful tool that allows you to scrape data from Facebook comments: post ID, post URL, post text, comment text, likes count, and more. To get that data, just insert the page URL and click "Save & Start" button.

Why scrape Facebook comments?

  • Analyze social media and identify hot spots of misinformation or hate speech
  • Conduct market research or analysis
  • Monitor competition
  • Track brand sentiment and shifts in cutsomer engagement

How do I use Facebook Comments Scraper?

Facebook Comments 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 Comments Scraper.
  3. Add one or more Facebook page/profile URLs to scrape its comments.
  4. Click "Start" and wait for the data to be extracted.
  5. Download your data in JSON, XML, CSV, Excel, or HTML.

Input

The input for Facebook Comments Scraper should be URLs of Facebook pages you want to scrape images from. Click on the input tab for an input example in JSON.

{
  "persistCookiesPerSession": false,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "resultsLimit": 5000,
  "startUrls": [
    {
      "url": "https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl"
    }
  ],
  "useSessionPool": true,
  "viewOption": "RANKED_UNFILTERED",
  "maxRequestRetries": 10
}
...

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:

{
  "postId": "6375219342552112",
  "postTitle": "Humans of New York",
  "postDescription": "(2/3) “I knew nothing about gardening. But I knew how to google, so I looked up some easy stuff to plant. Turns out it’s hard to mess up herbs. So I went to the clearance rack at Home Depot and got...",
  "id": "Y29tbWVudDo2Mzc1MjE5MzQyNTUyMTEyXzE0NjYzOTU1NzA0MDQ2NDQ=",
  "feedbackId": "ZmVlZGJhY2s6NjM3NTIxOTM0MjU1MjExMl8xNDY2Mzk1NTcwNDA0NjQ0",
  "date": "2021-08-15T19:55:18.000Z",
  "text": "Love when a HONY post is someone using their “15 minutes” to tell us about some other, under-appreciated person.",
  "profilePicture": "https://scontent-lga3-2.xx.fbcdn.net/v/t39.30808-1/310920901_3428235147397581_7835739098603487981_n.jpg?stp=cp1_dst-jpg_p32x32&_nc_cat=104&ccb=1-7&_nc_sid=7206a8&_nc_ohc=TDMg8JhYBuYAX9P9msV&_nc_ht=scontent-lga3-2.xx&oh=00_AfCsLniTU2988pjJ66r5IuYAXh6LJG3TYn0vMnfsF3S5oQ&oe=63A5AE75",
  "likesCount": 23,
  "facebookUrl": "https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl"
},
{
  "postId": "6375219342552112",
  "postTitle": "Humans of New York",
  "postDescription": "(2/3) “I knew nothing about gardening. But I knew how to google, so I looked up some easy stuff to plant. Turns out it’s hard to mess up herbs. So I went to the clearance rack at Home Depot and got...",
  "id": "Y29tbWVudDo2Mzc1MjE5MzQyNTUyMTEyXzIwNzI2MjU0MTM2NjU1NQ==",
  "feedbackId": "ZmVlZGJhY2s6NjM3NTIxOTM0MjU1MjExMl8yMDcyNjI1NDEzNjY1NTU=",
  "date": "2021-08-16T08:52:07.000Z",
  "text": "Some of the little things that blossom and change lives, impact communities, started with literally nothing, but hearts, hands, heads and smiles.",
  "profilePicture": "https://scontent-lga3-2.xx.fbcdn.net/v/t39.30808-1/317478563_10228788676639361_2383479652173028258_n.jpg?stp=cp0_dst-jpg_p32x32&_nc_cat=100&ccb=1-7&_nc_sid=7206a8&_nc_ohc=TLYvmzuvC9QAX_7V1cQ&_nc_ht=scontent-lga3-2.xx&oh=00_AfBaSwG7mxpukIrYQvnnhl1OKATMCXETTRbR8lIfUUO4rA&oe=63A6DBF7",
  "likesCount": 166,
  "facebookUrl": "https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl"
},
{
  "postId": "6375219342552112",
  "postTitle": "Humans of New York",
  "postDescription": "(2/3) “I knew nothing about gardening. But I knew how to google, so I looked up some easy stuff to plant. Turns out it’s hard to mess up herbs. So I went to the clearance rack at Home Depot and got...",
  "id": "Y29tbWVudDo2Mzc1MjE5MzQyNTUyMTEyXzE2NzU0ODU5ODczNTA2NA==",
  "feedbackId": "ZmVlZGJhY2s6NjM3NTIxOTM0MjU1MjExMl8xNjc1NDg1OTg3MzUwNjQ=",
  "date": "2021-08-15T19:57:29.000Z",
  "text": "“There are 55 fast food restaurants in this community, but not a single supermarket.”\n\nTHAT. \nThat is a massive problem. Not just in large cities, but in medium and small cities all across North America.  Our poorest and most underserved neighbourhoods are food deserts, and fresh food is more expensive than processed.  ",
  "profilePicture": "https://scontent-lga3-2.xx.fbcdn.net/v/t1.6435-1/179533939_10157860640051269_2204501445514654659_n.jpg?stp=cp0_dst-jpg_p32x32&_nc_cat=104&ccb=1-7&_nc_sid=7206a8&_nc_ohc=jOYkKQ2e7FIAX9mYRmn&_nc_ht=scontent-lga3-2.xx&oh=00_AfARAdFg1E_WsQqOW7NXkfkYmKUQBb9CFrJwqw80x8RapQ&oe=63C91ECE",
  "likesCount": 856,
  "facebookUrl": "https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl"
},
{
  "postId": "6375219342552112",
  "postTitle": "Humans of New York",
  "postDescription": "(2/3) “I knew nothing about gardening. But I knew how to google, so I looked up some easy stuff to plant. Turns out it’s hard to mess up herbs. So I went to the clearance rack at Home Depot and got...",
  "id": "Y29tbWVudDo2Mzc1MjE5MzQyNTUyMTEyXzE1NjE3OTY5OTg5MTY2Mw==",
  "feedbackId": "ZmVlZGJhY2s6NjM3NTIxOTM0MjU1MjExMl8xNTYxNzk2OTk4OTE2NjM=",
  "date": "2021-08-15T21:32:06.000Z",
  "text": "“…the plants are just a byproduct. We’re trying to grow healthy children.”\nWhat a mission. Your success has more impact than you’ll ever know, and this HONY story inspires us all to find something to grow…",
  "profileUrl": "https://www.facebook.com/melissa.j.estes.1",
  "profilePicture": "https://scontent-lga3-2.xx.fbcdn.net/v/t1.18169-1/19399612_10214320211505585_5170589227918153218_n.jpg?stp=cp0_dst-jpg_p32x32&_nc_cat=100&ccb=1-7&_nc_sid=7206a8&_nc_ohc=7hGpyYtdLSsAX-uSECO&_nc_ht=scontent-lga3-2.xx&oh=00_AfCZ5ZxzDtxwEN6I6_KgM2-WZXNY8RwdvfzLmWP0NIDySg&oe=63C91C52",
  "likesCount": 4,
  "facebookUrl": "https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl"
},
...

How much will it cost me to scrape Facebook Comments?

Based on Apify’s pricing at the time of writing, the Personal plan ($49) would allow you to scrape comments from about 10-20k posts monthly. If you run the scraper on the Apify platform, for successful Facebook scraping you will need residential proxies which are included in Personal plan.

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 groups or posts?

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, posts or photos. Feel free to browse them:

| | | |:-: |:-: | | 👥 Facebook Groups Scraper | 🌟 Facebook Reviews Scraper | | 🏞 Facebook Photos Scraper | 📝 Facebook Posts Scraper |

Integrations and Facebook Comments Scraper

Last but not least, Facebook Comments 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 Comments Scraper successfully finishes a run.

Using Facebook Comments 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, such as email addresses, gender, or location. 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.

Industries

See how Facebook Comments Scraper is used in industries around the world