![Ultimate Facebook Scraper avatar](https://images.apifyusercontent.com/AU9aVZM5Re0t6mZr41kfsIuRKuhTo73TgKiusp2L0Og/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vMEdvTVozZ2xhYzY5RFdSdHovM3N4dHhCVHJuZXZ6dG1jTm4tZmFjZWJvb2suanBlZw.webp)
Ultimate Facebook Scraper
Try for free
3 days trial then $39.00/month - No credit card required now
View all Actors![Ultimate Facebook Scraper](https://images.apifyusercontent.com/AU9aVZM5Re0t6mZr41kfsIuRKuhTo73TgKiusp2L0Og/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vMEdvTVozZ2xhYzY5RFdSdHovM3N4dHhCVHJuZXZ6dG1jTm4tZmFjZWJvb2suanBlZw.webp)
![Ultimate Facebook Scraper](https://images.apifyusercontent.com/AU9aVZM5Re0t6mZr41kfsIuRKuhTo73TgKiusp2L0Og/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vMEdvTVozZ2xhYzY5RFdSdHovM3N4dHhCVHJuZXZ6dG1jTm4tZmFjZWJvb2suanBlZw.webp)
Ultimate Facebook Scraper
curious_coder/ultimate-facebook-scraper
Try for free
3 days trial then $39.00/month - No credit card required now
All in one scraping solution to scrape any kind of data from facebook
The 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
1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5 token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10 "action": "scrapeProfiles",
11 "scrapeProfiles.profileUrls": [
12 "https://www.facebook.com/OnePeakCreative"
13 ],
14 "proxy": {
15 "useApifyProxy": true,
16 "apifyProxyGroups": [
17 "RESIDENTIAL"
18 ],
19 "apifyProxyCountry": "US"
20 },
21 "minDelay": 1,
22 "maxDelay": 3
23};
24
25(async () => {
26 // Run the Actor and wait for it to finish
27 const run = await client.actor("curious_coder/ultimate-facebook-scraper").call(input);
28
29 // Fetch and print Actor results from the run's dataset (if any)
30 console.log('Results from dataset');
31 console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
32 const { items } = await client.dataset(run.defaultDatasetId).listItems();
33 items.forEach((item) => {
34 console.dir(item);
35 });
36})();
37
38// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
- 81 monthly users
- 4 stars
- 92.3% runs succeeded
- 11 hours response time
- Created in Oct 2023
- Modified 5 days ago
Categories