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

Scrape Facebook Watch videos data including video details, thumbnails, and creator information. Perfect for content analysis, market research, and monitoring trending videos on Facebook.

- **URL**: https://apify.com/easyapi/facebook-videos-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Social media
- **Stats:** 106 total users, 2 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: 2.00 out of 5 stars

## Pricing

from $2.99 / 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.

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 Videos Scraper 🎥

Powerful scraper that extracts video data from Facebook Watch search results. Get comprehensive information about videos including titles, descriptions, views, creators, and more.

### 🎯 Use Cases

- Content research and analysis
- Track trending videos on specific topics
- Monitor competitor video content
- Gather video engagement metrics
- Social media marketing research
- Build video content databases

### ✨ Features

- Search-based video scraping
- Customizable number of results
- Fast and efficient data collection
- Rich video metadata extraction

### 📊 Output Data

Each scraped video includes:

- Video ID
- Title
- Description
- View count & publish date
- Thumbnail URL
- Video duration
- Direct video URL
- Creator profile information
  - Name
  - Profile URL
  - Verification status

### 💡 Input Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `query` | String | Search query for videos |
| `maxItems` | Integer | Maximum number of videos to scrape |

### 🔍 Sample Output

#### Input Example

A full explanation of an input example in JSON.

```
{
    "query": "rocket",
    "maxItems": 20
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```
[
	{
		"videoId": "1602444103877126",
		"title": "Record-Breaking Rocket Ball 🏈🚀💥",
		"description": "We put a rocket in a football!!!! 🏈",
		"relative_time_string": "May 15 · 1.7M plays",
		"thumbnail_image": "https://scontent-ams2-1.xx.fbcdn.net/v/t15.5256-10/437667206_1628639337932757_8857153843555729013_n.jpg?stp=c0.182.800.448a_dst-jpg_s403x403&_nc_cat=104&ccb=1-7&_nc_sid=e3495b&_nc_ohc=4fegjxFQDK0Q7kNvgGYWOrC&_nc_zt=23&_nc_ht=scontent-ams2-1.xx&_nc_gid=ABP6bXV5ZxCNcr8fmNLXjUD&oh=00_AYA9yy5bssM_Bc53ttirszsESnvbfeikqkZhiHQiTp3tqw&oe=6728FC63",
		"video_duration": "5:55",
		"video_url": "https://www.facebook.com/watch/?ref=search&v=1602444103877126&external_log_id=8c0c9366-44d8-4ada-a38d-b5ae95ebe43f&q=rocket",
		"video_owner_profile": {
			"__typename": "User",
			"id": "100044524715860",
			"__isNode": "User",
			"__isActor": "User",
			"name": "Dude Perfect",
			"url": "https://www.facebook.com/DudePerfect",
			"is_verified": true
		}
	},
    ...
]
```

### Related Actors

- 🎥 [Facebook Video Download](https://apify.com/easyapi/facebook-video-download) - Download high-quality Facebook videos in multiple resolutions with easy batch processing.
- 🎥 [Facebook Hashtag Videos Scraper](https://apify.com/easyapi/facebook-hashtag-videos-scraper) - Extract videos from Facebook hashtag pages with comprehensive metadata.
- 📱 [Facebook Posts Search Scraper](https://apify.com/easyapi/facebook-posts-search-scraper) - Extract posts from Facebook search results with detailed engagement metrics.
- 📱 [Facebook Group Posts Scraper](https://apify.com/easyapi/facebook-group-posts-scraper) - Scrape posts from public and private Facebook groups efficiently.
- 🎥 [All-in-One Media Downloader](https://apify.com/easyapi/all-in-one-media-downloader) - Download videos and media from various platforms including Facebook.
- 🎮 [Facebook Gaming Search Scraper](https://apify.com/easyapi/facebook-gaming-search-scraper) - Extract game information from Facebook Gaming search results.
- 📊 [Facebook Group Profile Scraper](https://apify.com/easyapi/facebook-group-profile-scraper) - Extract detailed information from Facebook Groups.
- 📊 [Facebook Group Members Scraper](https://apify.com/easyapi/facebook-group-members-scraper) - Extract member data from Facebook groups.
- 🔍 [Facebook Groups Search Scraper](https://apify.com/easyapi/facebook-groups-search-scraper) - Search and extract data from Facebook groups.
- 🎥 [TikTok Videos Scraper](https://apify.com/easyapi/tiktok-videos-scraper) - Extract TikTok video search results with comprehensive metadata.
- 🎥 [YouTube Video Data Scraper](https://apify.com/easyapi/youtube-video-data-scraper) - Extract comprehensive metadata from YouTube videos.
- 🎥 [Instagram Videos Downloader](https://apify.com/easyapi/instagram-videos-downloader) - Download videos from Instagram posts efficiently.
- 🎥 [Instagram Reels Downloader](https://apify.com/easyapi/instagram-reels-downloader) - Download Instagram Reels videos in high quality.
- 🎥 [TikTok Video Downloader](https://apify.com/easyapi/tiktok-video-downloader) - Download TikTok videos without watermarks in original quality.
- 🎥 [YouTube Video and MP3 Downloader](https://apify.com/easyapi/youtube-video-and-mp3-downloader) - Download high-quality videos and audio from YouTube.
- 🎥 [Twitter/X Video Downloader](https://apify.com/easyapi/twitter-x-video-downloader) - Download high-quality videos from Twitter/X platform.

# Actor input Schema

## `query` (type: `string`):

Enter the search term to find videos on Facebook Watch

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

Maximum number of videos to scrape (max: 10000)

## Actor input object example

```json
{
  "query": "rocket",
  "maxItems": 20
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/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 '{}' |
apify call easyapi/facebook-videos-scraper --silent --output-dataset

```

## MCP server setup

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