# Facebook Events Scraper — Search Events, Pages & URLs (`confidential_gnat/facebook-events-scraper`) Actor

Scrape public Facebook events without logging in. Search by keyword, location and date, collect events from city and organizer pages, or provide event URLs and IDs. Get names, dates, venues, ticket links, hosts and attendance, with caching that skips previously scraped events on repeat runs.

- **URL**: https://apify.com/confidential_gnat/facebook-events-scraper.md
- **Developed by:** [ActorFlow](https://apify.com/confidential_gnat) (community)
- **Stats:** 4 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.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

## Facebook Events Scraper — Search Events, Organizer Pages & Event URLs

Use this **Facebook events scraper** to find and export public events from Facebook without logging in. Search Facebook events by **keyword, location and date**, scrape a **city events page** or **organizer page**, or provide direct **Facebook event URLs and IDs**. Get event names, descriptions, dates, venues, ticket links, hosts, attendance counts and cover photos as structured data. Export results as **JSON, CSV or Excel**, call the scraper through the **Apify API**, or schedule recurring runs that return only new events.

**Target website:** [facebook.com/events](https://www.facebook.com/events)

### ✨ Features of this Facebook events scraper

- **Event data extraction** — name, description, start and end date with time zone, venue name, address, city and coordinates, online and canceled flags, ticket link and price, hosts, interested-and-going count, cover photo and event flags
- **Four ways to find events** — keyword search (with optional place and date window), a city's events page (hundreds of events, with today, tomorrow, this week, this weekend and next week views), the events tab of an organizer page, or direct event URLs and IDs
- **Pagination support** — keeps paging through search results and city event lists until Facebook runs out or your limit is reached
- **Date and place filtering** — set a date window and a location on keyword searches; use several windows to collect more events than one wide search returns
- **Upcoming, past or both** — choose which events an organizer page or search should return
- **Fast list mode** — return only the name, link, image and date line straight from the search results, about 4 times faster than full details
- **Recurring events handled** — a recurring event link is resolved to its next occurrence
- **Smart caching — skips previously scraped events** — name a cache project and events scraped in earlier runs are skipped (and not charged), so each scheduled run returns only new events
- **One consistent output** — every row has the same fields; anything unavailable is `null`
- **Proxy support** — optional Apify proxy for large runs
- **No browser required** — fast runs (hundreds of events per minute) that need no proxy for normal use

### 🚀 How to scrape Facebook events in 5 steps

1. [Sign up](https://apify.com/sign-up) for a free Apify account — includes **$5 monthly credit**.
2. Open the actor page and click **Try for free**.
3. Add Facebook URLs, search keywords or event IDs in the **Input** tab.
4. Click **Start** and wait for the run to complete.
5. Download results from the **Output** tab in JSON, CSV, or Excel format.

You can also run this actor via the [Apify API](https://docs.apify.com/api/v2) or integrate it directly into your workflows using [Zapier](https://zapier.com/apps/apify), [Make](https://www.make.com/), or [n8n](https://n8n.io/).

### 💰 Pricing

This actor uses **pay-per-result** billing: you pay for each event saved to the dataset.

- New Apify accounts include **$5 of free monthly credit**.
- The actor uses plain HTTP requests rather than a browser, so it costs significantly less to run than browser-based scrapers.
- Events you already have in your cache project, and events that are private or deleted, are not charged.
- Leaving the proxy off keeps runs cheapest; turn it on only if you see blocks.

### 🔧 Input configuration

Use the numbered guide below to configure the Facebook events scraper. The image labels match the corresponding fields in the actor's Input tab.

![Facebook Events Scraper input form with numbered labels for Facebook URLs, search keywords, location, date filters, event IDs, time range, detail level, and result limit](https://i.postimg.cc/c4VGDdh6/image.png)

#### Facebook event scraper input fields

1. **Facebook URLs (`startUrls`)** — add Facebook event pages, event search URLs, city events pages, or organizer pages. Use **Add** for one URL, **Bulk edit** for multiple URLs, or **Text file** to import a list. A default search URL for concerts is provided.
2. **Search keywords (`searchQueries`)** — enter terms to find events, such as `concerts` or `yoga`. Multiple keywords can be supplied. Keywords are added to the supplied search URLs; they can also be combined with a location and date window.
3. **Location (`location`)** — enter a city or place, such as `London`, to narrow keyword searches. Facebook's logged-out search does not provide a precise location filter, so matches are best-effort.
4. **Date from (`dateFrom`)** — set the earliest event start date for keyword searches, using `YYYY-MM-DD` format.
5. **Date to (`dateTo`)** — set the latest event start date for keyword searches, using `YYYY-MM-DD` format. Splitting a long period into smaller date windows can help find more results.
6. **Event IDs (`eventIds`)** — provide Facebook event IDs or event URLs to scrape specific events directly, without searching.
7. **Events time range (`eventsTimeRange`)** — choose **Upcoming**, **Past** or **Both**. This filter applies to full event details and organizer-page results.
8. **Level of detail (`eventDetail`)** — choose **Full details** to open event pages and collect available event information, or **List only** for a faster result with the event name, link, image and date line.
9. **Max events per search or page (`maxItems`)** — set the result limit for each keyword, search URL, city events page or organizer page (1–1,000). Facebook may show fewer results than the limit, especially for logged-out keyword searches.

Additional settings are available below the fields shown in the image:

- **Cache project name (`cacheProjectName`)** — optional. ⚡ **This actor uses caching to skip previously scraped events.** Reuse the same name across scheduled runs and events already saved under that name are skipped and not charged, so you receive only new events.
- **Proxy configuration (`proxyConfiguration`)** — optional. The Apify proxy is enabled by default in the input; public Facebook pages also work without a proxy from many networks.

| Field | Type | Required | Default | Description |
| ----- | ---- | -------- | ------- | ----------- |
| Facebook URLs (`startUrls`) | array | — | Search for "concerts" | Event pages, event search pages, city events pages or organizer pages. |
| Search keywords (`searchQueries`) | array | — | — | Keywords to search events for, added to the URLs. |
| Location (`location`) | string | — | — | A city or place added to each keyword ("concerts in London"). Best-effort. |
| Date from (`dateFrom`) | string | — | — | Keyword searches: earliest start date, `YYYY-MM-DD`. |
| Date to (`dateTo`) | string | — | — | Keyword searches: latest start date, `YYYY-MM-DD`. |
| Event IDs (`eventIds`) | array | — | — | Event IDs or URLs to scrape directly. |
| Events time range (`eventsTimeRange`) | string | — | upcoming | `upcoming`, `past` or `both`. |
| Level of detail (`eventDetail`) | string | — | full | `full` opens each event page; `list` returns only search-result fields, much faster. |
| Max events per search or page (`maxItems`) | integer | — | 5 | Limit per keyword, search URL, city events page or organizer page (1–1000). |
| Cache project name (`cacheProjectName`) | string | — | — | Skips events already scraped under this name in earlier runs. |
| Proxy configuration (`proxyConfiguration`) | object | — | Apify proxy on | Optional Apify proxy; works without one from many networks. |

**Supported URL types:**

- Event: `https://www.facebook.com/events/1124937143546348/`
- Event search: `https://www.facebook.com/events/search/?q=concerts`
- City events: `https://www.facebook.com/events/explore/bend-oregon/108137335874390` (add `/today`, `/tomorrow`, `/this_week`, `/this_weekend` or `/next_week` for a time view)
- Organizer page: `https://www.facebook.com/hubartclub` (also `/upcoming_hosted_events`, `/past_hosted_events`, `profile.php?id=...`)

The event dashboard and group event pages need a login and are not supported.

### 📦 Facebook events scraper output data

The output is a dataset with one record per event, all with the same fields (`null` or an empty list when a value is not available). Each record contains: `id`, `url`, `name`, `description`, `startDate`, `endDate`, `timezone`, `dateText`, `isOnline`, `isCanceled`, `isPast`, `isRecurring`, `privacy`, `place` (`name`, `address`, `city`, `latitude`, `longitude`, `placeId`, `placeUrl`), `ticketUrl`, `priceInfo`, `imageUrl`, `imageCaption`, `respondedCount`, `interestedCount`, `goingCount`, `hosts` (`id`, `name`, `url`, `isVerified`, `profilePictureUrl`), `flags`, `scrapedAt` and `sourceUrl`. `interestedCount` and `goingCount` are filled for events found through keyword searches and city event lists, because Facebook shows the separate counts only on those event cards (Facebook rounds large numbers on the cards, e.g. 14K; with full details the exact interested count is worked out from the event page total); for events read straight from their page (event URLs, IDs, organizer pages) they are `null` and only the combined `respondedCount` is available. In list mode only `id`, `url`, `name`, `imageUrl`, `dateText`, `interestedCount`, `goingCount`, `scrapedAt` and `sourceUrl` are filled. The dataset has an **Events** view: a table of cover photo, name, start date, venue, city, online flag, interested-and-going count, ticket link and event link.

**Output at a glance:**

| Event | Starts (UTC) | Venue | Online | Interested + going |
| --- | --- | --- | --- | --- |
| [Seth Lakeman at St Georges, Bristol](https://www.facebook.com/events/2049138645623698/) | 2026-10-13 18:00 | St George's, Bristol | No | 2 |
| [Schoolboy Q](https://www.facebook.com/events/1434666025160847/) | 2026-10-10 03:00 | Hollywood Palladium - Los Angeles, CA | No | 1 |
| [Johnny Blue Skies & The Dark Clouds at Xfinity Mobile Arena](https://www.facebook.com/events/969402682510037/) | 2026-10-16 02:00 | Xfinity Mobile Arena - Philadelphia, PA | No | 2 |

**Sample output (raw JSON):**

````json
{
    "id": "2049138645623698",
    "url": "https://www.facebook.com/events/2049138645623698/",
    "name": "Seth Lakeman at St Georges, Bristol",
    "description": "Crosstown Concerts presents Seth Lakeman \nSt Georges, Bristol\n13/10/26",
    "startDate": "2026-10-13T18:00:00.000Z",
    "endDate": null,
    "timezone": "UTC+01",
    "dateText": "Tuesday, October 13, 2026 at 7:00 PM BST",
    "isOnline": false,
    "isCanceled": false,
    "isPast": false,
    "isRecurring": false,
    "privacy": "PUBLIC_TYPE",
    "place": {
        "name": "St George's, Bristol",
        "address": null,
        "city": null,
        "latitude": null,
        "longitude": null,
        "placeId": "1434791948646208",
        "placeUrl": null
    },
    "ticketUrl": "https://crosstownconcerts.seetickets.com/event/seth-lakeman/st-george-s/3523611",
    "priceInfo": null,
    "imageUrl": "https://scontent.fktm20-1.fna.fbcdn.net/v/t39.30808-6/577124618_1434792148646188_2970809867662561756...",
    "imageCaption": "No photo description available.",
    "respondedCount": 2,
    "interestedCount": null,
    "goingCount": null,
    "hosts": [
        {
            "id": "100063462491860",
            "name": "Crosstown Concerts",
            "url": "https://www.facebook.com/crosstownconcerts",
            "isVerified": false,
            "profilePictureUrl": "https://scontent.fktm20-1.fna.fbcdn.net/v/t39.30808-1/572484632_1425299906262079..."
        }
    ],
    "flags": [],
    "scrapedAt": "2026-10-05T16:45:01.992Z",
    "sourceUrl": "https://www.facebook.com/events/search/?q=concerts"
}```

### 🐍 How to scrape Facebook events with Python, JavaScript or the API

Run the actor programmatically with the official Apify clients. Replace `<YOUR_API_TOKEN>` with the token from your [Apify Console](https://console.apify.com/account/integrations).

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")

run = client.actor("confidential_gnat/facebook-events-scraper").call(run_input={
    "searchQueries": ["concerts"],
    "location": "London",
    "maxItems": 20,
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
````

**JavaScript** (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });

const run = await client.actor('confidential_gnat/facebook-events-scraper').call({
    searchQueries: ['concerts'],
    location: 'London',
    maxItems: 20,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**cURL** — start a run and wait for the dataset:

```bash
curl -X POST "https://api.apify.com/v2/acts/confidential_gnat~facebook-events-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["concerts"], "location": "London", "maxItems": 20}'
```

### 💡 What you can use Facebook events data for

- Building local event calendars, listings and "what's on" newsletters
- Tracking competitor and venue programming, ticket links and attendance interest
- Lead generation from event organizers and hosts
- Market research on festivals, conferences and meetups by city and date
- Feeding event discovery apps, travel guides and recommendation engines

Event marketers, ticketing platforms, venue managers, tourism boards and local media typically use this data.

### ❓ Frequently asked questions

#### Can I scrape Facebook events legally?

The actor only collects event data that is already publicly visible on Facebook — no login, private group or private event is accessed. Scraping publicly available data is generally considered lawful (see *hiQ Labs v. LinkedIn*), but you are responsible for complying with Facebook's Terms of Service and applicable laws such as GDPR or CCPA, especially if you process host names or other personal data.

#### What data does the Facebook events scraper return?

Name, description, start and end time, time zone, venue name, address, city and coordinates, online and canceled flags, ticket link and price, hosts, interested-and-going count, cover photo and event flags. In list mode only name, link, image and the date line are returned.

#### Can I scrape a specific Facebook event by URL or ID?

Yes. Add one or more public event page URLs under **Facebook URLs**, or enter event IDs or event URLs under **Event IDs** to scrape those events directly. Events that are private, deleted or require login are skipped.

#### Can I search Facebook events by location and date?

Yes. Add a city or place to **Location** and set **Date from** and **Date to** in `YYYY-MM-DD` format. These options refine keyword searches; Facebook's logged-out location matching is approximate. For broader coverage, try multiple keywords and shorter date windows.

#### Can I scrape events from a Facebook city or organizer page?

Yes. Add a supported public city events page or organizer page under **Facebook URLs**. City pages can expose Facebook's built-in time views, while organizer pages can return upcoming, past or both events. Login-required group and event dashboard pages are not supported.

#### How many events can I scrape from one search or page?

`maxItems` limits the events returned for each keyword, search URL, city events page and organizer page separately. Facebook shows a logged-out visitor only a limited number of keyword search results (often 10 to 30), so use a city events page, or several keywords or date windows, to collect more.

#### Do I need a proxy to scrape facebook.com?

No — the actor works without a proxy from many networks, and the input leaves the Apify proxy option on by default as a safe choice for large runs. If you see blocks, keep the Apify proxy on; switch to residential proxies only if datacenter ones are blocked.

#### How do I scrape Facebook events with Python?

Use the Python example above: call the actor with the Apify client and iterate over the dataset items.

#### Can I run this Facebook events scraper on a schedule?

Yes, use Apify Schedules. Set the same **Cache project name** on every run and each scheduled run returns only events that were not saved in earlier runs, which also means you are not charged twice for the same event.

#### What output formats are supported?

JSON, CSV, Excel, XML and RSS, either from the **Output** tab or through the Apify API.

#### Why does a search return fewer events than I see on Facebook?

Facebook shows logged-in users far more search results than logged-out visitors. This actor reads what is publicly available, so split a big search into several keywords, locations or date windows.

### 🔗 Other actors you may find useful

| Actor | Description |
| ----- | ----------- |
| [📸 Snapchat Profile Scraper](https://apify.com/confidential_gnat/snapchat-profile-scraper) | Public Snapchat profiles with Spotlights, stories, lenses and engagement. |

### 💬 Support & contact

If you encounter any issues or have questions, please [open an issue](https://apify.com/confidential_gnat/facebook-events-scraper/issues/open) or reach out via the [Apify Community Forum](https://community.apify.com/).

You can also find more of our actors on the [Actor Flow](https://apify.com/confidential_gnat) page.

# Actor input Schema

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

Event pages (facebook.com/events/123...), event search pages (facebook.com/events/search/?q=music), city event pages (facebook.com/events/explore/bend-oregon/108137335874390, optionally ending in /today, /tomorrow, /this_week, /this_weekend or /next_week) or the page of an organizer (facebook.com/pagename). Pages and groups that need a login are not supported.

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

Optional. Keywords to search Facebook events for, for example concerts or yoga. Added to the URLs above.

## `location` (type: `string`):

Optional. A city or place added to each keyword search, for example London ("concerts in London"). Facebook's logged-out search has no exact place filter, so results are best-effort.

## `dateFrom` (type: `string`):

Optional. For keyword searches: only events starting on or after this date (YYYY-MM-DD). Several date windows return more events than one wide window.

## `dateTo` (type: `string`):

Optional. For keyword searches: only events starting on or before this date (YYYY-MM-DD).

## `eventIds` (type: `array`):

Optional. Facebook event IDs or event URLs to scrape directly, for example 1124937143546348.

## `eventsTimeRange` (type: `string`):

Which events to return: upcoming, past or both. Applies to full event details and organizer pages.

## `eventDetail` (type: `string`):

Full opens each event page for description, times, venue, tickets, hosts and attendance. List is about 4 times faster and returns only the name, link, image and date line from the search results.

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

Maximum events returned for each search keyword, search URL, city events page or organizer page. Facebook shows a logged-out visitor a limited number of keyword search results (often 10 to 30 per keyword); city events pages go much deeper.

## `cacheProjectName` (type: `string`):

Optional. When set, events already saved under this project name in a previous run are skipped (and not charged). Use the same name on each scheduled run to get only new events. Leave empty to scrape everything.

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

Optional. Facebook's public pages work without a proxy from many networks. Turn on Apify proxy if you see blocks, especially on large runs.

## Actor input object example

```json
{
  "searchQueries": [
    "concert"
  ],
  "eventIds": [],
  "eventsTimeRange": "upcoming",
  "eventDetail": "full",
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {
    "searchQueries": [
        "concert"
    ],
    "eventIds": [],
    "maxItems": 5,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("confidential_gnat/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 = {
    "searchQueries": ["concert"],
    "eventIds": [],
    "maxItems": 5,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("confidential_gnat/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 '{
  "searchQueries": [
    "concert"
  ],
  "eventIds": [],
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call confidential_gnat/facebook-events-scraper --silent --output-dataset

```

## MCP server setup

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