# Eventbrite Events (`xenondev/xenon-eventbrite`) Actor

Scrapes public Eventbrite search/destination pages with Apify residential proxies for a given city + category + date window. Outputs events in the webhook schema.

- **URL**: https://apify.com/xenondev/xenon-eventbrite.md
- **Developed by:** [XenonDev](https://apify.com/xenondev) (community)
- **Categories:** Agents, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 4 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

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

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

## xenon-eventbrite

Apify Actor that scrapes **Eventbrite public search/destination pages** for feedirl.

Uses Apify **residential proxies** + `CheerioCrawler` with `SessionPool` to avoid blocks.
Outputs events in the exact shape the `event-ingestion-webhook` n8n workflow expects (`source: "eventbrite"`).

***

### Why scraping instead of API?

Eventbrite shut down their public Event Search API in 2019. There is no official way to browse
"all public events in NYC / food this week" without a special distribution partner agreement.
This Actor scrapes the same public destination pages a regular browser visits.

***

### Setup

#### 1. Install dependencies

```bash
npm install
```

#### 2. Local test run

Edit `INPUT.json` with your city/category/dates, then:

```bash
npx apify run
```

Results appear in `storage/datasets/default/`.

> **Note:** Local runs without real Apify proxies will often get blocked by Eventbrite.
> For reliable testing, deploy to Apify and run from the Console where residential proxies work.

***

### Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `city` | string | yes | — | City name (one of the 23 supported metros) |
| `category` | string | yes | — | Eventbrite category slug |
| `startDate` | string | yes | — | `YYYY-MM-DD` |
| `endDate` | string | yes | — | `YYYY-MM-DD` |
| `country` | string | no | `united-states` | Country slug |
| `maxPages` | integer | no | `20` | Max listing pages to scrape (~20 events/page) |
| `proxyConfiguration` | object | no | RESIDENTIAL | Proxy config — keep residential |

#### Supported cities

New York, Los Angeles, Miami, Nashville, Austin, Chicago, Washington DC, Boston,
Philadelphia, San Francisco, San Diego, Seattle, Denver, Houston, Dallas, Atlanta,
Charlotte, Kansas City, St. Louis, Cleveland, Phoenix, Orlando, Salt Lake City

#### Supported categories

`food-and-drink`, `health`, `sports-and-fitness`, `arts`, `film-and-media`, `science-and-tech`, `business`

***

### How it works

1. Builds a destination search URL for `city/category?start_date=...&end_date=...`
2. `CheerioCrawler` fetches pages through **US residential proxies**
3. Detects and retires sessions on block pages (403, captcha, Cloudflare)
4. Extracts events from `__SERVER_DATA__` embedded JSON (preferred) or CSS selectors (fallback)
5. Maps each event to the feedirl Eventbrite schema
6. Paginates until `maxPages` or no next page

***

### Output shape (per event)

```json
{
  "_type": "destination_event",
  "id": "123456789",
  "eventbrite_event_id": "123456789",
  "name": "NYC Food & Wine Festival",
  "summary": "...",
  "url": "https://www.eventbrite.com/e/...",
  "start_date": "2026-08-20",
  "start_time": "18:00",
  "end_date": "2026-08-20",
  "end_time": "22:00",
  "is_online_event": false,
  "image": { "url": "https://img.evbuc.com/..." },
  "tags": [{ "display_name": "Food & Drink" }],
  "ticket_availability": {
    "is_free": false,
    "minimum_ticket_price": { "display": "$35" }
  },
  "primary_venue": {
    "name": "Pier 60",
    "address": {
      "address_1": "Pier 60, Chelsea Piers",
      "city": "New York",
      "localized_address_display": "Pier 60, Chelsea Piers, New York, NY 10011",
      "latitude": "40.7480",
      "longitude": "-74.0048"
    }
  }
}
```

***

### Maintenance guide

Eventbrite changes their page structure occasionally. When events stop returning:

1. Open DevTools → Network in Chrome, visit the search page
2. Look for a request returning `destination_event` objects in JSON
3. Update `parseList.js` `findEvents()` to target the new JSON key structure
4. The `mapEvent.js` should mostly survive changes as long as venue/date fields exist

***

### Deploy to Apify

```bash
apify login
apify push
```

After deploying, copy the Actor ID from the Apify Console and replace `EVENTBRITE_ACTOR_ID` in `event-ingestion.json` in the n8n repo.

***

### n8n wiring

In `feedirl-n8n/n8n-workflows/event-ingestion.json`:

```js
const EVENTBRITE_ACTOR_ID = 'YOUR_USERNAME~xenon-eventbrite';
```

The city × category × date input shape is identical to what the n8n loop already builds.

# Actor input Schema

## `city` (type: `string`):

Metro display name (e.g. 'New York') OR Eventbrite location slug (e.g. 'nv--las-vegas', 'ny--new-york'). Format for slugs: {state}--{city} lowercase with hyphens.

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

Eventbrite category slug (e.g. 'food-and-drink', 'arts', 'health', 'sports-and-fitness', 'film-and-media', 'science-and-tech', 'business').

## `startDate` (type: `string`):

Start of date range in YYYY-MM-DD. Optional — if omitted, uses today (UTC).

## `endDate` (type: `string`):

End of date range in YYYY-MM-DD. Optional — if omitted, uses 7 days from today (UTC).

## `country` (type: `string`):

Eventbrite country slug.

## `maxPages` (type: `integer`):

Maximum listing pages to scrape. Omit to crawl Eventbrite search pages until they end (capped at 30). Prefill is 1 for a fast Store/console test run.

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

Stop after this many unique events. Omit for no item cap.

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

Residential proxies are required — Eventbrite blocks most datacenter IPs.

## Actor input object example

```json
{
  "city": "ny--new-york",
  "category": "food-and-drink",
  "startDate": "2026-08-22",
  "endDate": "2026-08-29",
  "country": "united-states",
  "maxPages": 1,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

All scraped events as dataset items.

## `run` (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 = {
    "city": "New York",
    "category": "food-and-drink",
    "maxPages": 1,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("xenondev/xenon-eventbrite").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 = {
    "city": "New York",
    "category": "food-and-drink",
    "maxPages": 1,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("xenondev/xenon-eventbrite").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 '{
  "city": "New York",
  "category": "food-and-drink",
  "maxPages": 1,
  "maxItems": 20
}' |
apify call xenondev/xenon-eventbrite --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xenondev/xenon-eventbrite"
        }
    }
}
```

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/h3YgKyjxmXwa2hT0V/builds/ZcLe3vF5hkWPgU7lF/openapi.json
