Facebook Posts Scraper

  • apify/facebook-posts-scraper
  • Modified
  • Users 401
  • Runs 11.6k
  • Created by Author's avatarApify

Extract data from hundreds of Facebook posts from one or multiple Facebook pages. Get post URL, post text, page URL, timestamp, number of likes, shares, comments, and more. Download the data in JSON, CSV, and Excel and use it in apps, spreadsheets, and reports.

Free trial for 7 days

Then $35.00/month

No credit card required now

Facebook Posts Scraper

Free trial for 7 days

Then $35.00/month

What is Facebook Posts Scraper?

It's a simple and powerful tool that allows you to scrape data from Facebook posts: post text, timestamp, post and page IDs, post and page URLs, number of likes, shares, comments. To get that data, just insert the page URL and click "Save & Start" button.

Why scrape Facebook posts?

  • Competition monitoring to identify what they're doing right, or wrong, and how you can do it better
  • Market research or analysis
  • Monitoring trends and brand sentiment and use the data to inform your investment strategy
  • Social media analysis and identifying hot spots of misinformation

How do I use Facebook Posts Scraper?

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

Please note that this scraper displays the extracted results only at the very end of the run. The rest of the time it will display 0 results. Please be patient until the end of the scraper run to see all the extracted data.


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

  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
  "resultsLimit": 5,
  "startUrls": [
      "url": "https://www.facebook.com/drive4quantix"
  "maxRequestRetries": 10


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:

  "pageId": "100068112949897",
  "postId": "466944912252603",
  "url": "https://www.facebook.com/drive4quantix/posts/pfbid02ivBxXbaZ7DNfC7tFhat93TNwwpfvfzzTnmSQoqxoajevEHx2yhg6SJAPcQWs8ujLl",
  "time": "Sunday, December 11, 2022 at 6:00 AM",
  "timestamp": 1670767206000,
  "likes": null,
  "comments": null,
  "shares": null,
  "text": "Follow this link to see some winter safety tips provided by the FMCSA!",
  "link": "https://bit.ly/3iqmDjb",
  "topLevelUrl": "https://www.facebook.com/100068112949897/posts/466944912252603",
  "facebookUrl": "https://www.facebook.com/drive4quantix"
  "pageId": "100068112949897",
  "postId": "466158022331292",
  "url": "https://www.facebook.com/drive4quantix/posts/pfbid02iMkhqQRVP3nzyUebQ2N1m7EBUze8qmvu2yyYduxRF51ecHZ7PQQHDjzX1dEnBbJ8l",
  "time": "Saturday, December 10, 2022 at 6:00 AM",
  "timestamp": 1670680807000,
  "likes": null,
  "comments": null,
  "shares": null,
  "text": "Self-driving trucks! ๐Ÿ˜ฑ What do y'all think?",
  "link": "https://www.ttnews.com/articles/whos-who-self-driving-truck-development",
  "thumb": "https://www.ttnews.com/sites/default/files/styles/470x246_with_tt_orange_bar_overlay/public/2022-11/collage2.jpg",
  "topLevelUrl": "https://www.facebook.com/100068112949897/posts/466158022331292",
  "facebookUrl": "https://www.facebook.com/drive4quantix"
  "pageId": "100068112949897",
  "postId": "465538395726588",
  "url": "https://www.facebook.com/drive4quantix/posts/pfbid0bmX7VHkTX4rhkaL9ezn69Z6YeSZNWkWcY2biKtLPdhSvhGrQkZyrCHVLgZX9V6kNl",
  "time": "Friday, December 9, 2022 at 10:05 AM",
  "timestamp": 1670609105000,
  "likes": 1,
  "comments": 1,
  "shares": null,
  "text": "GUESS THE SKYLINE!  Here is a hint: We are currently hiring in this location!",
  "link": "https://www.facebook.com/photo.php?fbid=465538385726589&set=a.399657195648042&type=3",
  "thumb": "https://scontent-ord5-1.xx.fbcdn.net/v/t39.30808-6/316820569_465538379059923_6011423444217664892_n.jpg?stp=dst-jpg_p526x296&_nc_cat=105&ccb=1-7&_nc_sid=8024bb&_nc_ohc=HJ_bMDAako0AX_Yljbk&_nc_ht=scontent-ord5-1.xx&oh=00_AfAGd-aPxn33sfhVz6ZJeEN3i-rwoNXznpTyYmlwl1hlmg&oe=639C482D",
  "topLevelUrl": "https://www.facebook.com/100068112949897/posts/465538395726588",
  "facebookUrl": "https://www.facebook.com/drive4quantix"
  "pageId": "100068112949897",
  "postId": "464721612474933",
  "url": "https://www.facebook.com/drive4quantix/posts/pfbid036BPcbMgk6aJ3qi7W3Nd6XtvGZgL4aiV1XZeZ2FKs2Nshj2GPwzUZ5dxcFm3fVKkrl",
  "time": "Thursday, December 8, 2022 at 7:43 AM",
  "timestamp": 1670514209000,
  "likes": 10,
  "comments": null,
  "shares": null,
  "text": "",
  "link": "https://www.facebook.com/quantixscs/photos/a.1019197634776346/6342199975809392/?type=3",
  "thumb": "https://scontent-ord5-1.xx.fbcdn.net/v/t39.30808-6/318808068_6342199972476059_1653342209986332943_n.jpg?stp=dst-jpg_p261x260&_nc_cat=108&ccb=1-7&_nc_sid=2d5d41&_nc_ohc=hP3obH7WQzgAX_EySul&_nc_ht=scontent-ord5-1.xx&oh=00_AfBED5lW-OO6_9f4i1JA9OfrnnKBcrxGXVF1rOKpwcaJ1w&oe=639B390C",
  "topLevelUrl": "https://www.facebook.com/100068112949897/posts/464721612474933",
  "facebookUrl": "https://www.facebook.com/drive4quantix"

How much will it cost me to scrape Facebook Posts?

Based on Apify's pricing at the time of writing, the Personal plan ($49) would allow you to scrape about 20,000-30,000 Facebook posts monthly. For successful Facebook scraping, you will need to use residential proxies (if you run the scraper on the Apify platform).

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 comments or photos?

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

| | | |:-: |:-: | | ๐Ÿ‘ฅ Facebook Groups Scraper | ๐ŸŒŸ Facebook Reviews Scraper | | ๐Ÿ’ฌ Facebook Comments Scraper | ๐Ÿž Facebook Photos Scraper |

Integrations and Facebook Posts Scraper

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

Using Facebook Posts 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.


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