# Facebook Event Search Scraper - Keyword Discovery (`scrapingmonkey/facebook-event-search-scraper`) Actor

Search public Facebook events by keyword with optional pagination. Collect event links, names, schedules, venues, images and attendance signals, with one result row per event.

- **URL**: https://apify.com/scrapingmonkey/facebook-event-search-scraper.md
- **Developed by:** [ScrapingMonkey](https://apify.com/scrapingmonkey) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 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. 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

Discover public Facebook events from keywords and export each matching event as a separate row. **Facebook Event Search Scraper** collects event names, links, schedules, venue information, images and visible attendance signals, with optional pagination for each query.

The original query stays with every result, making it easier to compare themes or build an event discovery pipeline. The table and JSON share the same flat column names.

| At a glance | Details |
|---|---|
| 📥 Input | One or more event search phrases |
| 📤 Output | One row per new event returned for a query |
| 📄 Pagination | `pagesPerQuery`, from 1 to 100; default 1 |
| 🔐 Facebook login | Not required |
| 💾 Delivery | One table, matching JSON and dataset exports |

### What the Facebook event search scraper collects 🔎

Search results can include the event ID, name, public URL, start time, displayed schedule, cover image, pricing text and venue details. Public interested and going counts are included when they can be extracted from the search result.

Each row includes `query` and the original `input`. Search cards contain less detail than a full event page: organizer lists, complete descriptions and ticket information belong in a follow-up event detail lookup.

### How to scrape Facebook event search results 🚀

1. Enter a word or phrase for each event search.
2. Set `pagesPerQuery` to the maximum number of pages to attempt.
3. Start the Actor and inspect event links and result statuses.
4. Export the rows or enrich selected URLs with Event Details Scraper.

```json
{"inputList":["art workshops","jazz festival"],"pagesPerQuery":2}
```

Queries are ordinary text. A phrase can mention a place or topic, but it is not a strict location or date filter.

### Event search data fields and output 📦

| Field group | Included data |
|---|---|
| Search context | Original input, normalized query and processing status |
| Event identity | ID, name, URL and event type |
| Schedule and state | Timestamp, UTC start date, displayed time, online and past flags |
| Visuals | Image and thumbnail links with alternative text |
| Public interest | Interested and going counts, social summary and pricing text |
| Location | Venue identity, address, coordinates and city information |

Complete illustrative success row, using sample event values rather than a live search claim:

```json
{
  "input": "art workshops",
  "status": "success",
  "id": "1204078958526949",
  "name": "Harbor Arts Weekend",
  "url": "https://www.facebook.com/events/1204078958526949/",
  "type": "public",
  "timestamp": 1789221600,
  "starts_at": "2026-09-12T14:00:00Z",
  "when_text": "Saturday, September 12, 2026 at 3 PM BST",
  "image_url": "https://images.example.com/harbor-arts-weekend.jpg",
  "thumbnail_url": "https://images.example.com/harbor-arts-weekend-small.jpg",
  "alt_text": "A poster for a community art afternoon",
  "social_text": "120 interested Â· 45 going",
  "interested_count": 120,
  "going_count": 45,
  "price_text": "Free admission",
  "is_online": false,
  "is_past": false,
  "is_happening_now": false,
  "place.id": "100400500600700",
  "place.type": "page",
  "place.name": "Harbor Arts Hall",
  "place.address": "12 Harbour Lane, Bristol",
  "place.latitude": 51.4545,
  "place.longitude": -2.5879,
  "place.city.id": "100300400500600",
  "place.city.page_id": "100300400500600",
  "place.city.username": "bristolcity",
  "place.city.name": "Bristol",
  "place.city.url": "https://www.facebook.com/bristolcity/",
  "place.city.profile_picture_url": "https://images.example.com/bristol.jpg",
  "place.city.is_verified": false,
  "query": "art workshops"
}
```

The table and JSON use the same literal dotted keys, such as `place.name`. Missing or empty objects become `null`; source defaults can remain empty strings, `0` or `false`. Failed rows preserve the query in `input`, set `status` to `failed` and leave event-data fields `null`.

This search schema contains scalar columns only. Every returned event remains one row.

### Input requirements and search coverage ⚙️

| Parameter | Type | Required | Default and limits |
|---|---|---|---|
| `inputList` | Array of strings | Yes | At least one non-empty search phrase; no configured item-count maximum |
| `pagesPerQuery` | Integer | No | Default `1`; minimum `1`, maximum `100` |

Whitespace around a query is removed. Blank phrases are invalid. There are no separate city, country, date-range or sort parameters.

The first result page counts as page 1. Pagination continues while Facebook supplies a new continuation cursor and the page budget remains. Page size and total coverage are not fixed. Event IDs are deduplicated within each query's page sequence; the same event can appear under different queries.

### Facebook event discovery use cases 🎯

#### Topic-based event discovery

Find public events around a creative activity, music genre or community theme and retain the phrase that surfaced each result.

#### Local programming research

Collect candidate events with place and schedule fields, then review their locations before adding them to a local calendar.

#### Event enrichment pipelines

Send selected result URLs to Event Details Scraper for descriptions, hosts, tickets and other event-page information.

#### Search-result comparisons

Run a consistent set of queries over time to compare which public events are returned, without treating the results as an exhaustive event census.

### Pricing and billable event search rows 💰

Check the Actor's **Pricing** tab for the current model and rate. Under dataset-item pricing, each saved event row can be billable, and a saved failed result can count too.

More pages can return more event rows. A blank or unavailable query, an empty first result page or a page that exhausts retries can produce a failed row. Retry attempts do not independently create dataset rows.

### Facebook event search API and integrations 🔌

Use the Actor ID from the API tab as `$ACTOR_ID` and your Apify token as `$APIFY_TOKEN`.

```bash
curl -X POST "https://api.apify.com/v2/acts/$ACTOR_ID/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"inputList":["art workshops","jazz festival"],"pagesPerQuery":2}'
```

Start discovery runs from a schedule or your application, then use a completion webhook to process the dataset. Results can flow into spreadsheets, an event database, Make or Zapier.

### Reliability and search limits ⚠️

Facebook search results depend on public availability and the search context. A place name in a query does not guarantee that every returned event is in that location. Missing dates, counts or venue information should be reviewed before use.

The Actor retries temporary request failures and retains rows already saved when a later page fails. Empty later pages do not add placeholder success rows. Login restrictions, changing results and storage failures can reduce or interrupt output.

### Frequently asked questions ❓

#### Can I filter by city or date range?

There are no dedicated filter fields. Include location or topic words in the query, then filter returned values in your workflow.

#### Do two pages mean a fixed number of events?

No. `pagesPerQuery` limits pages to attempt; Facebook controls page sizes and whether another page is available.

#### Why does an empty search produce a failed row?

The Actor uses `failed` when the first page has no public results to save. That status does not establish that the search was technically blocked.

#### Can one event appear more than once?

Duplicates are removed within a query's page sequence. An event matching two different queries can appear once for each query.

#### Are hosts and ticket links included?

The search row contains available search-card fields. Use Event Details Scraper for organizer, ticket and fuller event information.

### Support, responsible use 🛟

Share the run ID, exact query and `pagesPerQuery` value when reporting an issue. Keep tokens and private account information out of support messages.

Use public event information in accordance with applicable privacy, copyright and platform requirements.

# Actor input Schema

## `inputList` (type: `array`):

Add one non-empty event search keyword per item. Every input produces success or failed output.

## `pagesPerQuery` (type: `integer`):

Maximum number of result pages to request for each input.

## Actor input object example

```json
{
  "inputList": [
    "art"
  ],
  "pagesPerQuery": 1
}
```

# Actor output Schema

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

Actor dataset results with input and status columns.

# 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 = {
    "inputList": [
        "art"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapingmonkey/facebook-event-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 = { "inputList": ["art"] }

# Run the Actor and wait for it to finish
run = client.actor("scrapingmonkey/facebook-event-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 '{
  "inputList": [
    "art"
  ]
}' |
apify call scrapingmonkey/facebook-event-search-scraper --silent --output-dataset

```

## MCP server setup

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