Black-Friday Black-Friday
logo

Facebook Photo Data Scraper - Facebook Image Collection

RealdataAPI / Facebook-Photo-Data-Scraper

Scrape data from multiple Facebook photos using our Facebook Photo Data Scraper. Access our scraper from the USA, UK, UAE, Australia, Germany, France, Canada, Singapore, Italy, Spain, and other countries. Get Facebook image URL, photo URL, image ID, OCR text, and more. Store the data in CSV, JSON, or Excel format, and use it in reports, spreadsheets, and apps.

What is Facebook Photo Data Scraper?

It is a simple and robust tool for data extraction that permits you to scrape Facebook photos and related data, including photo URLs, image IDs, OCR text, Facebook links, and more. To collect the image data, submit the link to the targeted Facebook page and start the process by clicking the Save and Start button.

Why Scrape Photos From Facebook?

  • Perform extensive market research.
  • Track competition to find their marketing, promotional, and operational performance and find ways to do better than your competitors.
  • Monitor shifts in consumer engagement and brand sentiment.
  • Find hotspots of misleading information by studying social media.

Remember that the scraper shows the output of the scraping task only after completing the successful run. During the execution, it will show zero outputs. Please keep patience till the successful run of the scraper to see all the Facebook photo data.

How to Use Facebook Image Scraper?

We have developed this scraper to extract Facebook photos, so it is handy to start even though you have not used it before. Here is the process to collect Facebook images using this scraper.

  • Create a Real Data API account for free using the necessary credentials.
  • Go to the Facebook photo data scraper and open it.
  • Submit the links of pages or posts to scrape images.
  • Click on the Start button and allow some time for the tool to collect the data.
  • Save and download the extracted photos in HTML, Excel, JSON, CSV, or XML format.

Input Example of Facebook Photos Scraper

The scraper needs URLs of the targeted Facebook pages as the input for scraping photos. Visit the input tab and learn about the JSON example.

{
"proxy": {
"useApifyProxy": true,

"apifyProxyGroups": [
"RESIDENTIAL"
]
},

"resultsLimit": 10,

"startUrls": [
{
"url": "https://www.facebook.com/copperkettleyqr"
}
],

"maxRequestRetries": 10
}
...

Output Sample of Facebook Post Data Scraper

The Facebook Image Collection will give you output in dataset format. You can select a format like JSON, HTML, XML, CSV, or Excel to download the dataset. If you feed the above input sample, you will get the output in the below format.

[{
"id": "YXBwX2l0ZW06MTAwMDY0MDI3MjQyODQ5OjIzMjcxNTgyMjc6NTo6NTI2OTI4Njg2MTE4MDM1",
"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",
"url": "https://www.facebook.com/photo.php?fbid=526928686118035&set=pb.100064027242849.-2207520000.&type=3",
"dataType": "photo",
"ocrText": "May be an image of 8 people and indoor",
"facebookUrl": "https://www.facebook.com/copperkettleyqr" },
{ "id": "YXBwX2l0ZW06MTAwMDY0MDI3MjQyODQ5OjIzMjcxNTgyMjc6NTo6NTI2NjM0OTU2MTQ3NDA4",
"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",
"url": "https://www.facebook.com/photo.php?fbid=526634956147408&set=pb.100064027242849.-2207520000.&type=3",
"dataType": "photo",
"ocrText": "May be an image of food",
"facebookUrl": "https://www.facebook.com/copperkettleyqr" },
{ "id": "YXBwX2l0ZW06MTAwMDY0MDI3MjQyODQ5OjIzMjcxNTgyMjc6NTo6NTI2NjM0ODk2MTQ3NDE0",
"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",
"url": "https://www.facebook.com/photo.php?fbid=526634896147414&set=pb.100064027242849.-2207520000.&type=3",
"dataType": "photo",
"ocrText": "May be an image of food",
"facebookUrl": "https://www.facebook.com/copperkettleyqr" },
{ "id": "YXBwX2l0ZW06MTAwMDY0MDI3MjQyODQ5OjIzMjcxNTgyMjc6NTo6NTI2NjM0ODUyODE0MDg1",
"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",
"url": "https://www.facebook.com/photo.php?fbid=526634852814085&set=pb.100064027242849.-2207520000.&type=3",
"dataType": "photo",
"ocrText": "May be an image of food",
"facebookUrl": "https://www.facebook.com/copperkettleyqr" },
...

What is the Cost of Using Facebook Photos Scraper?

If you use the scraper to collect Facebook images, you must use residential proxy services to support the scraping from our platform. We have included them in our monthly subscription plan of 49 USD.

To learn more about our pricing structure, proxy servers and usage, and platform credit, visit our pricing page.

Do You Need to Extract Facebook Posts or Groups?

We have developed dedicated data scrapers to collect data for specific fields, like reviews, groups, posts, comments, events, and more. Do visit them whenever you need.

  • Facebook Comments Scraper
  • Facebook Groups Scraper
  • Facebook Posts Scraper
  • Facebook Reviews Scraper

Facebook Photo Data Scraper with Integrations

Lastly, you can integrate Facebook image scraper with any web application or cloud service with the help of integrations available on our platform. You can connect the scraper with Zapier, Google Drive, Airbyte, Slack, GitHub, Google Sheets, Make, and more.

If any event occurs, you can try webhooks to take action, like getting an alert after the successful execution of the scraper.

Using Facebook Photo Data Scraper with Real Data API Actor

Our actor gives you programmatic permission to access the platform. We have organized it around RESTful HTTP endpoints that allow you to schedule, manage, and run scrapers. The actor also helps you to monitor scraper performances, update and create new versions, access datasets, and more. You can access the actor using Python if you use our client PyPl package and access it using Node.js if you use our client NPM package.

Visit the API tab to learn about sample codes.

Can I Scrape Facebook Photos Legally?

We have designed our scrapers to collect the data ethically. They don't scrape personal data like contact details, location, or gender. Our scrapers only collect publicly available data from Facebook. But please remember that the scraper may unknowingly extract some private data. Unless legit reason, you shouldn't collect any private data.

If you are still determining whether your purpose is legit, you can seek advice from your advocate.

Industries

Check out how industries use Facebook Photo Data Scraper worldwide.

saas-btn.webp

Marketing and Media

You should have a Real Data API account to execute the program examples. Replace < YOUR_API_TOKEN > in the program using the token of your actor. Read about the live APIs with Real Data API docs for more explanation.

import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with API token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.facebook.com/humansofnewyork"
        }
    ],
    "resultsLimit": 10,
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    },
    "maxRequestRetries": 10
};

(async () => {
    // Run the actor and wait for it to finish
    const run = await client.actor("apify/facebook-photos-scraper").call(input);

    // Fetch and print actor results from the run's dataset (if any)
    console.log('Results from dataset');
    const { items } = await client.dataset(run.defaultDatasetId).listItems();
    items.forEach((item) => {
        console.dir(item);
    });
})();
from apify_client import ApifyClient

# Initialize the ApifyClient with your API token
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the actor input
run_input = {
    "startUrls": [{ "url": "https://www.facebook.com/humansofnewyork" }],
    "resultsLimit": 10,
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
    "maxRequestRetries": 10,
}

# Run the actor and wait for it to finish
run = client.actor("apify/facebook-photos-scraper").call(run_input=run_input)

# Fetch and print actor results from the run's dataset (if there are any)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
# Set API token
API_TOKEN=<YOUR_API_TOKEN>

# Prepare actor input
cat > input.json <<'EOF'
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/humansofnewyork"
    }
  ],
  "resultsLimit": 10,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "maxRequestRetries": 10
}
EOF

# Run the actor
curl "https://api.apify.com/v2/acts/apify~facebook-photos-scraper/runs?token=$API_TOKEN" \
  -X POST \
  -d @input.json \
  -H 'Content-Type: application/json'

Facebook Photo Links

startUrls Required Array

Active Facebook Photo URLs

Maximum Result Limit

resultsLimit Optional Integer

The scraper will only show results for the initial page if you still need to set the limit.

Proxy Configuration

proxy Required Object

You have to use a proxy server to run this scraper. There are multiple options to use proxies, like using an external or residential proxy from our platform. The scrape doesn't allow datacenter proxy, so please don't use them.

Maximum Attempts

maxRequestRetries Optional Integer

maxConcurrency

{
  "startUrls": [
    {
      "url": "https://www.facebook.com/humansofnewyork"
    }
  ],
  "resultsLimit": 10,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "maxRequestRetries": 10
}