# Facebook Video Search Scraper - Reels & Videos by Keyword (`headply/facebook-video-search-scraper`) Actor

Search Facebook videos and reels by keyword: caption, page, time, reactions, comments and duration. Track a topic on a schedule and get only new videos. No login, no cookies.

- **URL**: https://apify.com/headply/facebook-video-search-scraper.md
- **Developed by:** [Mayowa Ogedengbe](https://apify.com/headply) (community)
- **Categories:** Social media, Videos
- **Stats:** 16 total users, 7 monthly users, 95.8% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.75 / 1,000 post scrapeds

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/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 Video Search Scraper - Reels & Videos by Keyword

Search **Facebook videos and reels by keyword** and export each result: caption, page, time, reactions, comments,
duration and link. Track a topic, product or brand on a schedule and get **only new videos** each time.

### Why people use it

- ✅ **No Facebook account, no login, no cookies.**
- 🔎 **Keyword search across Facebook video**, reels included, with several keywords in one run.
- 🔔 **Topic tracking.** On a schedule it returns only videos you haven't received yet, at a lower price.
- 🎬 **Reel and video details**: duration and a direct video file link on request.
- 💸 **From $1.75 per 1,000 results.**

### Quick start

1. Add words or phrases to **Keywords**, for example `spacex`, `air fryer recipe` or your brand.
2. Set **Max results per search** (e.g. 50).
3. Optional: **Post types** → reels only; **Reel details** for duration and video file.
4. Press **Start**.

You can also paste a Facebook video search link (`https://www.facebook.com/search/videos/?q=…`).

### What you get for each result

| Field | Example |
|---|---|
| `postType` | `reel` or `video` |
| `text` | "TERAFAB: the next step to becoming a galactic civilization" |
| `authorName` | `SpaceX` (the page or profile that posted it) |
| `createdAt` | `2026-03-22T13:50:59.000Z` |
| `reactionCount`, `commentCount`, `shareCount` | `6759`, `279`, `454` |
| `videoDurationSec` | `27` |
| `url` | `https://www.facebook.com/reel/1220259829889030/` |
| `source` | `{ "kind": "video-search", "target": "spacex" }` |

Download as JSON, CSV, Excel or HTML, or browse the **Posts, reels & videos** table.

### Pricing

Prices drop on higher Apify plans.

| What | Price per 1,000 (Free plan → Gold and above) |
|---|---|
| Result | **$2.50** → $1.75 |
| New result since your last run (tracking) | $1.00 → $0.70 |
| Each page, group or search checked on a repeat monitoring run | $0.002 per check |
| Each run | $0.001 |

1,000 results ≈ **$2.50**. Tracking 5 keywords daily with ~10 new videos per keyword a day ≈ **$1.50 a month for
new videos plus $0.30 for checks and $0.03 for runs**.

**Free Apify plan:** runs started on Apify's free plan return up to **10 results per run**. Any paid Apify plan
removes this limit.

### Track a topic

Add your keywords, switch on **Only new since last run**, then **Schedule** the task. Pipe new videos to Slack, Sheets
or a dashboard with n8n, Make or Zapier (Apify node → *Run an Actor and get dataset*). The *API* tab has code examples.

### Good to know

- This is **video & reel** search. To search ordinary posts by keyword (text, photo and link posts), use the
  [Facebook Post Search Scraper](https://apify.com/headply/facebook-post-search-scraper); for a page's full history
  use the [Facebook Posts Scraper](https://apify.com/headply/facebook-posts-scraper).
- Results come in Facebook's own relevance order, so tracking runs return each video once, the first time it appears.
- Facebook rounds some very large totals for logged-out visitors, so a post with more than 10,000 reactions can
  show exactly `10000`.
- Play counts are often hidden from logged-out visitors (`null`). Video file links expire after some hours.
- **More than 10 results per run** needs any paid Apify plan; the free plan is limited to 10 results per run.

### More Facebook tools

- [Facebook Post Search Scraper](https://apify.com/headply/facebook-post-search-scraper): public posts by keyword.
- [Facebook Reels Scraper](https://apify.com/headply/facebook-reels-scraper): all reels of a page.
- [Facebook Posts Scraper](https://apify.com/headply/facebook-posts-scraper): posts from public pages.
- [Facebook Groups Scraper](https://apify.com/headply/facebook-groups-scraper): posts from public groups.
- [Facebook Marketplace Scraper](https://apify.com/headply/facebook-marketplace-scraper): listings and prices.

Something not working as expected? Open the **Issues** tab and we'll take a look.

# Actor input Schema

## `searchQueries` (type: `array`):

One search per line. In "Marketplace listings" mode each keyword is a Marketplace search in the location below; otherwise each is a video & reel search across Facebook.

## `maxItemsPerTarget` (type: `integer`):

Upper bound for each page, group, Marketplace search or keyword. Results are fetched newest first until this is reached or nothing more is available.

## `contentType` (type: `string`):

Filter page and group posts by type. Filtered-out posts are never charged. ("Page reels" mode always keeps reels only.)

## `enrichReels` (type: `boolean`):

Open each reel to add its duration, a direct video file URL and the comment count when the feed lacks them. One extra request per reel; no extra charge.

## `onlyNewSinceLastRun` (type: `boolean`):

For schedules. Returns and bills only items not delivered by an earlier run with the same monitor name. The first run delivers the latest items at the standard price; later runs return only new items, at the lower new-item price. For Marketplace, "new" means listed after the previous run. Repeat runs also bill a small fee per page, group or search checked, because the check costs the same whether or not anything is new.

## `monitorName` (type: `string`):

Label for this schedule's memory. Runs with the same name share memory; use one name per schedule or client. Change it to start fresh.

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

Any mix of Facebook links, one per line: pages (https://www.facebook.com/nasa), public groups (https://www.facebook.com/groups/ReactJSDevelopers), Marketplace searches (https://www.facebook.com/marketplace/nyc/search?query=bike\&maxPrice=300) and video searches (https://www.facebook.com/search/videos/?q=spacex). Each link is detected and scraped the right way.

## `pages` (type: `array`):

Page or public profile names or links: nasa, @nasa, https://www.facebook.com/nasa or profile.php?id=… links. Returns the newest posts first.

## `groups` (type: `array`):

Public group names, ids or links (ReactJSDevelopers or https://www.facebook.com/groups/ReactJSDevelopers). Private groups cannot be read without login and return nothing.

## `mode` (type: `string`):

Decides how keywords are used and what an empty run returns. "Page reels" keeps only reels from the pages. "Marketplace listings" turns keywords into Marketplace searches in the chosen location; every other mode turns keywords into video & reel searches. Links in "Facebook URLs" are always recognized automatically.

## `location` (type: `string`):

City as it appears in Marketplace links: facebook.com/marketplace/<this>/… (e.g. nyc, la, chicago, london, sydney, or a numeric location id). Open Marketplace in a browser, pick the city, and copy that part of the link.

## `category` (type: `string`):

Optional. Browse a whole category instead of searching, e.g. vehicles, electronics, furniture, propertyrentals. Used only when no keywords are given.

## `minPrice` (type: `integer`):

Marketplace only. Lowest price, in the location's currency.

## `maxPrice` (type: `integer`):

Marketplace only. Highest price, in the location's currency.

## `daysSinceListed` (type: `string`):

Marketplace only. Keep listings posted within this window.

## `itemCondition` (type: `string`):

Marketplace only.

## `maxConcurrency` (type: `integer`):

Pages, groups and searches processed in parallel.

## `maxRequestRetries` (type: `integer`):

A target that fails is retried on a fresh connection up to this many times; items already delivered are never repeated or re-charged.

## `proxyConfiguration` (type: `object`):

Leave as is. Facebook only serves public pages, groups and Marketplace in full to residential addresses, so that is the default.

## Actor input object example

```json
{
  "searchQueries": [
    "spacex"
  ],
  "maxItemsPerTarget": 20,
  "contentType": "all",
  "enrichReels": false,
  "onlyNewSinceLastRun": false,
  "monitorName": "default",
  "mode": "videoSearch",
  "location": "nyc",
  "daysSinceListed": "any",
  "itemCondition": "any",
  "maxConcurrency": 5,
  "maxRequestRetries": 4,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Dataset with every post, reel, video and listing from this run.

## `summary` (type: `string`):

Counts per page, group or search, skipped inputs, items skipped as already delivered, request success ratio and bandwidth.

# 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 = {
    "searchQueries": [
        "spacex"
    ],
    "maxItemsPerTarget": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("headply/facebook-video-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 = {
    "searchQueries": ["spacex"],
    "maxItemsPerTarget": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("headply/facebook-video-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 '{
  "searchQueries": [
    "spacex"
  ],
  "maxItemsPerTarget": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call headply/facebook-video-search-scraper --silent --output-dataset

```

## MCP server setup

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