# Facebook Video Search (`igview-owner/facebook-search-scraper`) Actor

Search and scrape Facebook videos by keyword. This Facebook Search Video Scraper collects video titles, descriptions, thumbnails, authors, and views from Facebook search results. Supports multi-page scraping, structured JSON/CSV/Excel export, and easy automation on Apify.

- **URL**: https://apify.com/igview-owner/facebook-search-scraper.md
- **Developed by:** [Sachin Kumar Yadav](https://apify.com/igview-owner) (community)
- **Categories:** Social media, Videos, Automation
- **Stats:** 43 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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 Search Scraper - Extract Videos from Facebook 🎥

**Scrape Facebook videos by search query** - Fast, reliable, and easy to use. Extract video metadata, author details, thumbnails, and engagement metrics from Facebook search results. Perfect for content research, trend analysis, and social media monitoring.

### 🌟 Why Use This Scraper?

- ✅ **Simple Search** - Just enter keywords and get videos
- ✅ **Multi-Page Support** - Scrape 1-100 pages automatically
- ✅ **Complete Data** - Video URLs, titles, descriptions, thumbnails, views, and author info
- ✅ **Export Ready** - Download as JSON, CSV, or Excel
- ✅ **No Coding Required** - User-friendly interface

### 🚀 Quick Start

1. **Enter Search Query** - Type keywords like "funny videos", "cooking recipes", or "travel vlogs"
2. **Set Pages** - Choose how many pages to scrape (default: 1 page)
3. **Click Run** - Start scraping and get results in seconds
4. **Download Data** - Export your dataset in JSON, CSV, or Excel format

### 📋 Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| **Search Query** | String | ✅ Yes | Keywords to search for videos (e.g., "funny videos", "music") |
| **Maximum Pages** | Number | No | Number of pages to scrape (1-100, default: 1) |

#### Example Input

```json
{
  "query": "funny videos",
  "maxPages": 5
}
```

### 📊 Output Data

Each video includes:

```json
{
  "type": "search_video",
  "video_id": "1949300282674280",
  "video_url": "https://www.facebook.com/reel/1949300282674280/",
  "title": "Funny video compilation",
  "description": "Best funny moments compilation...",
  "author": {
    "name": "Funny Videos",
    "url": "https://www.facebook.com/funnyvideos",
    "is_verified": false,
    "id": "61580435166315"
  },
  "thumbnail": "https://scontent-ord5-2.xx.fbcdn.net/...",
  "time_and_views_raw": "9 hours ago · 449 views",
  "search_query": "funny videos",
  "page_number": 1
}
```

#### Data Fields Explained

- **video_id** - Unique Facebook video identifier
- **video_url** - Direct link to the video
- **title** - Video title/headline
- **description** - Full video description with hashtags
- **author** - Creator information (name, profile URL, verification status)
- **thumbnail** - Video thumbnail image URL
- **time_and_views_raw** - Upload time and view count
- **search_query** - Your search keywords
- **page_number** - Which page this video was found on

### 💡 Use Cases

#### 🎯 Content Research

Find trending videos in your niche for content inspiration and competitor analysis.

#### 📈 Trend Analysis

Track viral videos and popular content patterns across different topics.

#### 🔍 Social Listening

Monitor brand mentions, product reviews, and customer feedback in videos.

#### 📊 Market Research

Analyze video content, engagement patterns, and audience preferences.

#### 🎬 Creator Discovery

Find influencers and content creators in specific niches.

### ⚙️ How It Works

1. **Search** - The scraper searches Facebook using your keywords
2. **Extract** - Collects video data from search results
3. **Paginate** - Automatically fetches multiple pages if requested
4. **Export** - Saves all data to your Apify dataset

### 📦 Export Options

Download your scraped data in multiple formats:

- **JSON** - For developers and API integration
- **CSV** - For Excel and data analysis
- **Excel** - Ready-to-use spreadsheet format
- **API** - Access data programmatically

### ❓ Frequently Asked Questions

#### How many videos can I scrape?

Each page contains approximately 7-10 videos. You can scrape up to 100 pages per run.

#### How long does it take?

Typically 5-10 seconds per page. A 10-page scrape takes about 1-2 minutes.

#### Can I schedule automatic scraping?

Yes! Use Apify's scheduling feature to run the scraper daily, weekly, or at custom intervals.

#### What data formats are supported?

Export as JSON, CSV, Excel, or access via Apify API.

#### Is this legal?

This scraper only collects publicly available data from Facebook search results.

### 🔗 Related Scrapers

- [Facebook Page Video Downloader](https://apify.com/igview-owner/facebook-page-video-downloader) - Download videos from Facebook pages
- [Facebook Marketplace Data Scraper](https://apify.com/igview-owner/facebook-marketplace-data-scraper) - Scrape Facebook Marketplace data
- [Facebook Page Details Extractor](https://apify.com/igview-owner/facebook-page-details-extractor) - Extract details from Facebook pages
- [Facebook Page Reels Extractor](https://apify.com/igview-owner/facebook-page-reels-extractor) - Extract reels from Facebook pages

### 🏷️ Keywords

Facebook video scraper, Facebook search scraper, video data extraction, social media scraper, Facebook API alternative, video metadata scraper, content research tool, social listening, trend analysis, Facebook video downloader, Apify actor, web scraping, data extraction, Facebook automation, FB video analytics

***

### 🛠️ Technical Details

- **Runtime**: Node.js with Apify SDK
- **Rate Limiting**: Built-in to respect platform limits
- **Error Handling**: Automatic retries and fallback mechanisms
- **Data Quality**: Clean, structured JSON output

### 📞 Support

Need help? Have questions? Contact us through:

- Apify Console support
- Actor discussion forum

***

**Start scraping Facebook videos today!**

# Actor input Schema

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

💬 Enter your search keyword or phrase (e.g., 'cat videos', 'cooking tips', 'tech reviews'). This is the main search term to find videos on Facebook.

## `maxPages` (type: `integer`):

📊 Number of result pages to scrape (1–100). Each page returns multiple videos. More pages = more results but longer runtime.

## Actor input object example

```json
{
  "query": "cat videos",
  "maxPages": 1
}
```

# Actor output Schema

## `videos_overview` (type: `string`):

Open the dataset view with an overview of all videos including title, author, thumbnail, and engagement data.

# 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 = {
    "query": "cat videos",
    "maxPages": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("igview-owner/facebook-search-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 = {
    "query": "cat videos",
    "maxPages": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("igview-owner/facebook-search-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 '{
  "query": "cat videos",
  "maxPages": 1
}' |
apify call igview-owner/facebook-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,igview-owner/facebook-search-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/elV2eL6iTfxc9Ub1a/builds/KfhAIZxbDjHYfm1nS/openapi.json
