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

Facebook events scraper for public events by keyword or by business Page: name, ISO start and end time, venue, address, city, coordinates, organizer Pages, going and interested counts, ticket link and cover image. No login. Monitor mode returns only new events.

- **URL**: https://apify.com/datahamster/facebook-events-scraper.md
- **Developed by:** [Viktor Dubnytskiy](https://apify.com/datahamster) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.80 / 1,000 result items

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 returns public Facebook events found by keyword or listed on a business Page, one row per event with its name, start and end time in ISO format, venue, address, city and coordinates, the organizing Pages, attendance counts, ticket link, cover image and description. You do not need a Facebook account, cookies or an API key.

**Try it:** the prefilled example returns 10 rows in about 26 seconds and costs about $0.06. Results cost $6.00 per 1,000.

**Coverage:** Page links are the reliable input. A Page's events tab is read to the end: on 2026-11-05 Madison Square Garden listed 156 upcoming events, and a run with details off returned all 156 in 52 seconds. Keyword search is best effort and gives at most about 7 events per keyword, because Facebook does not let a logged-out visitor load more results. Facebook also throttles repeated logged-out searches, so the actor runs every keyword on a fresh session and escalates a throttled answer to other datacenter and residential IPs. In our test run on 2026-11-05 one of two keywords got the full search on a fresh datacenter session; the other stayed throttled on every tier, residential included, and still returned 7 events. Searches of two or more words usually return 0 or 1 event.

Compared with the leading Facebook events actor on the Store ($13 per 1,000 events plus $0.001 per run start on the free plan), results here cost $6.00 per 1,000 with no start fee, and a monitor mode returns only events that are new since the last run.

### What you get

Real rows from the example dataset:

| name | startTimestamp | placeName | city | organizerName | respondedCount |
|---|---|---|---|---|---|
| New York Rangers vs. Philadelphia Flyers | `2026-11-06T00:00:00Z` | Madison Square Garden | New York, NY | NHL | `25` |
| NY Rangers vs Philadelphia Flyers Premium Seating | `2026-11-06T00:00:00Z` | Madison Square Garden | New York, NY | Madison Square Garden | `14` |
| New York Comedy Festival & LN Present: Dave Chappelle Karmageddon | `2026-11-07T00:30:00Z` | Madison Square Garden | New York, New York | Madison Square Garden | `310` |

Full row: `id`, `eventId`, `url`, `name`, `startTimestamp`, `endTimestamp`, `timezone`, `dayTimeSentence`, `isOnline`, `isCanceled`, `isPast`, `placeName`, `placeType`, `placeUrl`, `placeId`, `address`, `street`, `city`, `cityId`, `latitude`, `longitude`, `organizers`, `organizerName`, `organizerUrl`, `hostCount`, `interestedCount`, `goingCount`, `respondedCount`, `ticketUrl`, `ticketProvider`, `coverImageUrl`, `description`, `categories`, `eventKind`, `detailsLoaded`, `source`, `query`, `scrapedAt`.

**Organizers are business Pages only.** Facebook lists event hosts the same way for Pages and for people. The actor checks every host and names it only when it is a business Page. A person who hosts an event is counted in `hostCount` and never named. When an event has no Page host and no venue Page, the venue text, street address and coordinates are left out (only the city stays) and phone numbers and e-mail addresses are removed from the description.

### Related actors

- [Facebook Groups Search](https://apify.com/datahamster/facebook-groups-search) finds public groups by keyword with member counts.
- [Facebook Pages Search](https://apify.com/datahamster/facebook-pages-search) finds business Pages by keyword, with their public contacts and follower counts. Feed its Page links into this actor.
- [Facebook Comments Scraper](https://apify.com/datahamster/facebook-comments-scraper) reads the comments under public Page posts.
- [Eventbrite Events](https://apify.com/datahamster/eventbrite-events) lists events from Eventbrite.

### Use cases

- Build a calendar of upcoming concerts, games and shows from the Pages of venues, promoters and clubs.
- Track what competitors or partners announce and get the new events every day (monitor mode).
- Collect venue addresses, coordinates and ticket links for an events app or a newsletter.

### Monitor mode

Save the input as a task, set **Mode** to `monitor` and put it on a schedule (for example every morning).

- The first run is the baseline: it records every event it finds and pushes nothing, so you are charged only the monitor check.
- Each later run returns only events whose id was not seen before. Known events are skipped without opening their event page, and `maxItems` counts new events only.
- Set **Max events per keyword or Page** at least as high as the Page's events tab (Madison Square Garden lists about 150 upcoming events), otherwise new events at the end of a long tab are not reached.
- An event that was pushed without its details (its event page was walled) is fetched again on later runs and reported once more when the details load.
- Changes to an old event (new time, more people interested) do not count as new.

### Input

| Field | Meaning | Default |
|---|---|---|
| `pageUrls` | Business Page links or handles, such as `https://www.facebook.com/TheGarden` or `TheGarden` | one example Page |
| `searchQueries` | Keywords for Facebook's event search, one per line; single words work best | empty |
| `eventUrls` | Links to single events (`https://www.facebook.com/events/<id>/`) | empty |
| `includePastEvents` | Also read the Page's past events | `false` |
| `includeDetails` | Open every event page for end time, address, coordinates, hosts, ticket link and description. Turn off for a fast list with name, start time and venue only | `true` |
| `city` | Keep only events whose city, address or venue contains this text, such as `New York` | empty |
| `maxEventsPerSource` | Stop reading one keyword or Page after this many events | `50` |
| `maxItems` | Stop the whole run after this many events | `20` |
| `mode` | `scrape` or `monitor` (only new events) | `scrape` |
| `monitorStateId`, `webhookUrl`, `telegramBotToken`, `telegramChatId` | Monitor state key and alert targets | empty |

### Pricing

| Event | Price |
|---|---|
| result | $0.006 per event ($6.00 per 1,000) |
| monitor-check | $0.005 per monitor run |
| change | $0.006 per new event in monitor mode |

Apify Store discounts: SILVER -10%, GOLD and higher -20% on every event.

You pay only for event rows that are pushed. A removed Page, a personal profile or a private event produces no rows and no charge. Platform usage (compute and Apify proxy) is billed by Apify on top. Keyword search can escalate to Apify residential proxy, which is billed per GB (one search page is about 0.35 MB); Page links and event links use the datacenter proxy only.

**Found it useful?** A short review on the Store page helps other people find this actor and tells us what to improve. If something is wrong, open an issue on the actor page.

### How it works

1. Every request is made as a logged-out visitor through the Apify datacenter proxy.
2. A Page's events tab holds the first 8 events; the next ones come from the same list Facebook's web page loads when you scroll, 8 per request.
3. Keyword search reads the first page of Facebook's event search, each keyword on a fresh session.
4. With **Include details** on, each event page is opened (4 at a time) for the full record, and each host is checked once per run.
5. When every keyword, Page and event link of a run answers with a login wall, the run stops with a "blocked" reason instead of returning an empty dataset.

### Limits

- **Keyword search is shallow and best effort.** At most about 7 events per keyword, no second page and few results for multi-word searches. Facebook answers repeated logged-out searches with a throttled list; the actor tells that apart from a real "no results", retries on a fresh datacenter session and then on residential IPs, and stops with a "rate limited" reason (never an empty "no matches") when every keyword stays throttled. Facebook's location filter does not work for logged-out visitors, so the `city` field filters the rows the actor already found.
- **Going and interested counts.** Search results show "X interested, Y going". Event pages show only the total of public responses (`respondedCount`), so Page events usually have `respondedCount` and no split.
- **End time** is empty when the organizer did not set one.
- **Business Pages only.** Personal profiles (`profile.php`, `/people/`) and groups are skipped with a note in the log.
- **Facebook changes its internal request ids from time to time.** The actor reads the new ones from Facebook's own scripts; if that fails, a run returns only the first 8 events of each Page and says so in the log.

### FAQ

**Do I need a Facebook account?** No.

**Why is a host missing from `organizers`?** It is a person, or Facebook did not let the actor confirm that it is a Page. `hostCount` still counts it.

**Can I get events of a city?** Use the Pages of venues and promoters in that city, or a keyword plus the `city` filter.

### Changelog

- 0.1: first release with Page events (upcoming and past, full paging), keyword search, single event links, event details, Page-only organizers and a monitor mode for new events.

# Actor input Schema

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

Links or handles of Facebook business Pages whose events you want, such as https://www.facebook.com/TheGarden or TheGarden, one per line. Personal profiles and groups are not supported.

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

Keywords for Facebook's event search, one per line, such as jazz or marathon. Facebook gives a logged-out visitor about 7 events per keyword; single words work best.

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

Links to single public events, such as https://www.facebook.com/events/1343159087434618/, one per line.

## `includePastEvents` (type: `boolean`):

Also read the past events of each Page (after its upcoming events).

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

Open every event page for end time, address, coordinates, organizers, ticket link, responded count and description. Turn off for a fast list with name, start time and venue only.

## `city` (type: `string`):

Keep only events whose city, address or venue name contains this text, such as New York. Leave empty for all events.

## `maxEventsPerSource` (type: `integer`):

Stop reading one keyword or Page after this many events, e.g. 50.

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

Stop after this many event rows (you are charged only for pushed rows)

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

scrape = full results; monitor = only new/changed items since the previous run of this task

## `monitorStateId` (type: `string`):

Optional state id when not running as a saved task (monitor mode)

## `webhookUrl` (type: `string`):

POST a change summary here in monitor mode

## `telegramBotToken` (type: `string`):

Optional: bot token for monitor-mode change summaries

## `telegramChatId` (type: `string`):

Optional: chat id that receives monitor-mode summaries

## Actor input object example

```json
{
  "pageUrls": [
    "https://www.facebook.com/TheGarden"
  ],
  "includePastEvents": false,
  "includeDetails": true,
  "maxEventsPerSource": 10,
  "maxItems": 10,
  "mode": "scrape"
}
```

# Actor output Schema

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

All pushed rows (dataset, JSON)

## `resultsTable` (type: `string`):

Dataset in the Console viewer

## `runSummary` (type: `string`):

RUN_SUMMARY record

# 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 = {
    "pageUrls": [
        "https://www.facebook.com/TheGarden"
    ],
    "maxEventsPerSource": 10,
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("datahamster/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 = {
    "pageUrls": ["https://www.facebook.com/TheGarden"],
    "maxEventsPerSource": 10,
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("datahamster/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 '{
  "pageUrls": [
    "https://www.facebook.com/TheGarden"
  ],
  "maxEventsPerSource": 10,
  "maxItems": 10
}' |
apify call datahamster/facebook-events-scraper --silent --output-dataset

```

## MCP server setup

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