# Stubhub Explore Events Scraper (`stealth_mode/stubhub-explore-events-scraper`) Actor

Scrape StubHub's explore events pages to collect event details, venue information, pricing, and availability status. This scraper extracts 21+ fields per event including names, dates, locations, and ticket availability — perfect for event aggregators, price analysts, and market researchers.

- **URL**: https://apify.com/stealth\_mode/stubhub-explore-events-scraper.md
- **Developed by:** [Stealth mode](https://apify.com/stealth_mode) (community)
- **Categories:** Automation, Developer tools, News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## StubHub Explore Events Scraper: Extract Event Data at Scale

### What Is StubHub?

StubHub is a leading secondary ticket marketplace for live events including sports, concerts, theater, and festivals. The platform's Explore section helps users discover events by location and date. Extracting this event data manually is inefficient — the **StubHub Explore Events Scraper** automates the collection, capturing structured event records with pricing, venue, and availability details.

---

### Overview

The **StubHub Explore Events Scraper** extracts event listings from StubHub's Explore pages, transforming dynamic web content into clean, structured records. It is designed for:

- **Event aggregators** building multi-source event databases
- **Price analysts** tracking ticket availability and price trends
- **Market researchers** studying event demand by location and category
- **Travel platforms** integrating StubHub events into booking flows
- **BI analysts** benchmarking event supply and pricing across regions

Key strengths include pagination support for large result sets, configurable item limits, and robust error handling with `ignore_url_failures`.

---

### Input Format

The scraper accepts a JSON configuration object with three primary parameters:

```json
{
  "urls": [
    "https://www.stubhub.com/explore?lat=NDguODU3NTQ3NQ%3D%3D&lon=Mi4zNTEzNzY1&page=2"
  ],
  "ignore_url_failures": true,
  "max_items_per_url": 200
}
````

| Parameter | Type | Description | Example |
|---|---|---|---|
| `urls` | Array | StubHub Explore page URLs. URLs can include filters (location, category, date) and pagination parameters. | `https://www.stubhub.com/explore?lat=...&lon=...&page=2` |
| `ignore_url_failures` | Boolean | If `true`, the scraper continues running even if some URLs fail. Useful for bulk scraping to prevent interruptions. | `true` or `false` |
| `max_items_per_url` | Integer | Maximum number of events to collect from each URL. Controls data volume and runtime. | `20`, `50`, `200` |

**Input requirements:**

- URLs must be direct StubHub Explore links (with or without filters)
- Pagination parameters in the URL (e.g., `page=2`) are respected
- Encoded parameters (e.g., `lat=...`) are automatically decoded
- Empty or malformed URLs are skipped if `ignore_url_failures: true`

***

### Output Format

**Sample output**

```json
{
  "category_id": 181926,
  "image_url": "https://media.stubhubstatic.com/stubhub-v2-catalog/d_defaultLogo.jpg/q_auto:low,f_auto,c_fill,g_auto,w_280,h_170,dpr_2.0/categories/181926/6428408",
  "price_class": 3,
  "event_id": 161251180,
  "name": "Gracie Abrams",
  "url": "https://www.stubhub.com/gracie-abrams-paris-tickets-4-8-2027/event/161251180/",
  "day_of_week": "Thu",
  "formatted_time": "8:00 PM",
  "formatted_date_without_year": "Apr 08",
  "is_tbd": false,
  "is_date_confirmed": true,
  "is_time_confirmed": true,
  "event_state": 0,
  "venue_id": 1023,
  "venue_name": "Accor Arena (AccorHotels Arena)",
  "allow_public_purchase": true,
  "formatted_venue_location": "Paris, France",
  "has_active_listings": false,
  "is_favorite": false,
  "aggregate_favorites": 0,
  "is_parking_event": false,
  "is_refetched_global_event": false,
  "is_under_hundred": false,
  "from_url": "https://www.stubhub.com/explore?lat=NDguODU3NTQ3NQ%3D%3D&lon=Mi4zNTEzNzY1&page=1&method=getExploreEvents"
}
```

Each scraped event returns a detailed record with 21 fields covering identification, timing, location, and availability:

#### Event Identification & Metadata

| Field | Meaning |
|---|---|
| `Event ID` | Unique StubHub identifier for the event |
| `Name` | Official event title (e.g., "Taylor Swift - The Eras Tour") |
| `URL` | Direct link to the event listing on StubHub |
| `Category ID` | Internal category code (sports, music, theater, etc.) |
| `Image URL` | Event poster or image URL for display |

#### Date & Time Information

| Field | Meaning |
|---|---|
| `Day Of Week` | Event day as text (e.g., "Friday", "Saturday") |
| `Formatted Date Without Year` | Short date format (e.g., "Dec 15") |
| `Formatted Time` | Time of event (e.g., "7:30 PM") |
| `Is TBD` | Boolean flag: `true` if date/time is "To Be Determined" |
| `Is Date Confirmed` | Boolean flag: `true` if the event date is confirmed |
| `Is Time Confirmed` | Boolean flag: `true` if the event time is confirmed |

#### Venue Information

| Field | Meaning |
|---|---|
| `Venue ID` | Unique identifier for the event venue |
| `Venue Name` | Venue name (e.g., "Madison Square Garden") |
| `Formatted Venue Location` | City/location of the venue (e.g., "New York, NY") |

#### Pricing & Availability

| Field | Meaning |
|---|---|
| `Price Class` | Ticket price tier or range (e.g., "Premium", "Standard", "Budget") |
| `Has Active Listings` | Boolean: `true` if tickets are currently available for sale |
| `Is Under Hundred` | Boolean: `true` if cheapest available ticket is under $100 |

#### Event Status & Features

| Field | Meaning |
|---|---|
| `Event State` | Current state of the event (active, cancelled, postponed, completed) |
| `Allow Public Purchase` | Boolean: `true` if the event is open to public ticket purchases |
| `Is Parking Event` | Boolean: `true` if this is a parking/transportation event rather than entertainment |
| `Is Refetched Global Event` | Boolean: indicates if the event data was recently updated from StubHub's global database |

#### User Interaction Data

| Field | Meaning |
|---|---|
| `Is Favorite` | Boolean: `true` if the event is marked as favorite by the current session |
| `Aggregate Favorites` | Count of how many users have marked this event as a favorite |

***

### How to Use

1. **Identify explore pages** — Navigate to StubHub.com/explore and apply filters (location, date, category) to focus your search.
2. **Extract URLs** — Copy the filtered URL(s), including pagination parameters if you want multiple pages.
3. **Configure the scraper** — Paste URLs into the `urls` array. Set `max_items_per_url` (e.g., `20` for quick tests, `200` for bulk data).
4. **Set error handling** — Use `ignore_url_failures: true` for robust bulk runs.
5. **Run and download** — Start the scraper and export results as JSON, CSV, or Excel.

**Tips & Best Practices:**

- Use location-filtered URLs to collect events from specific cities or regions
- Adjust `max_items_per_url` based on your needs (higher values = more data but longer runtime)
- Set `ignore_url_failures: true` when scraping multiple pages to handle network issues gracefully
- Events marked `Is TBD: true` may have incomplete pricing or date data

**Common issues:**

- If a URL returns 0 events, verify it is an active Explore page with results
- StubHub may rate-limit rapid requests; consider spacing out runs if scraping many URLs

***

### Use Cases & Business Value

- **Event aggregation:** Build a unified database of events from StubHub alongside other platforms
- **Price intelligence:** Track ticket availability, pricing tiers, and demand trends across events
- **Market research:** Analyze event distribution by location, category, and venue capacity
- **Dynamic pricing analysis:** Monitor how StubHub's `Price Class` and availability evolve over time
- **Venue intelligence:** Identify popular venues and their event calendars

The StubHub Explore Events Scraper delivers real-time event data that integrates seamlessly into analytics platforms, dashboards, and aggregator sites — eliminating manual data collection and enabling data-driven event insights.

***

### Conclusion

The **StubHub Explore Events Scraper** is a powerful tool for anyone needing structured event data from one of the world's largest ticket marketplaces. With 21 detailed fields covering events, venues, pricing, and availability, it enables comprehensive event analysis and integration. Start scraping today and unlock event intelligence at scale.

# Actor input Schema

## `urls` (type: `array`):

Add the URLs of the explore events urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.

## `ignore_url_failures` (type: `boolean`):

If true, the scraper will continue running even if some URLs fail to be scraped.

## `max_items_per_url` (type: `integer`):

The maximum number of items to scrape per URL.

## Actor input object example

```json
{
  "urls": [
    "https://www.stubhub.com/explore?lat=NDguODU3NTQ3NQ%3D%3D&lon=Mi4zNTEzNzY1&page=2"
  ],
  "ignore_url_failures": true,
  "max_items_per_url": 20
}
```

# 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 = {
    "urls": [
        "https://www.stubhub.com/explore?lat=NDguODU3NTQ3NQ%3D%3D&lon=Mi4zNTEzNzY1&page=2"
    ],
    "ignore_url_failures": true,
    "max_items_per_url": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("stealth_mode/stubhub-explore-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 = {
    "urls": ["https://www.stubhub.com/explore?lat=NDguODU3NTQ3NQ%3D%3D&lon=Mi4zNTEzNzY1&page=2"],
    "ignore_url_failures": True,
    "max_items_per_url": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("stealth_mode/stubhub-explore-events-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.stubhub.com/explore?lat=NDguODU3NTQ3NQ%3D%3D&lon=Mi4zNTEzNzY1&page=2"
  ],
  "ignore_url_failures": true,
  "max_items_per_url": 20
}' |
apify call stealth_mode/stubhub-explore-events-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=stealth_mode/stubhub-explore-events-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Stubhub Explore Events Scraper",
        "description": "Scrape StubHub's explore events pages to collect event details, venue information, pricing, and availability status. This scraper extracts 21+ fields per event including names, dates, locations, and ticket availability — perfect for event aggregators, price analysts, and market researchers.",
        "version": "0.0",
        "x-build-id": "oor5YhkPvZ0wUCiAR"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/stealth_mode~stubhub-explore-events-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-stealth_mode-stubhub-explore-events-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/stealth_mode~stubhub-explore-events-scraper/runs": {
            "post": {
                "operationId": "runs-sync-stealth_mode-stubhub-explore-events-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/stealth_mode~stubhub-explore-events-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-stealth_mode-stubhub-explore-events-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "urls": {
                        "title": "URLs of the explore events urls to scrape",
                        "type": "array",
                        "description": "Add the URLs of the explore events urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "ignore_url_failures": {
                        "title": "Continue running even if some URLs fail to be scraped",
                        "type": "boolean",
                        "description": "If true, the scraper will continue running even if some URLs fail to be scraped."
                    },
                    "max_items_per_url": {
                        "title": "Max items per URL",
                        "type": "integer",
                        "description": "The maximum number of items to scrape per URL."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
