# Facebook Videos Scraper (`thenetaji/facebook-videos-scraper`) Actor

List the videos published by a public Facebook Page. Facebook's logged-out video list returns each video's ID and watch link, which this Actor collects for as many Pages as you supply.

- **URL**: https://apify.com/thenetaji/facebook-videos-scraper.md
- **Developed by:** [The Netaji](https://apify.com/thenetaji) (community)
- **Categories:** Social media, For creators
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 results

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

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Facebook Videos Scraper — Page Video List

The Actor lists the videos published by a public Facebook Page exactly as a logged-out visitor sees them on the Page's Videos tab. No Facebook account, login, or session cookie is used at any point.

### Accepted input

`page` is required and accepts a list of Page usernames, numeric IDs, or full `facebook.com/<page>/` URLs, one per line; duplicates are collapsed before any request is made. `maxItems` (default `50`) bounds the number of records saved per Page; `0` continues until Facebook stops returning a next page.

```json
{
  "page": ["NASA", "https://www.facebook.com/unicef/"],
  "maxItems": 100
}
```

### Result fields

Each row carries `page`, `id`, `url`, and `raw`.

Facebook's logged-out video list is deliberately sparse: each entry it returns
is the video's ID and its owner, and nothing more. Titles, publish dates,
durations and thumbnails are not present in that response at any depth, so this
Actor does not claim them rather than emitting columns that would always be
empty. `url` is composed from the ID and opens the video directly.

The example below illustrates field shapes; it is not captured from a live run.

```json
{
  "page": "NASA",
  "id": "894001234567890",
  "url": "https://www.facebook.com/watch/?v=894001234567890"
}
```

If you need a video's title, description or view count, open the `url` — those
details live on the video's own page, not in the list that enumerates them.

### Behaviour on partial results

Each Page's list is a separate paginated series of requests. A Page that cannot be resolved — because the username or ID does not exist, or the Page is not public — is logged as a warning and skipped, and the run continues with the rest of the list.

### Public, logged-out data only

Everything returned here is visible on the Page's own Videos tab to somebody who is not signed in. Videos a Page restricts to logged-in visitors are not returned.

### Frequently asked questions

**Why doesn't a row carry a title, date, or duration?**
Facebook's logged-out video list does not include them — the ID and owner are the only fields it exposes for each entry, verified against live responses. This is not the Actor omitting fields it could otherwise return; those fields do not exist in that response.

**Can videos and photo albums be collected in the same run?**
Not from this Actor: it covers videos only. Use the [Facebook Photo Albums Scraper](https://apify.com/thenetaji/facebook-albums-scraper) for a Page's albums.

**Is a Facebook account or login required?**
No. Only the Videos tab that Facebook already shows to a logged-out visitor is read.

### What this is useful for

Archiving a Page's video library outside Facebook's own retention; monitoring a competitor's or partner's video publishing cadence; and building an inventory of watch links to feed into a separate download or review workflow.

### Related Actors

| Actor | Purpose |
| --- | --- |
| [Facebook Photo Albums Scraper](https://apify.com/thenetaji/facebook-albums-scraper) | Photo albums for a Page |
| [Facebook Page Scraper](https://apify.com/thenetaji/facebook-page-scraper) | Profile, About and Transparency details for a Page |
| [Facebook Posts Scraper](https://apify.com/thenetaji/facebook-posts-scraper) | Timeline posts for a Page |

# Actor input Schema

## `page` (type: `array`):

Facebook Page usernames, numeric IDs, or full facebook.com/<page>/ URLs, one per line.

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

Maximum videos to save per Page. Set `0` to continue until no further videos are available.

## Actor input object example

```json
{
  "page": [
    "NASA",
    "https://www.facebook.com/unicef/"
  ],
  "maxItems": 20
}
```

# Actor output Schema

## `dataset` (type: `string`):

All records scraped by this run

# 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 = {
    "page": [
        "NASA"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("thenetaji/facebook-videos-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 = {
    "page": ["NASA"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("thenetaji/facebook-videos-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 '{
  "page": [
    "NASA"
  ],
  "maxItems": 20
}' |
apify call thenetaji/facebook-videos-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thenetaji/facebook-videos-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/dK8IJ8FyzVmWkRiOd/builds/oaMjmMe3md6nQMRIV/openapi.json
