Skip to content

piotrv1001/eventbrite-scraper-nodejs-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Scrape Eventbrite Events in Node.js

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.

Eventbrite event scraper results

What this example does

  • 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

Prerequisites

Installation

npm install

Environment setup

Copy .env.example to .env and add your Apify API token:

cp .env.example .env

Then open .env and set your token:

APIFY_TOKEN=your_apify_token_here

Usage

npm start

Code example

import { 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/docs

Example output

See 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

Use cases

  • 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

Try the actor on Apify

Open the Eventbrite Event Scraper on Apify

Related resources

License

MIT

About

How to scrape Eventbrite events in Node.js using the Apify Eventbrite Event Scraper actor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors