# Facebook Events Scraper — Upcoming Events by City (`steadyfetch/facebook-events-scraper`) Actor

Facebook events scraper, priced per event, no login, no cookies: type a city or paste its Facebook events address and get one row per upcoming event — name, start time, venue, going and interested counts, link and cover image. Today, this week or next week. Re-runs skip events you got in 90 days.

- **URL**: https://apify.com/steadyfetch/facebook-events-scraper.md
- **Developed by:** [Steadyfetch Team](https://apify.com/steadyfetch) (community)
- **Categories:** Social media, Lead generation, Agents
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 events

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 — Upcoming Events by City

**Type a city or paste its Facebook events page and get one row per upcoming event: name, start time, venue, going and interested counts, event link and cover image. No login, no cookies, no start fee — from $1.50 per 1,000 events, and a re-run returns only the events you do not have yet.**

Put one or more cities in the list — a name with its state or country ("Austin, Texas", "Manchester, United Kingdom") or the city's Facebook events address. The actor reads the city's upcoming events about 11 at a time and returns each one as one flat row. Narrow it to **today**, **this week** or **next week**, and to events whose name holds your **keywords** ("jazz", "market", "comedy").

**Using an AI agent?** Pin this actor in Apify's MCP server with one link: `https://mcp.apify.com?tools=steadyfetch/facebook-events-scraper`

- **Actor id:** `steadyfetch/facebook-events-scraper`
- **Input:** `{ "cities": ["Austin, Texas"], "when": "this_week", "maxEvents": 50 }`
- **Cap the bill:** set `maxTotalChargeUsd` on the run (a run option, not Actor input), e.g. `1.00` — the run stops when it reaches it.
- **Price:** from $0.0015 per event ($0.003 on the Apify free plan); a page that brings fewer new events than $0.005 is worth is billed one $0.005 page check instead. Full table below.
- **How often it changes:** new events are posted every day. Re-run weekly (daily for a "this week" watch): events you bought in the last 90 days are skipped and not charged, so each re-run is mostly the new listings.

*Unofficial, not affiliated with Facebook or Meta.*

### What you get

One row per upcoming event:

| Column | What it holds |
|---|---|
| `name` · `eventId` · `eventUrl` | the event as Facebook shows it, its id and its link |
| `startsAt` · `dateText` | the start time (ISO, UTC) and Facebook's own date text ("Sat, Nov 7 at 7:00 PM EST") |
| `venue` · `venueId` | the place as Facebook names it, and its page id when it has one |
| `isOnline` · `happeningNow` · `eventKind` | online or in person, on right now, and Facebook's event kind |
| `goingCount` · `interestedCount` | the going and interested counts Facebook shows (null when it shows none) |
| `coverImageUrl` | the cover image as Facebook serves it (the link expires after some days) |
| `description` · `address` · `endsAt` | filled only when the event publishes them (about one event in five) |
| `city` · `cityId` · `cityPage` | the city as you typed it, Facebook's id for it, and its events address |
| `searchRank` · `searchPage` · `when` | the event's place in the city's list, and the date window it was read under |
| `alreadyHad` | `true` when your account already received this event (only with "Only events I don't have yet" off) |

Every row also carries `charged`, `chargedEvents`, `status`, `retryable` and `statusReason`, so you can reconcile your bill from the dataset itself. The last row (`run_summary`) is the receipt. **Past events are never delivered or charged. No ticket prices and no host contact details** — the city list does not show them, and this actor does not guess them.

### How to use it

1. Type the city with its state or country — "Austin, Texas" (or "Austin, TX"), "Berlin, Germany". Or paste its events address: on Facebook open Events, pick the city under Location, then copy the address bar (`https://www.facebook.com/events/explore/<city>/<number>`). Up to 50 cities a run, one per line.
2. Pick **When** (any upcoming date, today, this week, next week) and **Max events per city** (events come about 11 to a page).
3. Optional: **Keywords in the event name**. Press Start.

Refused before anything is read, and never charged: a single event's link, a Facebook page or group, another website, an e-mail, and a value with no letters. A city name Facebook's own place list has no city for gets its own uncharged row that says how to paste the address instead.

**One city is read to at most 30 pages (about 330 events) per run.** To reach more, run it again split by **When**.

### Pricing

Pay per result, all-inclusive (no platform usage on top), no start fee:

| Event | Apify Free plan | Bronze | Silver | Gold and up |
|---|---|---|---|---|
| Event (one delivered new upcoming event) | $0.003 | $0.0025 | $0.002 | $0.0015 |
| Page check | $0.005 | $0.005 | $0.005 | $0.005 |

That is $1.50 per 1,000 events at Gold.

**The page check.** Each page of about 11 events is read whole, whatever it returns. A page bills **either** its new events **or** one check — whichever is more — never both. A full page of 11 new events at $0.0015 is $0.0165 and pays no check. A page with fewer new events than one check is worth (the last short page of a city, a city or keyword with nothing upcoming, a page of events your account already had) is billed one $0.005 check on its own row, and its rows say `charged: false`. A city address that lists no upcoming events — including an address Facebook does not know — is read once and billed one check.

**A city typed by name** is looked up once on Facebook's own place list, and that lookup is billed one $0.005 page check on its own row, which names the city it found. Paste the city's events address (it is in `cityPage` on every row) to skip the lookup. A name with no city found is never charged.

Examples: 50 events of one pasted city at Gold = $0.075. "Austin, Texas" for 50 events at Gold = one $0.005 lookup + $0.075 = $0.08. A keyword that matches 5 events on the first page and nothing on the next = 5 × $0.0015 + one $0.005 check = $0.0125.

### Good to know

- **Events you already have.** This actor remembers, in your own Apify account (a key-value store called `facebook-events-account`), which events of which city you bought in the last 90 days. With **Only events I don't have yet** on (the default) a re-run skips them and does not charge for them, and reads on to new events. Turn it off to get them again with fresh going and interested counts, uncharged and marked `alreadyHad`.
- **Keywords** are matched on the event name after each page is read (case and accents ignored), so a page that matches nothing still costs one page check.
- **A search that finds nothing stops early:** a city stops after 3 pages in a row with no new matching event (`maxEmptyPages`, up to 30), so it costs at most 3 page checks ($0.015).
- **How long it takes:** a page takes 2–4 seconds, so 100 events of one city take well under a minute.
- **A time limit ends the collecting, never the delivering**: rows already read are delivered, and the receipt says which limit stopped the run.
- **Free plan:** on the Apify free plan a run reads up to 25 pages (about 275 events) per 24 hours; the row says when it resets. Paid plans have no daily allowance.
- **Standby endpoint:** one city is also available as one HTTP request (`GET /?city=Austin%2C%20Texas&when=this_week`), up to 33 events a request (11 on the free plan), at the same prices. The endpoint does not use your account memory, so every event it returns is charged as new.
- **A bare Start** (no city) reads one sample page of our example city (St. Petersburg, Florida) and charges nothing.

### Support

Questions, a city that returns something odd, or a column you need: open an issue on the Issues tab and it will be looked at.

If it earned its keep, a rating helps other buyers find it, and saving the actor keeps it one click away.

# Changelog

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

# Actor input Schema

## `cities` (type: `array`):

One city per line, up to 50 a run: a name with its state or country ("Austin, Texas", "Manchester, United Kingdom") or the city's Facebook events address (https://www.facebook.com/events/explore/<city>/<number> — on Facebook open Events, pick the city under Location, copy the address bar). A typed name costs one page check for its lookup, a pasted address none. A single event, a page, a group, another website or a name Facebook has no city for gets its own uncharged row.

## `when` (type: `string`):

Which dates: any upcoming date (default), today, this week or next week — Facebook's own date filter.

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

The most events to return for each city. Events come about 11 to a page and one city is read to at most 30 pages (about 330 events) per run. A page that brings fewer new events than one page check is worth is billed one check instead of per event.

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

Only events whose name holds one of these words, for example "jazz", "market" or "comedy" (case and accents ignored). The filter runs after each page is read, so a page whose events match none of them is billed one page check. Leave empty for every event.

## `onlyNew` (type: `boolean`):

On (default): events your account bought for the same city in the last 90 days are skipped and not charged, so a scheduled run returns only new events. Off: they are delivered again with fresh going and interested counts, marked alreadyHad, and not charged for themselves.

## `maxEmptyPages` (type: `integer`):

A city stops after this many pages in a row that bring no new matching event (a keyword nothing matches, or events you already have), so a search that finds nothing costs at most this many page checks. Default 3; up to 30 reads the whole city.

## `maxRunSeconds` (type: `integer`):

Stop collecting after this many seconds. Events already collected are still delivered. Leave empty for no limit beyond the run timeout.

## Actor input object example

```json
{
  "when": "any",
  "maxEvents": 50,
  "onlyNew": true,
  "maxEmptyPages": 3
}
```

# Actor output Schema

## `rows` (type: `string`):

One row per upcoming event of each city you named: name, start time (startsAt, ISO) and Facebook's own date text, venue and its id, online or in person, going and interested counts, event link, cover image link, the event kind, the city and its Facebook events address, and the event's place in the city's list. Description, street address and end time are filled only when the event publishes them. Every row carries `charged`, `chargedEvents` and `status`, so the invoice reconciles from the dataset itself. A new event row is charged once, as an `event`. A page that brings fewer new events than one page check is worth (the last short page, a city or keyword with nothing upcoming, a page of events your account already had) is billed one `page-check` on its own row instead, and its rows say charged: false; a city typed by name pays one `page-check` for its lookup, on its own row. Past events are left out and never charged. No ticket prices or host contact details are returned.

## `misses` (type: `string`):

One uncharged row for each city that returned less than you asked for, saying why: `no_data` (the city lists fewer upcoming events than your limit on the dates and keywords you chose, or none), `skipped.page_cap` (one city is read to at most 30 pages per run — split it by "when"), `input_error` (the entry is a single event, a page, a group, a website, or a name Facebook has no city for — the row names the fix), `feed_unavailable` (Facebook did not answer — please re-run), `limit_reached` (this run or this actor reached its collection limit — the row gives the next step), `skipped_max_items` / `skipped_budget` / `skipped_deadline` (your own limit, maximum charge or the run clock stopped it first) and `skipped.free_plan_allowance` (Apify free plan only: the plan's daily allowance on this actor; the row names the reset time).

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

The run's receipt: events delivered, what was asked for, pages read, city lookups, events skipped because your account already had them, events left out by your keywords or because they were past, the charged events and what stopped the run. Uncharged.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("steadyfetch/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("steadyfetch/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 '{}' |
apify call steadyfetch/facebook-events-scraper --silent --output-dataset

```

## MCP server setup

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