# Facebook Events Scraper — City, Page & Keyword, No Login (`valev-lab/facebook-events-scraper`) Actor

Scrape Facebook events by keyword and city, organizer Page, or URL—no login or user cookies. Go past the 8-event Page limit. Get upcoming, past and recurring events with dates, venues, coordinates, hosts, tickets and attendance. Monitor changes. Export CSV, Excel or JSON from $3.50/1K.

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

## Pricing

from $3.50 / 1,000 event scrapeds

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

### What does Facebook Events Scraper do?

**Facebook Events Scraper — Search by City & Keyword, All Organizer Events, No Login** turns public [Facebook Events](https://www.facebook.com/events/) into structured data. Find events by **keyword and city**, paginate an organizer Page's **upcoming and past events beyond the visible 8-event limit**, or extract individual event URLs and recurring occurrences. No Facebook login, user cookies, Meta app or paid data API is required.

Every delivered event can include its name, description, timezone-aware dates, venue and coordinates, organizer Pages, ticket link and provider, price text, cover image, category, public attendance counts and cancellation state. Download the result as JSON, CSV, Excel, XML or HTML, or consume it through the Apify API.

| Quick fact | Answer |
| --- | --- |
| Inputs | Keyword + city, organizer Page URL/ID, or event URL/ID |
| Organizer coverage | Direct cursor pagination for upcoming and optional past events; not limited to the first 8 |
| Recurring events | One deduplicated row per public child occurrence, linked with `parentEventId` |
| Monitoring | Only new events or changes to dates, tickets and public attendance counts |
| Login | None; public logged-out data only |
| Price | $4/1,000 events on Free, tiered to $3.50/1,000 on Gold+; details and host enrichment included |

This Actor is built for event discovery products, city calendars, local marketing, ticketing research and venue lead generation. It returns one event per dataset row and does not charge for errors, duplicates, filtered results or unchanged monitor checks.

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

- **Event discovery apps:** populate a calendar with venues, start times, covers and ticket links; deduplicate recurring occurrences by ID.
- **Local marketing:** find concerts, workshops and community events in your city and monitor schedule changes.
- **Ticketing and venue lead generation:** identify active promoters and venues, with public host Page categories, followers and websites when available. No paid contact lookups.
- **City guides:** schedule a city-and-keyword search, combine it with venue calendars, and export JSON, CSV or Excel for an editorial team.

### Why choose this Facebook Events API alternative?

- Search by both keyword and resolved Facebook city ID, then verify the detailed venue before delivery.
- Get Page events past the logged-out first page, including the separate past-events connection.
- Keep recurring child IDs instead of collapsing a whole series into one ambiguous row.
- Include public organizer Page enrichment in the event price.
- Detect date, ticket and attendance changes with a named, persistent monitor store.
- Continue after a deleted, private or login-walled input and return a free error row for it.

### What data can you extract?

| Fields | Meaning |
| --- | --- |
| `eventId`, `url`, `name`, `description` | One row per unique public event occurrence |
| `startAt`, `endAt`, `timezone` | ISO timestamps in UTC with `Z`; Facebook's timezone label separately. End time is null if absent |
| `isOnline`, `onlineUrl` | Facebook's online flag and a public meeting link, when disclosed |
| `isRecurring`, `parentEventId` | Whether this is recurring, and the series ID for a child |
| `place` | Name, address, city, country when shown, latitude, longitude, place URL and city ID |
| `organizers[]` | Name, URL, profile ID, confirmed Page ID and Page identity. Unknown identity stays null |
| `organizerInfo[]` | Public host Page category, followers text, intro, verification and website; optional enrichment errors are explicit |
| `coverImage`, `category`, `categories` | Cover photo and Facebook discovery categories |
| `ticketUrl`, `ticketProvider`, `price` | Public ticket link, seller and price information. Missing price does not mean free |
| `goingCount`, `interestedCount`, `respondedCount` | Split counts when disclosed; combined responses separately. Rounded counts set `countsAreApproximate` |
| `isCanceled`, `isPast` | Public status flags |
| `searchQuery`, `location`, `locationId` | Search provenance; actual venue data stays in `place` |
| `isNew`, `changes[]`, `scrapedAt` | Monitoring status, previous/current field values, and scrape time |

Missing values stay **null**, never invented. An unreadable event produces a free `type: "error"` row with its input, error code and message.

The dataset has **Events overview**, **By date**, and **By organizer** views. These select useful columns; they do not create additional chargeable rows. Export and sort by `startAt` for a chronological calendar, or by organizer in your spreadsheet.

### How to scrape Facebook events without login

1. Select **Search**, **Organizer Pages**, or **Event URLs or IDs**.
2. Enter your keywords/cities, organizer Pages, or event links.
3. Set the result cap, optional date/category filters and monitoring.
4. Start the Actor and inspect its output and run summary.
5. Export JSON, CSV, Excel, XML or HTML, or use an Apify integration.

An empty no-input call reads five fixed public past events as a small health check, with optional host profile enrichment off and monitoring off. Normal inputs default to host enrichment on. Explicit empty source arrays produce a free input error.

#### Search by keyword and city

```json
{
  "mode": "search",
  "keywords": ["concert"],
  "locations": ["Sofia, Bulgaria"],
  "dateFrom": "2026-11-16",
  "dateTo": "2026-12-16",
  "maxEvents": 50,
  "includeOrganizerInfo": true,
  "includeDescription": true,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

Every keyword/location combination is searched. City names are resolved to Facebook city IDs using **matching public event venues and the search keyword**, then cached. Facebook's anonymous city autocomplete is forbidden, so unfamiliar or ambiguous cities can remain unresolved; supply a numeric Facebook city ID in that case. A failed resolution is a free error, never an unfiltered worldwide search.

Location and paired date bounds are sent to Facebook. If that public connection completes with no cards, the Actor retries a combined keyword-and-city query without Facebook's unstable filters. If both direct feeds are clean but empty and proxy access is enabled, it retries that small listing through the configured proxy route. Fallback candidates are still delivered only after their detailed Facebook city ID or exact city name, date, category and online/in-person state match the original input. It never turns a failed city search into worldwide results. Every event's detailed location and start time are checked again before delivery. Date-only bounds are inclusive UTC dates; full ISO timestamps must include a timezone. `category` matches an exact public category label, case insensitive. `onlineOnly` and `inPersonOnly` check Facebook's structured flag; they cannot both be true.

Search is Facebook's ranked public subset, not an exhaustive city calendar. Some phrases produce no matches. Add venue and promoter Pages for deeper discovery.

#### Upcoming and past organizer events

```json
{
  "mode": "organizers",
  "organizers": ["https://www.facebook.com/TheFillmore"],
  "includePast": true,
  "maxEventsPerOrganizer": 100,
  "includeOrganizerInfo": true,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

Page URLs, usernames and numeric Page IDs work. The Actor reads upcoming events first, then past events when requested. **The per-organizer cap covers both tabs together.** Raise it above the upcoming count to leave room for past events. Default: 50, with past events off.

#### Event URLs and recurring occurrences

```json
{
  "mode": "eventUrls",
  "eventUrls": [
    "https://www.facebook.com/events/978379561778081/",
    "1370050898671602",
    "https://www.facebook.com/events/1370050898671602/?event_time_id=1370050925338266"
  ],
  "includeOrganizerInfo": true,
  "includeDescription": true
}
```

A series URL can resolve to its next occurrence. The Actor follows public neighboring occurrences, deduplicating by child ID and retaining `parentEventId`. A specific occurrence URL or child ID reads that occurrence. Neighbor traversal cannot guarantee dates Facebook never exposes; it is bounded at 10,000 delivered occurrences per supplied series.

### Monitor new and changed events

Add this to any mode and schedule the Actor:

```json
{
  "monitorMode": true,
  "monitorStoreName": "my-city-events-monitor"
}
```

The named KeyValueStore remembers the last delivered values for `startAt`, `endAt`, `timezone`, `ticketUrl`, `goingCount`, `interestedCount` and `respondedCount`. New events have `isNew: true`; changed events have `isNew: false` and `changes: [{"field": "...", "previous": "...", "current": "..."}]`. Unchanged events are skipped free. Changes in public field availability can also appear in the diff.

Delivered events are remembered even with monitoring off. Failed, filtered, duplicate and charge-limit-rejected events never update the baseline. The most recent 50,000 delivered events are retained. Use one store per schedule and avoid concurrent writers. Keep the same input for comparable attendance visibility across runs. The Actor revisits the listing instead of stopping at the first known event, so changes to older events can be detected.

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

Configured **pay-per-event**, including event details and public organizer enrichment. “Free” is the Apify plan name.

| Event | Free | Bronze | Silver | Gold and higher |
| --- | ---: | ---: | ---: | ---: |
| `event-scraped` | **$0.004** | $0.0038 | $0.0036 | **$0.0035** |
| `apify-actor-start` | $0.0005 | $0.0005 | $0.0005 | $0.0005 |
| **1,000 delivered events** | **$4.00** | $3.80 | $3.60 | **$3.50** |

Plus the start event per run at the default 512 MB. Apify scales start-event units with memory, with a minimum of one. Platform compute/proxy usage is configured as included (`isPPEPlatformUsagePaidByUser: false`); do not enable additional dataset-item or usage charges. A private owner run recorded one `apify-actor-start` and five `event-scraped` events; a $0.001-limited run recorded no result event and no dataset write.

- Five-event sample on Free: `$0.0005 + 5 × $0.004 = $0.0205`.
- 1,000 events on Free in one run: **$4.0005**.
- 1,000 events on Gold or higher: **$3.5005**.
- A repeat monitor run with no changes: the start event only.

**No event charge** for errors, duplicates, filters, unchanged monitoring results, source listings, retries or organizer profile requests. A readable canceled event is a normal delivered event. Set the run's **maximum total charge**; the Actor checks affordability before requests and delivery and respects the SDK's charged-result limit. The platform start fee still applies to runs that return only errors.

#### Price and feature comparison

Public Apify API pricing metadata checked **2026-11-16**; historical entries were excluded. Prices and documented capabilities can change. These are comparisons, not competitor benchmark runs.

| Actor | Per 1,000, Free | Gold | Additional charges |
| --- | ---: | ---: | --- |
| **This Actor** | **$4.00** | **$3.50** | $0.0005 start; public host info included |
| [Official Apify Facebook Events Scraper](https://apify.com/apify/facebook-events-scraper) | $13.00 | $7.00 | $0.001 start |
| [scrapegeist organizer events](https://apify.com/scrapegeist/facebook-organizer-events-scraper) | $4.00 | $4.00 | $0.005 per organizer, $0.00005 start |
| [alfalfa Facebook Events Scraper](https://apify.com/alfalfa/facebook-events-scraper) | $3.00 | $2.00 | Optional organizer email: $10/1,000 |
| [memo23 Facebook Events Scraper](https://apify.com/memo23/facebook-events-scraper) | $4.00 | $4.00 | $0.005 start |
| [themineworks Facebook Events Scraper](https://apify.com/themineworks/facebook-events-scraper) | $11.70 | $6.30 | $0.001 start |

The configured event price is **69% below the official Actor on Free** and **50% below it on Gold**. Alfalfa is cheaper, and the official Actor's Diamond price ($2.10/1,000) is below this Actor's $3.50. This is not a cheapest-at-every-tier claim.

This Actor combines direct organizer pagination, past events, recurring occurrence IDs, strict detailed filters, public host Page enrichment included in the event price, and named-store monitoring of **date, ticket and attendance changes**. Scrapegeist also documents group/city-feed discovery and cascade expansion, which are outside this Actor's three input modes. Feature superiority across every competitor feature is not claimed.

### Use through the Apify API

The Actor is connected to its Git source and built. Use the official Apify client:

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('valev-lab/facebook-events-scraper').call({
  mode: 'organizers',
  organizers: ['https://www.facebook.com/TheFillmore'],
  includePast: true,
  maxEventsPerOrganizer: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) {
  if (item.type === 'event') console.log(item.startAt, item.name, item.ticketUrl);
}
// listItems returns one page; paginate larger datasets.
```

Apify schedules, webhooks, Make, Zapier, n8n and Google Sheets can use the same input. An Apify token authenticates your platform call; no Facebook token is used.

### Reliability and limitations

- **Public content only.** Deleted, private, restricted or login-walled events return free errors; later inputs continue.
- **HTTP with shared Facebook transport.** Fresh anonymous session tokens, discovered/cached GraphQL IDs, exponential backoff, session rotation, and Residential fallback after a block. No user sessions or login.
- **Coverage is explicit.** Pagination failures, repeated cursors, throttled empty pages, time guards and transfer-budget stops are reported. A successful process exit alone does not prove complete extraction; inspect `SUMMARY`.
- **Proxy:** direct requests first. Custom proxy URLs take precedence; otherwise Apify Residential. Local external-proxy access depends on your Apify account. Response-wire bytes are measured/estimated by the shared transport, not a settled invoice. A transfer guard limits Residential spending.
- **Counts:** some pages disclose only combined responses; search can disclose rounded splits. Null is not zero.
- **Online:** a title containing “online” is not proof of Facebook's online flag. A meeting URL is often hidden until registration.
- **Timezone:** timestamps retain their true instant as UTC; `timezone` is Facebook's label, which may be an ambiguous abbreviation. No IANA zone is guessed.
- **Optional organizer info:** public Page headers only, with nulls/errors for unavailable values. No email lookup service or private contacts.
- **Health check:** five fixed public events, 5-second requests and an 18-second application stop guard. In-flight requests can extend the guard. The first cloud check saved 5/5 rows in 6.858 seconds total with 120.5 MB peak memory and no proxy traffic. Full measurements and unresolved cases are in the repository validation reports.
- **99%+ is a target, not an SLA.** Local and cloud acceptance runs cannot establish long-term, cross-region reliability. Signed cover URLs expire.

### FAQ

#### Can I search Facebook events by city and keyword without an account?

Yes, when Facebook exposes matching events publicly. Add one or more `keywords` and city names in search mode. The Actor resolves each city to a Facebook location ID from matching public event venues, applies Facebook's location filter, and validates the detailed venue again. If Facebook's filtered connection is valid but empty, a strict keyword-and-city fallback checks each candidate against that same city before delivery. It never asks for a Facebook login or user cookie.

#### Why do organizer Pages show only about eight events?

Facebook embeds a small first page for logged-out visitors. It also supplies a public collection token and cursor. This Actor calls the collection's GraphQL pagination query directly, including the past-events collection, instead of stopping after the HTML's eight cards. The verified local listing for The Fillmore exposed 45 upcoming events across five pages. A private or missing event cannot be recovered through pagination.

#### Can it get every event in a city?

No scraper can prove a complete city calendar from Facebook's ranked search. This Actor resolves a city ID, searches by keyword and checks each event's venue. Add organizer calendars and several keywords for broader coverage. Failed location resolution produces a free error.

#### Do I need a Facebook account or cookies?

No. The Actor requests public logged-out pages. Facebook may issue anonymous cookies during its challenge; those stay in an in-memory session and are never supplied by you, persisted or exported.

#### Does it get past events and recurring children?

Yes. Set `includePast: true` for organizer calendars and leave room within the combined cap. Series URLs follow publicly linked neighboring occurrences; child URLs and `event_time_id` links read the specified occurrence. Each child is deduplicated by its own ID.

#### What happens if one event is deleted or private?

It returns a free error row and the next input continues. The start event applies once to the run. Errors are not charged as scraped events.

#### Is organizer information extra?

No. Public host Page header information is included with `includeOrganizerInfo: true`, the default. Missing optional fields stay null or carry an enrichment error. No paid email service is called.

#### Can I scrape posts and comments too?

Use [Facebook Page Posts Scraper](https://apify.com/valev-lab/facebook-page-posts-scraper) for Page timelines and [Facebook Comments Scraper](https://apify.com/valev-lab/facebook-comments-scraper) for comments, replies, reels and videos. [Facebook Group Posts Scraper](https://apify.com/valev-lab/facebook-groups-scraper) reads public group posts.

#### Is scraping public Facebook event data legal?

That depends on your jurisdiction, purpose and the data you collect. This Actor accesses public logged-out pages only, but public availability does not remove your responsibility to follow Facebook's terms, applicable privacy and database laws, intellectual-property rights and data-retention rules. Do not use the output for harassment, discrimination, spam or sensitive-person profiling. If your use case has legal risk, obtain professional advice.

### Support and responsible use

Include the run ID, input mode and relevant free error/summary when reporting an issue. Collect only public data you are entitled to use. This tool is not affiliated with, endorsed by or sponsored by Facebook or Meta. Facebook is a trademark of its owner.

# Actor input Schema

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

Search by keyword and city, paginate organizer calendars, or read event URLs.

## `keywords` (type: `array`):

One keyword or phrase per line. All keyword/location combinations are searched; Facebook ranking is not a complete calendar.

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

City names such as Sofia, Bulgaria or Berlin, Germany. Names are resolved from public event venues and cached; Facebook blocks anonymous city autocomplete. Unresolved names return a free error. Numeric Facebook city IDs are also accepted.

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

Inclusive start date (YYYY-MM-DD in UTC) or ISO timestamp with timezone. Checked against detailed event start time.

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

Inclusive end date (YYYY-MM-DD, through 23:59:59.999 UTC) or ISO timestamp with timezone.

## `category` (type: `string`):

Exact public category label, case insensitive, for example Music & audio or Professional Networking. Events without a matching category are skipped free.

## `onlineOnly` (type: `boolean`):

Require Facebook’s structured is_online flag to be true. An online-sounding title does not prove this.

## `inPersonOnly` (type: `boolean`):

Require Facebook’s structured is_online flag to be false. Cannot be combined with onlineOnly.

## `maxEvents` (type: `integer`):

Maximum delivered events across all keyword/location searches. Monitoring skips do not consume this cap. Organizer mode uses its separate cap; URL mode reads the supplied events.

## `organizers` (type: `array`):

Public Page URLs, usernames or numeric Page IDs. The upcoming and past tabs are paginated directly beyond the eight events in HTML.

## `includePast` (type: `boolean`):

Read both upcoming and past organizer tabs. The combined maximum applies; raise it above the upcoming event count to leave room for past events.

## `maxEventsPerOrganizer` (type: `integer`):

Combined cap across upcoming and past events per Page. Errors, duplicates and unchanged monitored events do not consume it.

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

Public event URLs, numeric IDs, and recurring links with event_time_id. A series URL follows public neighboring occurrences. A specific occurrence URL reads that occurrence.

## `includeOrganizerInfo` (type: `boolean`):

Include public host Page category, followers text, intro, verification and website when exposed. Cached once per host per run and included in event price. A missing optional profile is marked in organizerInfo.

## `includeDescription` (type: `boolean`):

Include the public event description in each row.

## `monitorMode` (type: `boolean`):

Return new events and changes to dates, timezone, ticket links or going/interested/combined response counts. Unchanged events are free. State updates only after successful delivery.

## `monitorStoreName` (type: `string`):

Named KeyValueStore remembering event IDs and last-delivered fields. Use one store per schedule; avoid concurrent runs writing the same store. Most recent 50,000 delivered events retained.

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

Direct anonymous HTTP first. After a block or rate limit use your custom proxy URLs, otherwise Apify Residential. No Facebook account or user cookies. Apify external proxy access must be enabled for local fallback.

## Actor input object example

```json
{
  "mode": "eventUrls",
  "onlineOnly": false,
  "inPersonOnly": false,
  "maxEvents": 50,
  "includePast": false,
  "maxEventsPerOrganizer": 50,
  "eventUrls": [
    "https://www.facebook.com/events/4433472226973734/",
    "https://www.facebook.com/events/1551903739878198/",
    "https://www.facebook.com/events/1072009722185630/",
    "https://www.facebook.com/events/2423236064867940/",
    "https://www.facebook.com/events/1524475505973479/"
  ],
  "includeOrganizerInfo": true,
  "includeDescription": true,
  "monitorMode": false,
  "monitorStoreName": "facebook-events-scraper-monitor",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `events` (type: `string`):

One row per event plus free errors.

## `byDate` (type: `string`):

Date-focused columns. Export and sort by startAt for a chronological calendar.

## `byOrganizer` (type: `string`):

Organizer-focused columns, with one event row even for co-hosted events.

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

Coverage, errors, proxy bytes, stop reasons and local cost estimates.

# 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 = {
    "mode": "eventUrls",
    "eventUrls": [
        "https://www.facebook.com/events/4433472226973734/",
        "https://www.facebook.com/events/1551903739878198/",
        "https://www.facebook.com/events/1072009722185630/",
        "https://www.facebook.com/events/2423236064867940/",
        "https://www.facebook.com/events/1524475505973479/"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("valev-lab/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 = {
    "mode": "eventUrls",
    "eventUrls": [
        "https://www.facebook.com/events/4433472226973734/",
        "https://www.facebook.com/events/1551903739878198/",
        "https://www.facebook.com/events/1072009722185630/",
        "https://www.facebook.com/events/2423236064867940/",
        "https://www.facebook.com/events/1524475505973479/",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("valev-lab/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 '{
  "mode": "eventUrls",
  "eventUrls": [
    "https://www.facebook.com/events/4433472226973734/",
    "https://www.facebook.com/events/1551903739878198/",
    "https://www.facebook.com/events/1072009722185630/",
    "https://www.facebook.com/events/2423236064867940/",
    "https://www.facebook.com/events/1524475505973479/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call valev-lab/facebook-events-scraper --silent --output-dataset

```

## MCP server setup

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