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

\[ 1k/1.49$ ] Facebook Events Scraper collects public Facebook events without login: Page-hosted upcoming and past events, single events by URL or ID, city and online event lists and keyword search, with optional details such as end time, address, organizers, tickets and going counts.

- **URL**: https://apify.com/alpha-scraper/facebook-events-scraper.md
- **Developed by:** [Alpha Scraper](https://apify.com/alpha-scraper) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

**Facebook Events Scraper** collects public Facebook events and returns them as clean, structured data. Give Facebook Events Scraper a Facebook Page, an event link, a city or a keyword, and it returns each event with its name, start time, status, place, organizers, ticket link, interested and going counts, category and cover image.

Facebook Events Scraper reads publicly visible Facebook content only. You do not need a Facebook account, a login or an API key, so you can go from a Facebook Page name such as `TheFillmore` to a ready list of events in a few minutes.

> **📌 At a glance**
>
> - **Input:** Facebook Page names or URLs, single Facebook event links or ids, city names or place ids, `online`, and search keywords
> - **Output:** one dataset record per Facebook event, upcoming events first and past events after
> - **Details:** an optional detail read adds description, end time, address, coordinates, organizers and counts
> - **Control:** `maxItems` sets a separate limit for every Page, location and search query

Teams use Facebook Events Scraper for event discovery, venue monitoring, local marketing and lead research. Every Facebook event comes back in the same JSON structure, so the data is easy to export or feed into a dashboard.

### 🔹 Facebook Events Scraper – Key Features

Facebook Events Scraper covers the four ways people look for events on Facebook.

- **Page events:** Facebook Events Scraper reads the events hosted by a Page, upcoming first and then past.
- **Single events:** give Facebook Events Scraper an event URL or a numeric event id and get that one event.
- **City discovery:** Facebook Events Scraper reads the public event list of a city, or use `online` for online events.
- **Keyword search:** Facebook Events Scraper searches events by phrase, for example a festival or a genre.
- **Optional details:** add description, end time, timezone, full address, coordinates, organizers, ticket link, counts, category and cover image.
- **Consistent records:** every Facebook event has the same fields, and missing values are returned as `null`.
- **Duplicate removal:** Facebook Events Scraper returns an event found through several sources once.

> **✅ Why use this Actor**
>
> Facebook Events Scraper replaces manual browsing of event tabs. It pages through Facebook event lists, stops at your limit and delivers fields you can export as JSON, CSV or Excel.

### 🔍 What Data Does Facebook Events Scraper Extract?

Each dataset item describes one Facebook event. The table groups the fields by purpose.

| Group | Fields | What you get |
|---|---|---|
| Identity | `id`, `resolvedEventId`, `url`, `canonicalUrl`, `name` | Event id, links and title |
| Timing | `startTime`, `endTime`, `startTimestamp`, `endTimestamp`, `timezone`, `dayTimeSentence` | ISO times, Unix times and the readable date line |
| Status | `status`, `isCanceled`, `isPast`, `isHappeningNow`, `isOnline`, `onlineEventType` | Whether the Facebook event is scheduled, past or canceled |
| Place | `location` | Venue name, address, city, coordinates, place id and place type |
| People | `organizers`, `performers`, `linkedGroup` | Hosts, notable performers and the linked Facebook group |
| Tickets | `ticketUrl`, `ticketProvider`, `priceText`, `priceRange` | Ticket link, seller and price information |
| Audience | `interestedCount`, `goingCount`, `respondedCount` | Public interest numbers |
| Content | `description`, `category`, `categories`, `eventKind`, `frequency`, `coverImageUrl` | Text, topic labels, event kind and cover image |
| Source | `listType`, `sourcePage`, `source`, `scrapedAt`, `number`, `detailAvailable` | Where the Facebook event came from and when it was collected |

The `status` field is `scheduled`, `past` or `canceled`. The `listType` field tells you which list produced the record: `upcoming`, `past`, `city`, `online`, `search` or `direct`.

### 🚀 How to Use Facebook Events Scraper

Running Facebook Events Scraper takes a few steps in Apify Console.

- **Step 1 – Open the Actor:** start Facebook Events Scraper from the Apify Store and go to the Input tab.
- **Step 2 – Add your sources:** enter Facebook Page names in `pages`, Page links in `startUrls`, event links in `eventUrls`, cities in `locations` or keywords in `searchQueries`.
- **Step 3 – Choose event types:** keep `eventTypes` on upcoming and past, or select only upcoming events.
- **Step 4 – Decide on details:** leave `includeDetails` on for full records, or switch it off for a faster list.
- **Step 5 – Set a limit:** choose `maxItems` to cap the Facebook events per Page, location and query.
- **Step 6 – Run and export:** start Facebook Events Scraper, then download the dataset as JSON, CSV or Excel, or read it through the Apify API.

> **💡 Tip:** the input is prefilled with the sample Page `TheFillmore`. If you only want your own sources, replace it before you run Facebook Events Scraper.

### 📥 Facebook Events Scraper Input

Facebook Events Scraper has eight input fields. All of them are optional, but you need at least one of `pages`, `startUrls`, `eventUrls`, `locations` or `searchQueries`.

| Field | Type | Description |
|---|---|---|
| `pages` | array | Facebook Page usernames, numeric ids or Page URLs, for example `TheFillmore`. Prefilled with `TheFillmore`. |
| `startUrls` | array | Facebook Page URLs such as `https://www.facebook.com/TheFillmore/events`. They are handled like `pages`, and a tab suffix is ignored. Default: empty. |
| `eventUrls` | array | Single Facebook events as `https://www.facebook.com/events/<id>/` links or numeric ids. These are not limited by `maxItems`. Default: empty. |
| `locations` | array | A city name such as `San Francisco` or `London, United Kingdom`, a numeric Facebook place id, an events explore URL, or `online`. Default: empty. |
| `searchQueries` | array | Keywords such as `jazz festival`. Facebook shows only the first result page, about 7 events, to logged-out visitors. Default: empty. |
| `eventTypes` | array | `upcoming`, `past` or both, in the order selected. Applies to Pages only. Default: both. If none is selected, only upcoming events are read. |
| `includeDetails` | boolean | Adds description, end time, timezone, address, coordinates, organizers, ticket link, counts, category and cover image. Default: on. |
| `maxItems` | integer | Maximum events per Page, per location and per search query. Minimum 1, default 30. |

City names are looked up in the public Facebook places directory. A name that cannot be resolved is skipped, so use the place id or the explore URL instead.

Here is a sample input for Facebook Events Scraper that reads one venue and one city:

```json
{
  "pages": ["TheFillmore"],
  "startUrls": [],
  "eventUrls": [],
  "locations": ["San Francisco"],
  "searchQueries": ["jazz festival"],
  "eventTypes": ["upcoming"],
  "includeDetails": true,
  "maxItems": 20
}
```

### 📤 Facebook Events Scraper Output

Facebook Events Scraper writes one record per event to the default dataset. Fields without a value are returned as `null`, so every record has the same shape. This is a record from a Page with `includeDetails` switched on:

```json
{
  "number": 1,
  "id": "1000000000000001",
  "resolvedEventId": null,
  "url": "https://www.facebook.com/events/1000000000000001/",
  "canonicalUrl": "https://www.facebook.com/events/1000000000000001/",
  "name": "Sample Band Live: Winter Tour",
  "description": "An evening of live music at Sample Music Hall. Doors open at 7 PM.",
  "startTime": "2026-12-05T04:00:00.000Z",
  "endTime": "2026-12-05T07:00:00.000Z",
  "startTimestamp": 1796443200,
  "endTimestamp": 1796454000,
  "timezone": "PST",
  "dayTimeSentence": "Fri, Dec 4 at 8:00 PM PST",
  "status": "scheduled",
  "isCanceled": false,
  "isPast": false,
  "isHappeningNow": false,
  "isOnline": false,
  "onlineEventType": null,
  "location": {
    "name": "Sample Music Hall",
    "address": "123 Example Street, San Francisco, CA 94102",
    "city": "San Francisco",
    "latitude": 37.7749,
    "longitude": -122.4194,
    "placeId": "100000000000002",
    "placeType": "PLACE"
  },
  "organizers": [
    { "id": "100000000000003", "name": "Sample Music Hall", "url": "https://www.facebook.com/samplemusichall", "isVerified": true, "imageUrl": "https://example.com/organizer.jpg" }
  ],
  "performers": null,
  "coverImageUrl": "https://example.com/cover.jpg",
  "coverImageWidth": 1920,
  "coverImageHeight": 1080,
  "ticketUrl": "https://example.com/tickets",
  "ticketProvider": "Example Tickets",
  "priceText": "From $25",
  "priceRange": "$25 - $45",
  "interestedCount": 1200,
  "goingCount": 340,
  "respondedCount": 1540,
  "category": "Music",
  "categories": ["Music", "Nightlife"],
  "eventKind": "PUBLIC_TYPE",
  "frequency": null,
  "linkedGroup": null,
  "listType": "upcoming",
  "sourcePage": "https://www.facebook.com/TheFillmore",
  "detailAvailable": true,
  "source": { "type": "page", "input": "TheFillmore" },
  "scrapedAt": "2026-11-07T10:15:00.000Z"
}
```

#### 🧾 Output field guide

- `id`, `url` and `canonicalUrl` identify the event, and `resolvedEventId` appears when a series link leads to one occurrence.
- `startTime`, `endTime`, `startTimestamp` and `endTimestamp` give the schedule in two formats.
- `status`, `isCanceled`, `isPast` and `isHappeningNow` describe the state of the event.
- `location` holds the venue name, address, city, coordinates, place id and place type.
- `organizers` lists each host with id, name, URL, verification flag and image.
- `ticketUrl`, `ticketProvider`, `priceText` and `priceRange` describe tickets when Facebook shows them.
- `interestedCount`, `goingCount` and `respondedCount` are public audience numbers.
- `detailAvailable` is `false` when the event page could not be read, so only listing fields are filled.
- `source` shows the `type` (`page`, `city`, `online`, `search` or `event`) and the `input` that found the record.

### 🏙️ How to Scrape Facebook Events by City with Facebook Events Scraper

City discovery is the quickest way to see what is on in a place. Add a city to `locations`, and Facebook Events Scraper reads the public Facebook event list for that area.

You can write a plain city name, add a country such as `Berlin, Germany`, or paste a place id or an events explore URL. Use `online` to collect virtual events. Facebook Events Scraper applies `maxItems` to each location, so two cities with a limit of 25 can return up to 50 events.

### 🔎 How to Find Facebook Events by Keyword with Facebook Events Scraper

Put a phrase such as `jazz festival` into `searchQueries`. Facebook Events Scraper returns the events that Facebook lists on the first result page. Logged-out visitors see about 7 events per query, so add several related phrases to widen the list.

### 🎯 Facebook Events Scraper Use Cases

Facebook Events Scraper fits many workflows that depend on public Facebook events.

- **Event discovery:** build a list of what is happening in a city this month.
- **Venue monitoring:** track the upcoming programme of clubs, theatres and halls on Facebook.
- **Local marketing:** find events where your audience gathers and plan partnerships.
- **Lead research:** collect organizers and ticket providers behind Facebook events.
- **Calendar building:** export dates, places and links into a spreadsheet or a calendar tool.
- **Competitor analysis:** use Facebook Events Scraper to compare how many events rival venues host and how many people show interest.

### 💰 Pricing

Facebook Events Scraper runs on the Apify platform. The current pricing is shown on the Actor page in the Apify Store, and your cost depends on the number of results and the resources used by the run.

> **💡 Cost tip:** start with a small `maxItems` value such as 10 or 20. If you do not need descriptions, organizers or counts, switch `includeDetails` off to keep runs shorter.

### 💡 Tips and Best Practices

- **Start small:** a short test run confirms the Page name and shows the fields before a large collection.
- **Clear the sample Page:** remove the prefilled `TheFillmore` if you only want your own sources.
- **Mix sources:** one run can combine Pages, cities, keywords and single events, and every entry gets its own limit.
- **Use the place id:** if a city name is skipped, paste its place id or explore URL into `locations`.
- **Pick event types:** set `eventTypes` to upcoming only when you do not need history.
- **Check nulls:** a `null` field means Facebook did not show the value, not that Facebook Events Scraper failed.
- **Schedule regular runs:** schedule Facebook Events Scraper in Apify to keep your event list up to date.

> **⚠️ Important:** only collect data you are allowed to use. Public Facebook events can name organizers, so follow Facebook's terms and the privacy rules that apply to you, such as GDPR. This Actor is not affiliated with or endorsed by Meta.

### ❓ Frequently Asked Questions

#### 🔎 What is Facebook Events Scraper?

Facebook Events Scraper is an Apify Actor that collects public events from Facebook Pages, event links, city discovery lists and keyword search. It returns time, place, organizers, tickets and counts in a structured format.

#### 🧭 How do I scrape events from a Facebook Page?

Enter the Page name in `pages` or paste the Page link into `startUrls`, set `maxItems` and start the run. Facebook Events Scraper returns upcoming events first and then past events.

#### 🧩 Can I scrape one Facebook event by its URL?

Yes. Add the event link or the numeric id to `eventUrls`. Facebook Events Scraper reads that event and does not apply `maxItems` to it.

#### 🏙️ Can I find Facebook events in a city?

Yes. Add the city to `locations`. Facebook Events Scraper looks the name up in the public Facebook places directory, or you can pass a place id or an explore URL.

#### 💻 Can I scrape online Facebook events?

Yes. Enter `online` in `locations` to read the public list of online Facebook events.

#### 🔐 Does Facebook Events Scraper need a Facebook login?

No. Facebook Events Scraper reads publicly visible content, so no account, cookies or API key are required.

#### 📦 What data does Facebook Events Scraper return?

Each record includes ids, links, name, schedule, status, venue, organizers, tickets, audience counts, category and cover image, plus the source that found the event.

#### 🧐 Why are some fields empty?

Facebook shows different details for different events, and listing views show fewer fields than event pages. When a value is not public, Facebook Events Scraper returns `null`.

#### 🔢 How many Facebook events can I scrape?

Set `maxItems` to the number you need. Facebook Events Scraper collects up to that many Facebook events per Page, location and query, and stops earlier when fewer public events exist.

#### 📊 Can I export Facebook events to CSV or Excel?

Yes. Any Apify dataset can be downloaded as JSON, CSV, Excel, XML or HTML, or read through the Apify API.

#### ⚖️ Is it legal to scrape Facebook events?

Facebook Events Scraper collects public Facebook content only. You are responsible for how you use the data, so check Facebook's terms, local laws and privacy rules before you store or share it.

### 📞 Support

If you have questions, ideas for new fields or find a Page that does not return the expected events, send the Page name and the input you used.

- Contact me by email: alphascraper69@gmail.com

# Actor input Schema

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

Pages whose hosted events to collect: usernames, numeric ids or Page URLs, e.g. TheFillmore. Upcoming and/or past events are read as set in 'Event types'.

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

Page URLs, e.g. https://www.facebook.com/TheFillmore/events. Handled like 'Pages'; a tab suffix in the URL is ignored.

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

Single events: event URLs (https://www.facebook.com/events/<id>/) or numeric event ids. Not limited by 'Max items'.

## `locations` (type: `array`):

Public event discovery for a city: a city name ('San Francisco', 'London, United Kingdom'), a numeric Facebook place id, a https://www.facebook.com/events/explore/<city>/<id>/ URL, or 'online' for online events. City names are looked up in Facebook's public /places/ directory; a name that cannot be resolved is skipped (use the place id or the explore URL instead).

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

Keywords to search events for, e.g. jazz festival. Facebook only returns the first result page (about 7 events) to logged-out visitors.

## `eventTypes` (type: `array`):

Which event lists to read for each Page, in the order selected. If none is selected, only upcoming events are read. Does not apply to locations, search queries or single events.

## `includeDetails` (type: `boolean`):

One extra request per event adds description, end time, timezone, full address and coordinates, organizers, ticket URL, interested / going counts, category and cover image. If off, only the basic listing fields are returned.

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

Maximum number of events per Page (upcoming and past together), per location and per search query - every entry gets its own limit. Events found more than once are returned once.

## Actor input object example

```json
{
  "pages": [
    "TheFillmore"
  ],
  "startUrls": [],
  "eventUrls": [],
  "locations": [],
  "searchQueries": [],
  "eventTypes": [
    "upcoming",
    "past"
  ],
  "includeDetails": true,
  "maxItems": 15
}
```

# Actor output Schema

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

Structured records extracted by Facebook Events Scraper and stored in the run's 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 = {
    "pages": [
        "TheFillmore"
    ],
    "eventTypes": [
        "upcoming",
        "past"
    ],
    "maxItems": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/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 = {
    "pages": ["TheFillmore"],
    "eventTypes": [
        "upcoming",
        "past",
    ],
    "maxItems": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/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 '{
  "pages": [
    "TheFillmore"
  ],
  "eventTypes": [
    "upcoming",
    "past"
  ],
  "maxItems": 15
}' |
apify call alpha-scraper/facebook-events-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alpha-scraper/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/4yOSjKoUvDS7LN59p/builds/2RDQ9fhVgOAU8cK0u/openapi.json
