# 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:** 38 total users, 3 monthly users, 90.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 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 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("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=igview-owner/facebook-search-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/elV2eL6iTfxc9Ub1a/builds/KfhAIZxbDjHYfm1nS/openapi.json
