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

Scrape public Facebook events by link or from any page's upcoming events: name, date and time, venue, address, coordinates, description, hosts, ticket link and response count. No login.

- **URL**: https://apify.com/xtracto/facebook-events-scraper.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (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 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

Get public Facebook events by link, or list the upcoming events of any public page, with date, venue, address, hosts, ticket link and response count.

### Why use this actor

- **No login, no cookies, no API key.** Reads only what Facebook shows to any visitor.
- **Two ways in:** paste event links, or paste a page (for example a venue, promoter or artist) to get its next upcoming events.
- **Full event detail:** start time with time zone, venue name and street address, coordinates when Facebook lists them, all hosts with their page links, ticket link and ticket seller, categories and cover image.
- **Honest failures:** a private or missing event is named in the run's status message and is not charged as a result.
- **Stable JSON output** you can export to JSON, CSV or Excel, or schedule on Apify to track a venue's calendar.

### How it works

1. Paste event links into **Event links**, and/or public pages into **Pages**.
2. For each page, the actor reads its upcoming events list and takes up to **Max events per page**.
3. With **Open each event** on, every event is opened for the full detail; off returns the quick list only (name, date, venue, city).
4. One row per event is saved to the dataset, ready to download.

You do not need to manage scrapers, browsers or blocks.

### Input

```json
{
  "eventUrls": ["https://www.facebook.com/events/1049535857628781/"],
  "pages": ["https://www.facebook.com/LiveNation"],
  "maxEventsPerPage": 10,
  "fetchDetails": true,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

| Field | Type | Description |
|---|---|---|
| `eventUrls` | array of strings | Public event links (`facebook.com/events/1234...`) or bare event IDs. |
| `pages` | array of strings | Page links or names (`facebook.com/LiveNation` or `LiveNation`). Each page's next upcoming events are read. |
| `maxEventsPerPage` | integer | Upcoming events to take from each page (1-20, default 10). Facebook shows about 8 per page without signing in. |
| `fetchDetails` | boolean | Open each event for the full detail (address, coordinates, description, hosts, tickets). Default `true`. |
| `proxyConfiguration` | object | Residential proxy is recommended and is set in the example input. |

### Output

A real row from a page run (`pages: ["https://www.facebook.com/LiveNation"]`), with long values shortened:

```json
{
  "_source": "S1-event-page",
  "_scrapedAt": "2026-11-11T13:12:31Z",
  "_input": "https://www.facebook.com/LiveNation",
  "sourcePage": "https://www.facebook.com/LiveNation",
  "eventId": "862023660194451",
  "name": "The Elovaters",
  "url": "https://www.facebook.com/events/862023660194451/",
  "startTime": "2026-11-11T23:00:00Z",
  "endTime": null,
  "dateText": "Wednesday 11 November 2026 at 18:00 EST",
  "timezone": "EST",
  "isCanceled": false,
  "isOnline": false,
  "isPast": false,
  "frequency": "SINGLE",
  "placeName": "Greenfield Lake Amphitheater",
  "address": "1941 Amphitheatre Dr, Wilmington, NC 28401-6526, United States",
  "city": "Wilmington, North Carolina",
  "latitude": 34.210613251791,
  "longitude": -77.939830720425,
  "placeUrl": null,
  "description": "\n\nSale Dates and Times:\n\nPublic Onsale : Fri, 28 Aug 2026 at 01:00 PM\n\nArtist Presale : Tue, 25 Aug 2026 at 01:00 PM\n\nLIVE NATION PRESALE : Thu, 27 Aug 2026 at 10:00 AM\n…",
  "respondedCount": 360,
  "hosts": [
    { "name": "Live Nation Carolinas", "id": "100057423169282", "url": "https://www.facebook.com/livenationncsc" },
    { "name": "Greenfield Lake Amphitheater", "id": "100057550655625", "url": "https://www.facebook.com/greenfieldamphitheater" },
    "… 5 more"
  ],
  "ticketUrl": "https://tour.theelovaters.com/111126",
  "ticketProvider": "Ticketmaster",
  "categories": ["Music and audio"],
  "coverImageUrl": "https://scontent.fcgk33-1.fna.fbcdn.net/v/t39.30808-6/778985427_1588557649604063_5403121636485121383_n.jpg?…"
}
```

A row from an event link (`eventUrls`) has the same shape, with `sourcePage: null`. For example event `1049535857628781` returned `"name": "Center Mid"`, `"placeName": "Mercury Lounge"`, `"address": "217 E Houston St, New York, NY, US 10002"` and `"isPast": true`.

| Field | Type | Description |
|---|---|---|
| `_source`, `_scrapedAt`, `_input` | string | Where the row came from, when it was read, and which input produced it. |
| `sourcePage` | string or null | The page the event was listed on, or null for an event link. |
| `eventId`, `url` | string | Facebook event ID and link. |
| `name` | string | Event title. |
| `startTime`, `endTime` | string or null | Start and end in UTC (ISO 8601). |
| `dateText`, `timezone` | string | The date as Facebook displays it, and its time zone. |
| `isCanceled`, `isOnline`, `isPast` | boolean | Event status flags. |
| `frequency` | string | `SINGLE` or a recurring pattern. |
| `placeName`, `address`, `city` | string or null | Venue name, street address and city. |
| `latitude`, `longitude` | number or null | Venue coordinates, when Facebook lists them. |
| `placeUrl` | string or null | Venue page link, when there is one. |
| `description` | string | The event text. |
| `respondedCount` | integer | How many people responded (going or interested). |
| `hosts` | array | Organizers, each with `name`, `id` and `url`. |
| `ticketUrl`, `ticketProvider` | string or null | Where to buy tickets, and the seller. |
| `categories` | array of strings | Facebook's event categories. |
| `coverImageUrl` | string | Cover image link (these links expire after some days). |

### Notes and limits

- Only public events can be read. A private event or a page that hides its events is reported as failed and is not charged.
- Without signing in, Facebook shows about 8 upcoming events per page. Add several pages for more volume.
- If some links fail, the others are still delivered and the status message names what failed. If nothing could be read, the run ends as failed.
- A residential proxy gives the most reliable results on the platform.

# Actor input Schema

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

Public Facebook event links (facebook.com/events/1234...) or event IDs.

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

Facebook page links or names (facebook.com/LiveNation or LiveNation). Each page's next upcoming events are read.

## `maxEventsPerPage` (type: `integer`):

Upcoming events to take from each page (Facebook shows about 8 without signing in).

## `fetchDetails` (type: `boolean`):

Open each page event for the full detail (address, coordinates, description, hosts, tickets). Off returns the page list only: name, date, venue and city.

## `proxyConfiguration` (type: `object`):

Residential proxy is recommended on the platform.

## Actor input object example

```json
{
  "eventUrls": [
    "https://www.facebook.com/events/1049535857628781/"
  ],
  "pages": [
    "https://www.facebook.com/LiveNation"
  ],
  "maxEventsPerPage": 10,
  "fetchDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

One row per event, 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 = {
    "eventUrls": [
        "https://www.facebook.com/events/1049535857628781/"
    ],
    "pages": [
        "https://www.facebook.com/LiveNation"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/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 = {
    "eventUrls": ["https://www.facebook.com/events/1049535857628781/"],
    "pages": ["https://www.facebook.com/LiveNation"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("xtracto/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 '{
  "eventUrls": [
    "https://www.facebook.com/events/1049535857628781/"
  ],
  "pages": [
    "https://www.facebook.com/LiveNation"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call xtracto/facebook-events-scraper --silent --output-dataset

```

## MCP server setup

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