This example shows how to scrape Eventbrite events in Node.js using the Eventbrite Event Scraper actor on Apify. No browser automation or HTML parsing required — just call the actor via the Apify API client and get structured event data back.
- Passes a list of Eventbrite search URLs as input to the actor
- Runs the actor on Apify's cloud infrastructure
- Waits for the run to complete
- Fetches the results from the actor's dataset
- Prints each event object to the console
- Node.js v18 or higher
- An Apify account (free tier available)
- An Apify API token
npm installCopy .env.example to .env and add your Apify API token:
cp .env.example .envThen open .env and set your token:
APIFY_TOKEN=your_apify_token_here
npm startimport { ApifyClient } from 'apify-client';
import 'dotenv/config';
// Initialize the ApifyClient with your Apify API token
// Set APIFY_TOKEN in your .env file (copy .env.example to get started)
const client = new ApifyClient({
token: process.env.APIFY_TOKEN,
});
// Prepare Actor input
const input = {
"searchUrls": [
"https://www.eventbrite.com/d/united-states--texas/all-events/"
]
};
// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/eventbrite-event-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/docsSee sample-output.json for a full example. Each event object includes:
| Field | Description |
|---|---|
name |
Event title |
url |
Link to the Eventbrite event page |
image |
Cover image URL |
description |
Short event description |
startDate / endDate |
Event date(s) in YYYY-MM-DD format |
startTime / endTime |
Event time(s) in HH:MM format |
tags |
List of category and keyword tags |
venue |
Venue name and full structured address |
isOnlineEvent |
true if the event is online-only |
publishedAt |
ISO 8601 timestamp of when the event was published |
- Event aggregators — build a local or niche events directory by scraping multiple Eventbrite search pages
- Market research — analyze event trends, popular categories, and organizer activity in a city or industry
- Lead generation — find conferences, meetups, and trade shows relevant to your target audience
- Competitive intelligence — track events hosted by competitors or industry organizations
- Travel & lifestyle apps — surface upcoming events near a user's location for recommendations
Open the Eventbrite Event Scraper on Apify
MIT
