![Facebook Posts Scraper avatar](https://images.apifyusercontent.com/WnKWzkmMuq4erTaPUUTNADSyfr6kPAyVCQNlKiwlbq4/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9Lb0pyZHhKQ1R0cG9uODFLWS9idmlzeTkyN2ZkRFRNS0VLVC1GYWNlYm9va19Qb3N0c19TY3JhcGVyLnBuZw.webp)
Facebook Posts Scraper
Try for free
7 days trial then $35.00/month - No credit card required now
View all Actors![Facebook Posts Scraper](https://images.apifyusercontent.com/WnKWzkmMuq4erTaPUUTNADSyfr6kPAyVCQNlKiwlbq4/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9Lb0pyZHhKQ1R0cG9uODFLWS9idmlzeTkyN2ZkRFRNS0VLVC1GYWNlYm9va19Qb3N0c19TY3JhcGVyLnBuZw.webp)
![Facebook Posts Scraper](https://images.apifyusercontent.com/WnKWzkmMuq4erTaPUUTNADSyfr6kPAyVCQNlKiwlbq4/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9Lb0pyZHhKQ1R0cG9uODFLWS9idmlzeTkyN2ZkRFRNS0VLVC1GYWNlYm9va19Qb3N0c19TY3JhcGVyLnBuZw.webp)
Facebook Posts Scraper
apify/facebook-posts-scraper
Try for free
7 days trial then $35.00/month - No credit card required now
Extract data from hundreds of Facebook posts from one or multiple Facebook pages and profiles. Get post URL, post text, page or profile 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.
Do you want to learn more about this Actor?
Get a demoThe code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more
1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7 "startUrls": [
8 {
9 "url": "https://www.facebook.com/humansofnewyork/"
10 }
11 ],
12 "resultsLimit": 20
13}
14EOF
15
16# Run the Actor using an HTTP API
17# See the full API reference at https://docs.apify.com/api/v2
18curl "https://api.apify.com/v2/acts/apify~facebook-posts-scraper/runs?token=$API_TOKEN" \
19 -X POST \
20 -d @input.json \
21 -H 'Content-Type: application/json'
Developer
Maintained by Apify
Actor metrics
- 1.3k monthly users
- 115 stars
- 99.4% runs succeeded
- 3.2 days response time
- Created in Nov 2022
- Modified 1 day ago
Categories