# Facebook Search Scraper (`icoe-man/facebook-search-scraper`) Actor

A facebook video search scraper: search public Facebook videos and reels by keyword and export the results with links, authors, dates and lengths as JSON, CSV or Excel.

- **URL**: https://apify.com/icoe-man/facebook-search-scraper.md
- **Developed by:** [Icoe Man](https://apify.com/icoe-man) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 search videos

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 Search Scraper

Get a downloadable list of public Facebook videos and reels you can sort and compare in a spreadsheet. Add one or more words or phrases in Keywords, and the tool searches for each one. Narrow your list by posting date or video length, then follow the links to watch the originals.

### What you get

Under **What to collect**, choose the type of results you want. Fill in the fields for that choice, then start the run. Each run returns one kind of result. The Actor ignores fields from other modes. Choose **Live** under **Data freshness** to collect fresh data on every run.

### Collection modes

#### Search videos

Finds public Facebook videos and reels that match your search terms. In `search-videos` mode, fill in **Keywords** (up to 100 entries). Use **Result limit per target** to set how many posts the Actor can collect per entry. The default is 100 and the highest setting is 1000. Each post appears in its own row and counts as one **Search videos** charge.

Example result for one post:

```json
{
  "status": "ok",
  "type": "post",
  "platform": "facebook",
  "id": "2168472750417243",
  "url": "https://www.facebook.com/reel/2168472750417243",
  "author": {
    "id": "936348285443068774",
    "displayName": "Example User"
  },
  "createdAt": "2026-11-04T11:01:58Z",
  "metrics": {},
  "media": [
    {
      "kind": "video",
      "url": "https://www.facebook.com/reel/2168472750417243",
      "thumbnailUrl": "https://scontent-iad3-2.xx.fbcdn.net/v/t15.5256-10/855747068_2300459234084469_4760215528291808281_n.jpg?stp=dst-jpg_tt6&cstp=mx1072x1906&ctp=s960x960&_nc_cat=109&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=5fad0e&_nc_ohc=M3GWJ63JppEQ7kNvwFJEP22&_nc_oc=AdryFbRAEgGQukJNZVYz4iZIGACo382xyOrsu2huCgytOucjs9qUCSCkBAq7TBslmFA&_nc_zt=23&_nc_ht=scontent-iad3-2.xx&_nc_gid=lzKeNYwQgR0vohiToe81Vg&_nc_ss=78180&oh=00_AQQ8DWx04suY3PxI7_GyRScDz46gUaV5pVhGPisTzKuNgA&oe=6AF9B3D3",
      "durationSec": 10
    }
  ],
  "details": null,
  "collectedAt": "2026-11-11T03:37:09Z",
  "input": {
    "keyword": "world cup",
    "maxItems": 30
  }
}
```

### Ways to use the data

- See how different public videos and reels cover a topic you're researching.
- Find public videos that mention your brand or product.
- Save links to reels on a topic for your next content brainstorm.
- Find clips that match a keyword and compare how long they run.

### What to enter

| Field key | Name on the form | What to enter |
| --- | --- | --- |
| `mode` | What to collect | Choose one type of result per run, then fill in the fields for that choice. |
| `keywords` | Keywords | Enter a word or phrase to search for, such as "electric cars". |
| `maxItems` | Result limit per target | Set the most results to collect from each target, up to the mode's maximum. Leave this blank to use the mode's default limit. |
| `freshness` | Data freshness | Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run. |

Example input:

```json
{
  "mode": "search-videos",
  "keywords": [
    "electric cars"
  ],
  "maxItems": 20,
  "freshness": "standard"
}
```

### Your results

Each mode has its own view of the results table. See **Collection modes** for what each mode returns.

Every row has a `status` field. For each entry that fails, the Actor returns one row with `status: "error"`. The `error` field has a `code` and a `message`. If a required field for your mode is blank, the run returns one error row and collects no data.

### Pricing

You pay per result. Prices for each Apify plan are in USD per 1,000 results.

| What you pay for | Free | Bronze | Silver | Gold | Platinum | Diamond |
| --- | --- | --- | --- | --- | --- | --- |
| Search videos | $3.750 | $3.000 | $2.525 | $2.000 | $2.000 | $2.000 |

You don't pay for errors or empty results. The run stops when it reaches your spending limit.

On the free plan, you can collect up to 100 results per run and make up to 20 runs per day.

### Common questions

#### What do I get for each video or reel?

For each match, you get a link, the author's name, the posting date, the video length, and a thumbnail.

#### Do I need a Facebook account to run a search?

No. Enter your search terms in Keywords. You don't need to sign in to Facebook or share browser cookies.

#### How many results can I get, and what determines the cost?

Use Result limit per target to set the maximum number of results for each keyword. The free plan allows up to 100 results per run and 20 runs per day. You pay only for the results you get.

#### What happens if no videos or reels match my search?

You'll get an empty result list and no per-result charge.

#### Is this tool affiliated with Facebook?

No. This is an independent tool. Neither Facebook nor Meta is affiliated with it, endorses it, or sponsors it. The tool collects only public information from Facebook.

### Disclaimer

This Actor is not affiliated with, endorsed by, or sponsored by Facebook. All trademarks belong to their owners.

# Actor input Schema

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

Choose one type of result per run, then fill in the fields for that choice.

## `keywords` (type: `array`):

Enter a word or phrase to search for, such as "electric cars".

## `sortBy` (type: `string`):

Choose the order of the post results.

## `postedAfter` (type: `string`):

Enter a date in UTC, such as 2026-11-01, to include posts from that day onward. Leave blank for no start date.

## `postedBefore` (type: `string`):

Enter a date in UTC, such as 2026-11-15, to include only posts before that day. Leave blank for no cutoff.

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

Set the most results to collect from each target, up to the mode's maximum. Leave this blank to use the mode's default limit.

## `freshness` (type: `string`):

Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run.

## Actor input object example

```json
{
  "mode": "search-videos",
  "keywords": [
    "electric cars"
  ],
  "maxItems": 20,
  "freshness": "standard"
}
```

# Actor output Schema

## `results` (type: `string`):

See everything this run collected in one table.

# 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 = {
    "mode": "search-videos",
    "keywords": [
        "electric cars"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("icoe-man/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 = {
    "mode": "search-videos",
    "keywords": ["electric cars"],
    "maxItems": 20,
}

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

```

## MCP server setup

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