# Facebook Photos & Albums Scraper (`alpha-scraper/facebook-photos-albums-scraper`) Actor

\[ 1k/1.49$ ] Facebook Photos & Albums Scraper collects public photos of Facebook Pages and profiles: own photos, tagged photos, the album list (title, item count, cover) and album photos, with optional details such as full-size image, caption, reactions, comments and shares.

- **URL**: https://apify.com/alpha-scraper/facebook-photos-albums-scraper.md
- **Developed by:** [Alpha Scraper](https://apify.com/alpha-scraper) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Facebook Photos & Albums Scraper

**Facebook Photos & Albums Scraper** collects public photos and albums from Facebook Pages and public Facebook profiles and returns them as clean, structured data. Give Facebook Photos & Albums Scraper a Page username or a Facebook URL, and it returns the Page's own photos, the photos it is tagged in, the album list and the photos inside albums.

With photo details switched on, Facebook Photos & Albums Scraper adds a created time, a full-size image link, a caption, reactions, comments and shares to each Facebook photo. You do not need a Facebook account, a login or an API key, so you can go from a Facebook Page name to a ready photo dataset in a few minutes.

> **📌 At a glance**
>
> - **Input:** Facebook Page or profile usernames, numeric ids or Facebook URLs
> - **Output:** one dataset record per photo or album, tagged with a `photoType`
> - **Tabs:** own photos, tagged photos, albums and album photos, each switched on or off
> - **Control:** limits per tab, per album and per number of albums opened

Brand teams, researchers, agencies and archivists use Facebook Photos & Albums Scraper to review visual content, audit Page galleries and collect image links. Every Facebook photo comes back in the same JSON structure, so the data is easy to export, filter or feed into a dashboard.

### 🔹 Facebook Photos & Albums Scraper – Key Features

Facebook Photos & Albums Scraper gives you control over which parts of a Facebook gallery you collect.

- **Own photos:** read the photos of a Facebook Page's own Photos tab.
- **Tagged photos:** also collect the Facebook photos a Page or profile is tagged in.
- **Album list:** get each album title, item count text and cover image.
- **Album photos:** open the first albums and list the photos inside each Facebook album.
- **Several sources per run:** combine `usernames` and `startUrls`, and each tab gets its own limit.
- **Photo details:** created time, full-size image, size, caption, reactions, comments and shares.
- **Date filters:** keep Facebook photos created inside a window you define.
- **Post link:** the post a photo belongs to is returned with its id, link and text when known.
- **Record labels:** `photoType` tells you whether a record is an own photo, tagged photo, album or album photo.

> **✅ Why use this Actor**
>
> Facebook Photos & Albums Scraper replaces manual gallery browsing. Facebook Photos & Albums Scraper pages through each tab for you, stops at your limits and delivers consistent fields that you can export as JSON, CSV or Excel.

### 🔍 What Data Does Facebook Photos & Albums Scraper Extract?

Each dataset item is either a photo or an album. The table groups the fields by purpose.

| Group | Fields | What you get |
|---|---|---|
| Record type | `photoType`, `type`, `number` | Which tab the record came from and its position |
| Photo identity | `photoId`, `url`, `ownerId`, `ownerName` | Photo id, link and owner |
| Image | `imageUrl`, `imageWidth`, `imageHeight`, `thumbnailUrl`, `accessibilityCaption` | Image links, size and the automatic caption |
| Time | `createdTime`, `timestamp` | Created time as ISO text and as a Unix timestamp |
| Engagement | `reactionCount`, `reactionBreakdown`, `commentCount`, `shareCount` | Filled with photo details |
| Post | `postId`, `postUrl`, `postText`, `album` | The post and album the photo belongs to |
| Album | `albumId`, `title`, `itemCountText`, `itemCount`, `coverImageUrl` | Album list fields |
| Source | `facebookUrl`, `scrapedAt` | The Facebook source and collection time |

Facebook Photos & Albums Scraper sets `photoType` to one of four values: `own_photos`, `tagged_photos`, `albums` and `album_photo`.

### 🚀 How to Use Facebook Photos & Albums Scraper

Running Facebook Photos & Albums Scraper takes a few steps in Apify Console.

- **Step 1 – Open the Actor:** start Facebook Photos & Albums Scraper from the Apify Store and open the Input tab.
- **Step 2 – Add sources:** enter usernames such as `copperkettleyqr` or paste Facebook Page URLs into *Start URLs*.
- **Step 3 – Choose tabs:** tell Facebook Photos & Albums Scraper to read own photos, tagged photos, albums or album photos.
- **Step 4 – Set limits:** choose *Max items* per tab, and for albums choose how many to open and how many photos to list.
- **Step 5 – Decide on details:** keep *Include photo details* on for time, reactions and comments, or switch it off for a faster run.
- **Step 6 – Run and export:** start Facebook Photos & Albums Scraper, then download JSON, CSV or Excel, or use the Apify API.

> **💡 Tip:** the input is prefilled with a sample username. Clear it if you only want your own Facebook sources.

### 📥 Facebook Photos & Albums Scraper Input

Facebook Photos & Albums Scraper has twelve input fields. All are optional, but you need at least one username or URL.

| Field | Type | Description |
|---|---|---|
| `usernames` | array | Facebook Page or profile usernames (with or without @) or numeric ids, for example `copperkettleyqr`. |
| `startUrls` | array | Facebook Page or profile URLs such as `https://www.facebook.com/Cristiano`. A tab suffix in the URL is ignored. Default: empty. |
| `scrapeOwnPhotos` | boolean | Collect the photos of the Facebook Page's own Photos tab (`photoType` is `own_photos`). Default: `true`. |
| `scrapeTaggedPhotos` | boolean | Also collect photos the Page or profile is tagged in (`tagged_photos`). Default: `false`. |
| `scrapeAlbums` | boolean | Also list albums with title, item count and cover (`albums`). Default: `false`. |
| `scrapeAlbumPhotos` | boolean | Open albums and list the photos inside (`album_photo`). The album list is read even when `scrapeAlbums` is off, but album records are returned only when it is on. Default: `false`. |
| `photosNewerThan` | string | Keep photos created on or after this date (`YYYY-MM-DD`, 00:00 UTC). Needs `includePhotoDetails`. |
| `photosOlderThan` | string | Keep photos created on or before this date (`YYYY-MM-DD`, 00:00 UTC). Needs `includePhotoDetails`. |
| `includePhotoDetails` | boolean | Adds created time, full-size image and size, caption, reactions with breakdown, comments, shares, album and post. Costs one extra lookup per photo. Needed for the date filters. Default: `true`. |
| `maxAlbumsToOpen` | integer | How many albums to open when `scrapeAlbumPhotos` is on. Minimum 1, default 3. |
| `maxAlbumPhotos` | integer | Maximum photos to list per opened album. Minimum 1, default 20. |
| `maxItems` | integer | Maximum photos or albums per tab and per Page. Minimum 1, default 30. |

Facebook Photos & Albums Scraper gives every source and every enabled tab its own `maxItems` limit. With two Pages, own photos and tagged photos on, and `maxItems` set to 20, you can get up to 80 photos.

The date filters use the created time from the photo details. Photos without a created time and album records are never filtered out. The filter runs on the photos that Facebook Photos & Albums Scraper collected, so a small `maxItems` can leave fewer photos than you expect.

Here is a sample input for Facebook Photos & Albums Scraper that reads own photos, the album list and two opened albums:

```json
{
  "usernames": ["copperkettleyqr"],
  "startUrls": [],
  "scrapeOwnPhotos": true,
  "scrapeTaggedPhotos": false,
  "scrapeAlbums": true,
  "scrapeAlbumPhotos": true,
  "photosNewerThan": "2026-01-01",
  "includePhotoDetails": true,
  "maxAlbumsToOpen": 2,
  "maxAlbumPhotos": 10,
  "maxItems": 20
}
```

### 📤 Facebook Photos & Albums Scraper Output

Facebook Photos & Albums Scraper writes photo records and album records to the default dataset. Fields that Facebook does not show are returned as `null` or are not added.

```json
{
  "photoType": "own_photos",
  "type": "Photo",
  "photoId": "1234567890123456",
  "url": "https://www.facebook.com/photo.php?fbid=1234567890123456&set=pb.100000000000001.-2207520000&type=3",
  "imageUrl": "https://example.com/photo/1234567890123456.jpg",
  "imageWidth": 1080,
  "imageHeight": 1350,
  "thumbnailUrl": "https://example.com/thumb/1234567890123456.jpg",
  "accessibilityCaption": "May be an image of coffee and pastries",
  "album": { "id": "100000000000009", "title": "Mobile uploads", "url": "https://www.facebook.com/media/set/?set=a.100000000000009&type=3" },
  "createdTime": "2026-10-18T10:42:00.000Z",
  "timestamp": 1792320120,
  "reactionCount": 214,
  "reactionBreakdown": { "Like": 180, "Love": 30, "Wow": 4 },
  "commentCount": 12,
  "shareCount": 5,
  "postId": "1234567890123457",
  "postUrl": "https://www.facebook.com/samplecoffee/posts/1234567890123457",
  "postText": "Fresh pastries every morning this week.",
  "ownerId": "100000000000001",
  "ownerName": "Sample Coffee Roasters",
  "facebookUrl": "https://www.facebook.com/samplecoffee",
  "number": 1,
  "scrapedAt": "2026-11-06T15:19:12.000Z"
}
```

Album records from Facebook Photos & Albums Scraper use the same `photoType`, `type`, `facebookUrl`, `number` and `scrapedAt` fields:

```json
{
  "photoType": "albums",
  "type": "Album",
  "albumId": "100000000000009",
  "url": "https://www.facebook.com/media/set/?set=a.100000000000009&type=3",
  "title": "Mobile uploads",
  "itemCountText": "556 Items",
  "itemCount": 556,
  "coverImageUrl": "https://example.com/cover/100000000000009.jpg",
  "facebookUrl": "https://www.facebook.com/samplecoffee",
  "number": 31,
  "scrapedAt": "2026-11-06T15:19:12.000Z"
}
```

#### 🧾 Output field guide

- `photoType` and `type` tell you whether a record is a photo or an album.
- `photoId` and `url` identify a Facebook photo, and `albumId` identifies an album.
- `imageUrl`, `imageWidth` and `imageHeight` describe the image, and `thumbnailUrl` links a smaller version.
- `accessibilityCaption` holds the automatic image description that Facebook shows.
- `createdTime` and `timestamp` need `includePhotoDetails`.
- `reactionCount`, `reactionBreakdown`, `commentCount` and `shareCount` also need photo details.
- `postId`, `postUrl` and `postText` describe the Facebook post that holds the photo, when known.
- `itemCountText` is the album label such as `556 Items`, and `itemCount` is the number read from it.
- Photos that Facebook Photos & Albums Scraper reads from opened albums also carry `fullSizeWidth` and `fullSizeHeight`.

> **⚠️ Note:** photo-level counters can be 0 for photos whose reactions belong to a multi-photo post.

### 🖼️ How to Scrape Photos from a Facebook Page

To scrape photos from a Facebook Page with Facebook Photos & Albums Scraper, enter the Page username or URL and keep `scrapeOwnPhotos` on. For the full gallery view, add `scrapeAlbums` to list albums and `scrapeAlbumPhotos` to read the photos inside the first albums.

For a time window, switch on `includePhotoDetails` and set `photosNewerThan`, `photosOlderThan` or both. Facebook Photos & Albums Scraper then compares each photo's created time with your dates.

### 🎯 Facebook Photos & Albums Scraper Use Cases

Facebook Photos & Albums Scraper fits many workflows that depend on public Facebook images.

- **Brand audits:** review the photos and albums a Facebook Page has published with Facebook Photos & Albums Scraper.
- **Visual content research:** study which photos earn reactions and comments.
- **Competitor galleries:** compare album topics and sizes across rival Pages.
- **Tagged content review:** see which photos feature a Page or profile.
- **Image inventory:** collect image links, sizes and captions for your own review.
- **Accessibility checks:** read the automatic captions Facebook adds to photos.
- **Reporting:** export photo and album data to a spreadsheet or BI tool.

### 💰 Pricing

Facebook Photos & Albums Scraper runs on the Apify platform. The current pricing is shown on the Actor page in the Apify Store, and your cost depends on the number of results and the resources used by the run.

> **💡 Cost tip:** start with a small `maxItems` value such as 10 or 20. Keep `maxAlbumsToOpen` and `maxAlbumPhotos` low, and turn off `includePhotoDetails` when you only need image links.

### 💡 Tips and Best Practices

- **Start small:** a short test run of Facebook Photos & Albums Scraper confirms the Facebook Page name and shows the fields before a large collection.
- **Details drive the date filters:** `photosNewerThan` and `photosOlderThan` only work with `includePhotoDetails`.
- **Switch details off for speed:** Facebook Photos & Albums Scraper reads image links and thumbnails from the list data.
- **Mind the tab limits:** each enabled tab and each source has its own `maxItems`.
- **Open a few albums first:** raise `maxAlbumsToOpen` after you check the first results.
- **Save files you need:** image links point to Facebook's own servers, so keep a copy of any file from your Facebook Photos & Albums Scraper results.
- **Check nulls:** a `null` field means the value was not shown for that photo, not that Facebook Photos & Albums Scraper failed.
- **Schedule regular runs:** use Apify schedules to keep a Facebook photo archive up to date.

> **⚠️ Important:** only collect data you are allowed to use. Public Facebook photos can show people, so follow Facebook's terms and the privacy rules that apply to you, such as GDPR. This Actor is not affiliated with or endorsed by Meta.

### ❓ Frequently Asked Questions

#### 🔎 What is Facebook Photos & Albums Scraper?

Facebook Photos & Albums Scraper is an Apify Actor that collects public photos and albums from Facebook Pages and profiles. It returns image links, captions, times, reactions, comments and shares in a structured format.

#### 🧭 How do I scrape photos from a Facebook Page?

Open Facebook Photos & Albums Scraper, enter a Page username or URL, set `maxItems` and start the run. The photos appear in the dataset.

#### 🔐 Does Facebook Photos & Albums Scraper need a Facebook login?

No. Facebook Photos & Albums Scraper reads publicly visible content, so no account, cookies or API key are required.

#### 📚 Can I scrape Facebook albums and the photos inside them?

Yes. Turn on `scrapeAlbums` for the album list and `scrapeAlbumPhotos` to open albums. Use `maxAlbumsToOpen` and `maxAlbumPhotos` to set the size.

#### 🏷️ Can I scrape photos a Facebook Page is tagged in?

Yes. Turn on `scrapeTaggedPhotos`. Those records have the `photoType` value `tagged_photos`.

#### 📅 Can I scrape Facebook photos from a specific date range?

Yes. Keep `includePhotoDetails` on and set `photosNewerThan` and `photosOlderThan` with `YYYY-MM-DD` dates.

#### 📦 What data does Facebook Photos & Albums Scraper return?

Photo records include ids, links, image sizes, captions, created time, reactions, comments, shares and the post. Album records include title, item count and cover.

#### 🧩 Can I scrape several Facebook Pages in one run?

Yes. Add several usernames or URLs, and Facebook Photos & Albums Scraper applies the limits to each Page and tab.

#### 🧐 Why are some photo fields empty?

Details such as created time and reactions need `includePhotoDetails`, and Facebook does not show every value for every photo. Missing values are `null`.

#### 📊 Can I export Facebook photo data to CSV or Excel?

Yes. Any Apify dataset can be downloaded as JSON, CSV, Excel, XML or HTML, or read through the Apify API.

#### ⚖️ Is it legal to scrape Facebook photos?

Facebook Photos & Albums Scraper collects public Facebook content only. You are responsible for how you use the data, so check Facebook's terms, local laws and privacy rules before you store or share personal information.

### 📞 Support

If you have questions about Facebook Photos & Albums Scraper, ideas for new fields or find a Facebook Page that does not return the expected photos, send the Page name and the input you used.

- Contact me by email: alphascraper69@gmail.com

# Actor input Schema

## `usernames` (type: `array`):

Page or profile usernames (with or without @) or numeric ids, e.g. copperkettleyqr.

## `startUrls` (type: `array`):

Page or profile URLs, e.g. https://www.facebook.com/Cristiano. A tab suffix in the URL is ignored.

## `scrapeOwnPhotos` (type: `boolean`):

Collect the photos of the Page's own Photos tab. Records have photoType 'own_photos'.

## `scrapeTaggedPhotos` (type: `boolean`):

Also collect the photos the Page or profile is tagged in (the photos_of tab). Records have photoType 'tagged_photos'.

## `scrapeAlbums` (type: `boolean`):

Also list the albums (title, item count, cover) from the Albums tab. Records have photoType 'albums'.

## `scrapeAlbumPhotos` (type: `boolean`):

Open albums and list the photos inside them: the first 'Max albums to open' albums, up to 'Max photos per album' photos each. Records have photoType 'album_photo'. The album list is read even if 'Scrape albums' is off, but album records are only returned when that option is on.

## `photosNewerThan` (type: `string`):

Only keep photos created on or after this date (YYYY-MM-DD, 00:00 UTC). Needs 'Include photo details', because the creation time comes from the photo details; photos without a creation time and album records are never filtered out.

## `photosOlderThan` (type: `string`):

Only keep photos created on or before this date (YYYY-MM-DD, 00:00 UTC). Needs 'Include photo details', like 'Newer than'.

## `includePhotoDetails` (type: `boolean`):

One extra request per photo adds the created time, full-size image URL and size, accessibility caption, reactions (with breakdown), comments, shares, album and the post the photo belongs to. Photo-level counters can be 0 for photos whose reactions belong to a multi-photo post. Required for the date filters.

## `maxAlbumsToOpen` (type: `integer`):

How many albums to open when 'Scrape album photos' is on (the first N albums of the album list).

## `maxAlbumPhotos` (type: `integer`):

Maximum number of photos to list per opened album when 'Scrape album photos' is on.

## `maxItems` (type: `integer`):

Maximum number of photos (or albums) per tab and per Page or profile - every entry of 'Usernames' and 'Start URLs' and every enabled tab gets its own limit.

## Actor input object example

```json
{
  "usernames": [
    "copperkettleyqr"
  ],
  "startUrls": [
    "https://www.facebook.com/Cristiano/"
  ],
  "scrapeOwnPhotos": true,
  "scrapeTaggedPhotos": false,
  "scrapeAlbums": false,
  "scrapeAlbumPhotos": false,
  "includePhotoDetails": true,
  "maxAlbumsToOpen": 3,
  "maxAlbumPhotos": 20,
  "maxItems": 15
}
```

# Actor output Schema

## `results` (type: `string`):

Structured records extracted by Facebook Photos & Albums Scraper and stored in the run's default dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

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

// Prepare Actor input
const input = {
    "usernames": [
        "copperkettleyqr"
    ],
    "startUrls": [
        "https://www.facebook.com/Cristiano/"
    ],
    "maxItems": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/facebook-photos-albums-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

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

# Prepare the Actor input
run_input = {
    "usernames": ["copperkettleyqr"],
    "startUrls": ["https://www.facebook.com/Cristiano/"],
    "maxItems": 15,
}

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

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "usernames": [
    "copperkettleyqr"
  ],
  "startUrls": [
    "https://www.facebook.com/Cristiano/"
  ],
  "maxItems": 15
}' |
apify call alpha-scraper/facebook-photos-albums-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alpha-scraper/facebook-photos-albums-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/O8zKjcBbj2Ag1QY3I/builds/PY787BUzAZsjDOQem/openapi.json
