# Events Directory Scraper (`timbered_oak/events-directory-scraper`) Actor

Fetches upcoming public event listings (name, dates, venue, organizer, category, price, url, image) from an Eventbrite city/category discover page.

- **URL**: https://apify.com/timbered\_oak/events-directory-scraper.md
- **Developed by:** [Mark](https://apify.com/timbered_oak) (community)
- **Categories:** Other, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.80 / 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.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Events Directory Scraper

### What it does

Scrapes upcoming public events from an Eventbrite city/category discover
page (`eventbrite.com/d/<location>/<category>/`), then visits each event's
own page to pull organizer and price, which the discover page doesn't expose.

### Input

| Field | Type | Required | Description |
|---|---|---|---|
| `location` | string | yes | Eventbrite location slug from a discover URL, e.g. `ny--new-york`. |
| `category` | string | yes | Eventbrite category slug from a discover URL, e.g. `all-events` or `music--events`. |
| `maxEvents` | integer | no | Max events to scrape from the first results page (default 20, max 100). |

### Output example

One row per event in the default dataset:

```json
{
  "name": "Friday Night Lights at Mama Taco Everyone FREE B4 12am w/RSVP",
  "startDate": "2026-09-04T20:00:00-04:00",
  "endDate": "2026-09-05T04:00:00-04:00",
  "venueName": "MAMATACO",
  "city": "Brooklyn",
  "country": "US",
  "organizer": "JiggyTime Ent",
  "category": "Music",
  "priceText": "USD 0.00 - 55.20",
  "url": "https://www.eventbrite.com/e/friday-night-lights-at-mama-taco-everyone-free-b4-12am-wrsvp-tickets-1990839672051",
  "image": "https://img.evbuc.com/..."
}
```

`organizer` is the organization/promoter name only — never an attendee or
individual's personal data.

### Pricing

Pay-per-event (PPE). One `event-scraped` event is charged per dataset row
via `Actor.charge({ eventName: 'event-scraped' })`, priced at **$0.0038 per
event** ($3.80/1k) — 16% under the best-rated comparable Eventbrite/10times
actor on the Store. Configure the price and event name in the Apify Console's
Actor pricing step.

### Limits / known gaps

- Datacenter proxy is enough; no residential proxy needed (rule 1).
- Free-plan compute only (`policy/RULES.md` rule 4).
- Only the first results page of the discover URL is scraped — no pagination.
- Eventbrite serves search results in one of two page shapes depending on
  whether a category is set (`event_data.active_search` vs `search_data`);
  both are handled, but a future layout change could still break the
  `window.__SERVER_DATA__` extraction — it's isolated to two small functions
  in `src/main.ts` for that reason.
- No attendee, RSVP, or individual-person data is collected; `organizer` is
  the listed organization name only.

# Actor input Schema

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

Eventbrite location slug from a discover-page URL, e.g. https://www.eventbrite.com/d/ny--new-york/ -> "ny--new-york".

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

Eventbrite category slug from a discover-page URL, e.g. "all-events" or "music--events".

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

Maximum number of events to scrape from the discover page's first results page.

## Actor input object example

```json
{
  "location": "ny--new-york",
  "category": "all-events",
  "maxEvents": 20
}
```

# Actor output Schema

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

All scraped event rows as JSON

# 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 = {
    "location": "ny--new-york",
    "category": "all-events"
};

// Run the Actor and wait for it to finish
const run = await client.actor("timbered_oak/events-directory-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 = {
    "location": "ny--new-york",
    "category": "all-events",
}

# Run the Actor and wait for it to finish
run = client.actor("timbered_oak/events-directory-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 '{
  "location": "ny--new-york",
  "category": "all-events"
}' |
apify call timbered_oak/events-directory-scraper --silent --output-dataset

```

## MCP server setup

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