# Facebook Events Scraper (`icoe-man/facebook-events-scraper`) Actor

A facebook events scraper: collect public events by keyword, by city, from a page or by event link, with dates, places and counts. No attendee lists. Export JSON, CSV or Excel.

- **URL**: https://apify.com/icoe-man/facebook-events-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

Pay per event

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

Pick a mode and tell this Actor where to look: a keyword, a city events page, a public page or a single event link. This Actor covers public events from pages, cities and keywords; no attendee lists. Each event comes back with its title, date, place and counts, as a clean table you can download or pass on to other tools.

### What it does

Pick a **Mode**, fill in the fields listed for it and start the run. Each run collects one kind of result; fields that belong to other modes are ignored. Links must be full addresses: short links are not accepted, so open them first and copy the full address. Pick **Live** under **Freshness** to always collect fresh data.

### Modes

#### Search events

Searches public Facebook events by keyword and collects their dates, places and counts. Mode `events-search`: fill in **Keywords** (up to 100 entries), and **Time range** (optional). For each entry, the Actor collects up to **Max results per target** events (100 by default, at most 1000). Each event becomes one item in the dataset, charged as **Events search**.

Each event looks like this:

```json
{
  "status": "ok",
  "type": "event",
  "platform": "facebook",
  "id": "1234567890123456",
  "url": "https://www.facebook.com/events/1234567890123456/",
  "title": "Example Summer Music Festival",
  "startsAt": "2026-12-05T18:00:00Z",
  "isOnline": false,
  "placeName": "Example Park",
  "host": {},
  "coverUrl": "https://scontent.xx.fbcdn.net/v/t39.30808-6/example.jpg",
  "metrics": {
    "interested": 1200,
    "going": 340
  },
  "details": {
    "facebook": {
      "isPast": false,
      "priceText": "Free",
      "eventKind": "PUBLIC_EVENT"
    }
  },
  "collectedAt": "2026-11-14T12:00:00Z",
  "input": {
    "keyword": "music festival",
    "maxItems": 10
  }
}
```

#### City events

Collects the public events Facebook lists for a city, with dates, places and counts. Mode `events-list`: fill in **City events links** (up to 100 entries), and **Time range** (optional). For each entry, the Actor collects up to **Max results per target** events (100 by default, at most 1000). Each event becomes one item in the dataset, charged as **Events list**.

Each event looks like this:

```json
{
  "status": "ok",
  "type": "event",
  "platform": "facebook",
  "id": "2345678901234567",
  "url": "https://www.facebook.com/events/2345678901234567/",
  "title": "Example Summer Music Festival",
  "startsAt": "2026-12-05T18:00:00Z",
  "isOnline": false,
  "placeName": "Example Park",
  "host": {},
  "coverUrl": "https://scontent.xx.fbcdn.net/v/t39.30808-6/example.jpg",
  "metrics": {
    "interested": 1200,
    "going": 340
  },
  "details": {
    "facebook": {
      "isPast": false,
      "eventKind": "PUBLIC_EVENT"
    }
  },
  "collectedAt": "2026-11-14T12:00:00Z",
  "input": {
    "url": "https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547/",
    "maxItems": 20
  }
}
```

#### Page events

Collects the public events of a Facebook page, with dates, places and status. Mode `profile-events`: fill in **Page links** (up to 100 entries), and **Time range** (optional). For each entry, the Actor collects up to **Max results per target** events (100 by default, at most 1000). Each event becomes one item in the dataset, charged as **Profile events**.

Each event looks like this:

```json
{
  "status": "ok",
  "type": "event",
  "platform": "facebook",
  "id": "3456789012345678",
  "url": "https://www.facebook.com/events/3456789012345678/",
  "title": "Example Open Mic Night",
  "startsAt": "2026-12-12T19:30:00Z",
  "isOnline": false,
  "isCanceled": false,
  "placeName": "Example Venue",
  "host": {
    "id": "100000000000002",
    "username": "examplevenue",
    "displayName": "Example Venue"
  },
  "metrics": {},
  "details": {
    "facebook": {
      "isPast": false,
      "eventKind": "PUBLIC_EVENT"
    }
  },
  "collectedAt": "2026-11-14T12:00:00Z",
  "input": {
    "url": "https://www.facebook.com/brickyardoldtown",
    "maxItems": 20
  }
}
```

#### Event details

Collects the public details of single Facebook events: description, place, host and counts. Mode `event-get`: fill in **Event links** (up to 100 entries). The Actor returns one event for each entry. Each event becomes one item in the dataset, charged as **Event get**.

Each event looks like this:

```json
{
  "status": "ok",
  "type": "event",
  "platform": "facebook",
  "id": "1474625497812411",
  "url": "https://www.facebook.com/events/1474625497812411/",
  "title": "Example Summer Music Festival",
  "description": "A short example description of a public event, shown for illustration.",
  "startsAt": "2026-12-05T18:00:00Z",
  "isOnline": false,
  "isCanceled": false,
  "placeName": "Example Park",
  "city": "Example City",
  "latitude": 27.77,
  "longitude": -82.64,
  "host": {
    "id": "100000000000002",
    "username": "examplevenue",
    "displayName": "Example Venue",
    "verified": false
  },
  "coverUrl": "https://scontent.xx.fbcdn.net/v/t39.30808-6/example.jpg",
  "metrics": {
    "interested": 1234,
    "going": 345
  },
  "details": {
    "facebook": {
      "category": "Music",
      "isPast": false,
      "priceText": "Free",
      "ticketUrl": "https://www.example.com/",
      "eventKind": "PUBLIC_EVENT"
    }
  },
  "collectedAt": "2026-11-14T12:00:00Z",
  "input": {
    "url": "https://www.facebook.com/events/1474625497812411/",
    "maxItems": 1
  }
}
```

### Use cases

- Event research: see which public events run in a city or around a topic.
- Venue research: list the public events a venue page has announced.
- Local guides: collect dates and places of public events for a calendar.
- Market research: compare how many people show interest in similar events.

### Input

| Field | Title | Description |
| --- | --- | --- |
| `mode` | Mode | What to collect. Each run collects one kind of result; fill in the fields listed for that mode. |
| `keywords` | Keywords | Words to search public events for, like music festival. |
| `timeRange` | Time range | upcoming keeps events that have not started yet, past those that have. Leave empty for both. Events left out are not charged. Applied after reading where needed: a run may return fewer results than the maximum, and it ends early when three pages in a row hold no match. |
| `cityUrls` | City events links | Links of Facebook city event pages, like https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547/. |
| `pageUrls` | Page links | Links of public Facebook pages that host events, like https://www.facebook.com/brickyardoldtown, or just the page name. |
| `eventUrls` | Event links | Links of public Facebook events, like https://www.facebook.com/events/1474625497812411/. |
| `maxItems` | Max results per target | The most results to collect for each target. Each mode caps it at its own maximum; leave it empty for the mode default. Single-lookup modes return one item per target, whatever this is set to: Event details. |
| `freshness` | Freshness | Standard may return recently collected data, which is faster. Live always collects fresh data. |

Example:

```json
{
  "mode": "events-search",
  "keywords": [
    "music festival"
  ],
  "maxItems": 10,
  "freshness": "standard"
}
```

### Output

Each mode has its own table view in the dataset; the item shapes are shown under **Modes**.

Every item carries a `status` field. A target that fails gives one item with `status: "error"` and an `error` object with a `code` and a `message`. A mode that is missing a field it needs gives one such item and collects nothing.

### Pricing

You pay per result. Prices are in USD per 1,000 results and depend on your Apify plan.

| Event | Free | Bronze | Silver | Gold | Platinum | Diamond |
| --- | --- | --- | --- | --- | --- | --- |
| Event get | $4.949 | $4.025 | $4.025 | $4.025 | $4.025 | $4.025 |
| Events list | $2.389 | $1.943 | $1.689 | $1.399 | $1.399 | $1.399 |
| Events search | $2.389 | $1.943 | $1.689 | $1.399 | $1.399 | $1.399 |
| Profile events | $2.389 | $1.943 | $1.689 | $1.399 | $1.399 | $1.399 |

Errors and empty results are never charged, and the run stops when it reaches your spending limit.

Free plan: up to 10 results per run and 20 runs per day.

### FAQ

#### What does each mode return?

Search events gives public events that match a keyword. City events gives the public events listed for a city. Page events gives the public events of a page. Event details gives one event, with its description, host and ticket link when shown.

#### Do I get the people who plan to attend?

No. No attendee lists are returned; only public counts.

#### Are the counts exact?

Counts of interested and going people in event lists and searches are approximate, because the source rounds them.

#### Do I need to log in or share a Facebook account?

No. The Actor collects only public information and needs no login or cookies.

#### How many results can I collect, and what do I pay?

Set the maximum number of results per target in the input. You pay only for the results delivered, and a run stops when it reaches your spending limit. Errors and empty results are not charged.

#### Is this Actor affiliated with Facebook?

No. It is an independent tool, not affiliated with, endorsed by or sponsored by Facebook or Meta. It collects only information that is shown publicly on Facebook.

### Disclaimer

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

# Actor input Schema

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

What to collect. Each run collects one kind of result; fill in the fields listed for that mode.

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

Words to search public events for, like music festival.

## `timeRange` (type: `string`):

upcoming keeps events that have not started yet, past those that have. Leave empty for both. Events left out are not charged. Applied after reading where needed: a run may return fewer results than the maximum, and it ends early when three pages in a row hold no match.

## `cityUrls` (type: `array`):

Links of Facebook city event pages, like https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547/.

## `pageUrls` (type: `array`):

Links of public Facebook pages that host events, like https://www.facebook.com/brickyardoldtown, or just the page name.

## `eventUrls` (type: `array`):

Links of public Facebook events, like https://www.facebook.com/events/1474625497812411/.

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

The most results to collect for each target. Each mode caps it at its own maximum; leave it empty for the mode default. Single-lookup modes return one item per target, whatever this is set to: Event details.

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

Standard may return recently collected data, which is faster. Live always collects fresh data.

## Actor input object example

```json
{
  "mode": "events-search",
  "keywords": [
    "music festival"
  ],
  "cityUrls": [
    "https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547/"
  ],
  "pageUrls": [
    "https://www.facebook.com/brickyardoldtown"
  ],
  "eventUrls": [
    "https://www.facebook.com/events/1474625497812411/"
  ],
  "maxItems": 10,
  "freshness": "standard"
}
```

# Actor output Schema

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

All collected items in the default dataset.

# 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": "events-search",
    "keywords": [
        "music festival"
    ],
    "cityUrls": [
        "https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547/"
    ],
    "pageUrls": [
        "https://www.facebook.com/brickyardoldtown"
    ],
    "eventUrls": [
        "https://www.facebook.com/events/1474625497812411/"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("icoe-man/facebook-events-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": "events-search",
    "keywords": ["music festival"],
    "cityUrls": ["https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547/"],
    "pageUrls": ["https://www.facebook.com/brickyardoldtown"],
    "eventUrls": ["https://www.facebook.com/events/1474625497812411/"],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("icoe-man/facebook-events-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": "events-search",
  "keywords": [
    "music festival"
  ],
  "cityUrls": [
    "https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547/"
  ],
  "pageUrls": [
    "https://www.facebook.com/brickyardoldtown"
  ],
  "eventUrls": [
    "https://www.facebook.com/events/1474625497812411/"
  ],
  "maxItems": 10
}' |
apify call icoe-man/facebook-events-scraper --silent --output-dataset

```

## MCP server setup

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