Facebook Photos Scraper avatar
Facebook Photos Scraper
Try for free

7 days trial then $20.00/month - No credit card required now

View all Actors
Facebook Photos Scraper

Facebook Photos Scraper

apify/facebook-photos-scraper
Try for free

7 days trial then $20.00/month - No credit card required now

Extract data from one or multiple Facebook images. Get image ID, Facebook photo URL, image URL, OCR text, and more. Download the data in JSON, CSV, and Excel and use it in apps, spreadsheets, and reports.

What is Facebook Photos Scraper?

It's a simple and powerful tool that allows you to scrape data from Facebook photos: image ID, Facebook URL, image URL, and OCR text. To get that data, just insert the page URL and click "Save & Start" button.

Why scrape Facebook images?

  • Monitor competition to identify what they're doing right, or wrong, and how you can do it better
  • Conduct market research or analysis
  • Analyze social media and identify hot spots of misinformation
  • Track brand sentiment and shifts in cutsomer engagement

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.

How do I use Facebook Photos Scraper?

Facebook Photos 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 Photos Scraper.
  3. Add one or more Facebook page/profile URLs to scrape its photos.
  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 Photos Scraper should be URLs of Facebook pages you want to scrape images from. Click on the input tab for an input example in JSON.

1{
2  "proxy": {
3    "useApifyProxy": true,
4    "apifyProxyGroups": [
5      "RESIDENTIAL"
6    ]
7  },
8  "resultsLimit": 10,
9  "startUrls": [
10    {
11      "url": "https://www.facebook.com/copperkettleyqr"
12    }
13  ],
14  "maxRequestRetries": 10
15}
16...

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:

1[{
2  "id": "YXBwX2l0ZW06MTAwMDY0MDI3MjQyODQ5OjIzMjcxNTgyMjc6NTo6NTI2OTI4Njg2MTE4MDM1",
3  "image": "https://scontent.fbna2-1.fna.fbcdn.net/v/t39.30808-6/318525673_526928672784703_4609683309310527953_n.jpg?stp=c80.0.206.206a_dst-jpg_p206x206&_nc_cat=101&ccb=1-7&_nc_sid=da31f3&_nc_ohc=XDEOIAlk420AX9Gpx0P&_nc_ht=scontent.fbna2-1.fna&oh=00_AfAXFRVgWuRbULeNmPcw_XnHHYrCB4svwURRMSLVmq_SOw&oe=639AB1C4",
4  "url": "https://www.facebook.com/photo.php?fbid=526928686118035&set=pb.100064027242849.-2207520000.&type=3",
5  "dataType": "photo",
6  "ocrText": "May be an image of 8 people and indoor",
7  "facebookUrl": "https://www.facebook.com/copperkettleyqr"
8},
9{
10  "id": "YXBwX2l0ZW06MTAwMDY0MDI3MjQyODQ5OjIzMjcxNTgyMjc6NTo6NTI2NjM0OTU2MTQ3NDA4",
11  "image": "https://scontent.fbna2-1.fna.fbcdn.net/v/t39.30808-6/318248901_526635142814056_6624748793517600997_n.jpg?stp=c34.0.206.206a_dst-jpg_p206x206&_nc_cat=109&ccb=1-7&_nc_sid=da31f3&_nc_ohc=8Kurb8D7GxsAX_AdmYV&_nc_ht=scontent.fbna2-1.fna&oh=00_AfAiPZSGj5bezjNuUGGf2QNTkS4RzuoS-eLy925eGRLdTw&oe=639B2912",
12  "url": "https://www.facebook.com/photo.php?fbid=526634956147408&set=pb.100064027242849.-2207520000.&type=3",
13  "dataType": "photo",
14  "ocrText": "May be an image of food",
15  "facebookUrl": "https://www.facebook.com/copperkettleyqr"
16},
17{
18  "id": "YXBwX2l0ZW06MTAwMDY0MDI3MjQyODQ5OjIzMjcxNTgyMjc6NTo6NTI2NjM0ODk2MTQ3NDE0",
19  "image": "https://scontent.fbna2-1.fna.fbcdn.net/v/t39.30808-6/319283836_526635059480731_249175491622667100_n.jpg?stp=c34.0.206.206a_dst-jpg_p206x206&_nc_cat=111&ccb=1-7&_nc_sid=da31f3&_nc_ohc=4FYbqUDeELAAX-1U62Q&_nc_ht=scontent.fbna2-1.fna&oh=00_AfDHubDfu3YYNDiQ5uEvpt1Yapr7uGlQyboV2ein1V0row&oe=639B1B91",
20  "url": "https://www.facebook.com/photo.php?fbid=526634896147414&set=pb.100064027242849.-2207520000.&type=3",
21  "dataType": "photo",
22  "ocrText": "May be an image of food",
23  "facebookUrl": "https://www.facebook.com/copperkettleyqr"
24},
25{
26  "id": "YXBwX2l0ZW06MTAwMDY0MDI3MjQyODQ5OjIzMjcxNTgyMjc6NTo6NTI2NjM0ODUyODE0MDg1",
27  "image": "https://scontent.fbna2-1.fna.fbcdn.net/v/t39.30808-6/319213545_526635002814070_7141569552647576834_n.jpg?stp=c97.0.206.206a_dst-jpg_p206x206&_nc_cat=101&ccb=1-7&_nc_sid=da31f3&_nc_ohc=4O1f27q29SYAX-c0VxB&_nc_oc=AQmLdYBCVvgulSwJFtGUWnM3eHAozV0r7QpoRAtF8jzXwbMnkWi86CR3WNMZmsK4Vlk&_nc_ht=scontent.fbna2-1.fna&oh=00_AfBiir5BhrQe4iwKfwiza4TfNS5VtMvEciRWmmhFgUoCaA&oe=6399A99F",
28  "url": "https://www.facebook.com/photo.php?fbid=526634852814085&set=pb.100064027242849.-2207520000.&type=3",
29  "dataType": "photo",
30  "ocrText": "May be an image of food",
31  "facebookUrl": "https://www.facebook.com/copperkettleyqr"
32},
33...

How many results can you scrape with Facebook Photos scraper?

Facebook Photos scraper can return up to 5000 results on average. However, you have to keep in mind that scraping facebook.com has many variables to it and may cause the results to fluctuate case by case. There’s no one-size-fits-all-use-cases number. The maximum number of results may vary depending on the complexity of the input, location, and other factors. Some of the most frequent cases are:

  • website gives a different number of results depending on the type/value of the input
  • website has an internal limit that no scraper can cross
  • scraper has a limit that we are working on improving

Therefore, while we regularly run Actor tests to keep the benchmarks in check, the results may also fluctuate without our knowing. The best way to know for sure for your particular use case is to do a test run yourself.

How much will scraping Facebook Photos cost you?

When it comes to scraping, it can be challenging to estimate the resources needed to extract data as use cases may vary significantly. That's why the best course of action is to run a test scrape with a small sample of input data and limited output. You’ll get your price per scrape, which you’ll then multiply by the number of scrapes you intend to do.

Watch this video for a few helpful tips. And don't forget that choosing a higher plan will save you money in the long run.

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

👥 Facebook Groups Scraper🕵️‍♀️ Facebook Search Scraper
💬 Facebook Comments Scraper📱 Facebook Pages Info Scraper
#️⃣ Facebook Hashtag Scraperℹ️ Facebook Page Posts Checker
🚩 Facebook Pages Scraper🌟 Facebook Reviews Scraper
🗓 Facebook Events Scraper📝 Facebook Posts Scraper
📢 Facebook Ads Scraper👍 Facebook Likes and Reactions Scraper

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.

Integrations and Facebook Photos Scraper

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

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

Not your cup of tea? Build your own scraper

Facebook Photos Scraper doesn’t exactly do what you need? You can always build your own! We have various scraper templates in Python, JavaScript, and TypeScript to get you started. Alternatively, you can write it from scratch using our open-source library Crawlee. You can keep the scraper to yourself or make it public by adding it to Apify Store (and find users for it).

Or let us know if you need a custom scraping solution.

Your feedback

We’re always working on improving the performance of our Actors. So if you’ve got any technical feedback for Facebook Photos Scraper or simply found a bug, please create an issue on the Actor’s Issues tab in Apify Console.

Developer
Maintained by Apify
Actor metrics
  • 58 monthly users
  • 99.8% runs succeeded
  • 2.9 days response time
  • Created in Nov 2022
  • Modified 2 days ago