# Facebook Events Scraper - City and Page Events (`scrapercompany/facebook-events-scraper`) Actor

Scrape public Facebook events from city and Page listings: event name, start time, place, going and interested counts, online flag and link. Paste a listing link, get one row per event. No login needed. Pay only when a page has events. Made by ScraperCompany.

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

## Pricing

from $4.00 / 1,000 facebook events pages

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 - City and Page Events

**Facebook Events Scraper** by ScraperCompany reads public **Facebook events listing pages**. Paste a city or Page events link and get each event's **name, start time, place, going and interested counts, online flag and link**, with no login or cookies. Pricing is pay-per-event: **$0.004 per listing page**; pages with no events and failed requests are free.

**Nothing to set up:** no code, no login and no keys. Start a run, then export JSON, CSV or Excel, or pull the results through the Apify API. You pay only for results; failed and empty requests are free.

### What can this Facebook events scraper do?

- **Public city and Page listings**, with no Facebook account, login or cookies.
- **Attendance signals**: going and interested counts on each event.
- **Start time** as a timestamp and as Facebook's own text.
- Batch many listing pages per run.

### What makes it different?

| | **Facebook Events Scraper** | Many alternatives |
| --- | --- | --- |
| Setup | Nothing to configure: no login, no keys | Often your own accounts, cookies or network setup |
| You pay for | Successful results; failed and empty requests are free | Often run time, or every attempt |
| When a site pushes back | Retried and handled for you | Often an empty or failed run |

### Who uses Facebook events data?

- **Local guides and newsletters**: Collect what is on in a city for listings and weekly round-ups.
- **Venues and promoters**: See competing events and how many people are going or interested.
- **Event data teams**: Feed public events by city into calendars and demand models.

### Common jobs

#### Build a city event guide

Paste the events page for each city you cover and schedule the run weekly.

#### Watch a venue or promoter

Add their public events page to see what they list and how many people are going or interested.

### What Facebook events data can you extract?

| Field | Description |
| --- | --- |
| `events_results[].event_id / name / url` | The event and its link |
| `events_results[].start_time / day_time_sentence` | When it starts |
| `events_results[].place_name / city / latitude / longitude` | Where, as Facebook shows it |
| `events_results[].going_count / interested_count` | How many people are going or interested |
| `events_results[].is_online / is_past / cover_image` | Online and past flags, and the picture where shown |
| `total / has_next_page` | Events on this page, and whether Facebook has more |

Every dataset item also carries `input` (the options used for that request), `request_id` (quote it to support), `billed` and `scraped_at`.

### How to scrape public Facebook events

1. Open Facebook Events Scraper in Apify Console and go to the **Input** tab.
2. Enter **Facebook events pages**: open <code>facebook.com/events/explore</code>, pick a city and copy its address, or use a Page's public events page.
3. Adjust the options if needed.
4. Click **Start** and wait for the run to finish.
5. Download the results from the **Output** tab as JSON, CSV, Excel or HTML, or fetch them with the Apify API.

### Input

| Input | Name | What it does |
| --- | --- | --- |
| `urls` | Facebook events pages | .com/events/explore/wichita-kansas/105674782800210/\`, or a Page's events page. |

### Input example

This is the default input; running the Actor without changes uses it.

```json
{
  "urls": [
    "https://www.facebook.com/events/explore/wichita-kansas/105674782800210/"
  ],
  "includeErrors": true,
  "maxConcurrency": 3,
  "maxRetries": 2
}
```

### Output example

One dataset item per request (trimmed here; real items contain all the fields):

```json
{
  "input": {
    "url": "https://www.facebook.com/events/explore/wichita-kansas/105674782800210/"
  },
  "events_results": [
    {
      "city": null,
      "cover_image": "https://scontent.fykz2-1.fna.fbcdn.net/v/t39.30808-6/753237232_1541150707815153_6520244248732023965_n.png",
      "day_time_sentence": "Fri, Nov 6 - Nov 7",
      "event_id": "1787320825754872",
      "event_kind": "PUBLIC_TYPE",
      "going_count": 96,
      "interested_count": 277,
      "is_online": false,
      "is_past": false,
      "latitude": null,
      "longitude": null,
      "name": "MadHop Music Festival 2026",
      "place_name": "Historic Downtown Madison, Indiana",
      "social_context": "277 interested · 96 going",
      "start_time": "2026-11-06T23:00:00+00:00",
      "start_timestamp": 1794006000,
      "url": "https://www.facebook.com/events/1787320825754872/"
    }
  ],
  "has_next_page": true,
  "meta": {
    "source": "facebook"
  },
  "next_cursor": "eyJzdGFydF90aW1lIjoxNzkzODUzNzc0LCJlbmRfdGltZSI6",
  "search_parameters": {
    "source_url": "https://www.facebook.com/events/explore/wichita-kansas/105674782800210/"
  },
  "total": 1,
  "request_id": "req_3f9c0d6e2b8a4c1f9e7d5b3a1c0e8f6d",
  "billed": true,
  "scraped_at": "2026-10-01T14:03:27.512Z"
}
```

A request that fails is saved with an `error` message instead (turn off **Include failed requests** to skip those). Failed requests are never charged.

### How much does it cost to scrape public Facebook events?

This Actor uses **pay-per-event** pricing: you pay for successful requests, not for compute time.

| Event | Charged when | Price | Per 1,000 |
| --- | --- | --- | --- |
| `events-page` | One Facebook events listing page. A page with no events is free. | $0.004 | $4.00 |

**What a real run costs:**

- 20 city pages, once: **$0.08**
- 20 city pages, weekly for a year: **$4.16**

Apify's $5 of free monthly usage covers about **1,250** `events-page` events.

- Failed requests (errors, invalid input, a site refusing after retries) are **free**.
- Requests where the source returns nothing at all (no results, nothing priced) are saved but **not charged**.
- Set **Maximum cost per run** when you start a run and the Actor stops cleanly before going over it.

### Run it on a schedule

Use Apify **Schedules** to repeat a run hourly, daily or weekly and compare results over time, and **webhooks** or the **Integrations** tab to push new results to Make, Zapier, n8n, Google Sheets, Slack or your own warehouse.

### Use it with AI agents

Results are structured JSON, so they are easy to feed to a model. AI agents such as Claude can run this Actor and read its results through the [Apify MCP server](https://mcp.apify.com).

### FAQ

#### Do I need an account on the site, or an API key?

No. The Actor is ready to run as is, and you only pay the per-event prices above.

#### Can I search events by keyword?

Not yet. This Actor reads listing pages you link to: a city page or a Page's events page.

#### How many events does one page return?

The events on the first page of the listing, usually about a dozen. Each listing page is one charge.

#### Does it return private events?

No. It reads only public listings, and needs no Facebook account.

#### Why is the location sometimes only a place name?

Listing pages often show a place or address without a city or coordinates, so those fields can be empty.

#### Is it legal to scrape public Facebook events?

The Actor collects publicly available information that anyone can see without logging in. You are responsible for how you use the results: respect the source site's terms, copyright and privacy law (such as GDPR) and do not collect personal data without a lawful basis. If in doubt, ask a lawyer.

#### What happens when a request is blocked or rate-limited?

Temporary errors are retried automatically. If a request still fails it is saved with the error message and not charged, and the rest of the batch keeps going. A run only fails when every request failed.

#### Why did a request return an error?

Read the `error` field: it says what was wrong with the input, for example a malformed date or an unknown id. Fix it and run again; failed requests cost nothing.

#### How many requests can I run at once?

Any number per run. The Actor sends up to 3 requests in parallel by default (change it under **Run options**); larger batches simply take longer.

### Use it from your code

Call the Actor from any language through the [Apify API](https://docs.apify.com/api/v2). With the JavaScript client (`npm install apify-client`):

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('scrapercompany/facebook-events-scraper').call({
    "urls": [
        "https://www.facebook.com/events/explore/wichita-kansas/105674782800210/"
    ]
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

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

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("scrapercompany/facebook-events-scraper").call(run_input={
    "urls": ["https://www.facebook.com/events/explore/wichita-kansas/105674782800210/"],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### Related scrapers

- [Ticket Prices Scraper](https://apify.com/scrapercompany/event-ticket-prices-scraper): SeatGeek, Ticketmaster and StubHub events
- [Google Maps Scraper](https://apify.com/scrapercompany/google-maps-scraper): Local businesses and places

### Support

Questions, a field you need, or a site that stopped working? Open an issue on the **Issues** tab. Include the `request_id` from the dataset item so we can trace the request.

# Changelog

This Actor's version history is a separate document: https://apify.com/scrapercompany/facebook-events-scraper/changelog.md

# Actor input Schema

## `urls` (type: `array`):

One public Facebook events listing per line: a city page such as <code>facebook.com/events/explore/wichita-kansas/105674782800210/</code>, or a Page's events page. Each line is one request.

## `customRequests` (type: `array`):

Optional list of JSON objects, one request each, using the field names shown above. Each object is merged over the options above, so you only need to give what differs. Example: <code>{"url":"https://www.facebook.com/events/explore/wichita-kansas/105674782800210/"}</code>

## `includeErrors` (type: `boolean`):

When on, a request that fails (for example an unknown property id) is saved as a dataset item with an <code>error</code> message so you can see what went wrong. Failed requests are never charged.

## `maxConcurrency` (type: `integer`):

How many requests run at the same time (1-8). Parallel runs share one limit, so extra requests wait for a free slot instead of failing.

## `maxRetries` (type: `integer`):

How many times a request that failed for a temporary reason is tried again. Invalid input is never retried.

## Actor input object example

```json
{
  "urls": [
    "https://www.facebook.com/events/explore/wichita-kansas/105674782800210/"
  ],
  "includeErrors": true,
  "maxConcurrency": 3,
  "maxRetries": 2
}
```

# Actor output Schema

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

One dataset item per request.

## `summary` (type: `string`):

Counts of succeeded, failed, skipped and charged requests.

# 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 = {
    "urls": [
        "https://www.facebook.com/events/explore/wichita-kansas/105674782800210/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapercompany/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 = { "urls": ["https://www.facebook.com/events/explore/wichita-kansas/105674782800210/"] }

# Run the Actor and wait for it to finish
run = client.actor("scrapercompany/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 '{
  "urls": [
    "https://www.facebook.com/events/explore/wichita-kansas/105674782800210/"
  ]
}' |
apify call scrapercompany/facebook-events-scraper --silent --output-dataset

```

## MCP server setup

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