# StubHub Events Scraper (`pyronets/stubhub-events-scraper`) Actor

Turn StubHub performer, team, category or venue pages into a list of events: name, start time, venue and performer. Feed the event links to StubHub Ticket Listings Scraper.

- **URL**: https://apify.com/pyronets/stubhub-events-scraper.md
- **Developed by:** [Pyronets](https://apify.com/pyronets) (community)
- **Categories:** E-commerce, Sports, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 events

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/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

## StubHub Events Scraper

Turn a StubHub performer, team, category, grouping or venue page - or a performer's or team's name - into a clean list of its events: name, start time, venue, city and performer, one row per event. Download the results as JSON, CSV or Excel, or pull them through the API.

The results' `eventUrl` can be fed straight into the StubHub Ticket Listings Scraper,
which collects every ticket listing of the event: copy the `eventUrl` column into its
**Event links**, or chain the two actors with Apify's integrations.

### What you get

One result per event:

| Field | Example | Meaning |
|---|---|---|
| `site` | `stubhub` | The marketplace |
| `eventId` | | The marketplace's id for the event |
| `eventUrl` | | The event's page on StubHub |
| `name` | | The event's name |
| `startsAtLocal` | `2026-11-04T19:30:00` | Start in the venue's local time; a date alone when the time is not set |
| `startsAtUtc` | `2026-11-05T00:30:00Z` | Start in UTC, when known |
| `venueName` | `Madison Square Garden` | The venue |
| `venueId` | | The marketplace's id for the venue |
| `city` | `New York` | The venue's city |
| `state` | `NY` | The venue's state or province |
| `country` | `US` | The venue's country |
| `performers` | `["New York Knicks"]` | Performers or teams |
| `category` | | StubHub's category, when given |
| `minPrice` | | The event's starting price in US dollars, when StubHub gives one |
| `currency` | `USD` | Currency of the price |
| `priceIncludesFees` | | Empty: StubHub does not say |
| `listingCount` | | How many listings the event has, when StubHub gives it |
| `url` | | The StubHub page you gave |
| `query` | | The name you gave |
| `scrapedAt` | `2026-11-03T14:05:12Z` | When the event was read |

### How to use it

1. Open a performer, team, category or venue page on StubHub and copy the link from
   your browser's address bar into **StubHub pages** - or type names into
   **Performer or team names**.
2. Optionally set **From date** / **To date**, and **Max results** to cap the run.
3. Click **Start**. Events appear in the **Output** tab as they are collected.

Example input:

```json
{"pageUrls": ["https://www.stubhub.com/mlb-tickets/grouping/81"],
 "searchTerms": ["New York Yankees"]}
```

### How long it takes

A page usually starts returning events within half a minute, then about 100 events every 10 to 30 seconds. Several pages run in parallel (**Pages at the same time**).

### Pricing

You pay per result (one event) plus a small charge when the run starts. Set a maximum
cost on any run and it stops when that amount is reached. A broad search can find
thousands of events: use **Max results** to cap a run.

### Good to know

- Prices are in US dollars.
- A name is matched to the StubHub page of exactly that name. When none is found the
  name is skipped with the reason; paste the page link instead.
- Parking passes, which StubHub lists as events of their own, are left out.
- On the free Apify plan, results are limited to a daily sample.
- The run's **RUN_SUMMARY** record (in the key-value store) lists any input that could not
  be used, with the reason.

### Integrations

Send results to Google Sheets, Slack, Zapier, Make or your own webhook with Apify's
integrations, or call the actor from your code through the Apify API.

### Questions and issues

Open an issue on this actor's **Issues** tab and include the run link.

Running at a high volume, or need another site or field? Ask in an issue.

This actor collects publicly available event information. You are responsible for using
the data in line with the law and the terms that apply to you.

# Actor input Schema

## `pageUrls` (type: `array`):

StubHub performer, team, category, grouping or venue pages, one per line, as in stubhub.com/mlb-tickets/grouping/81. Open the page on StubHub and copy the link from the address bar.

## `searchTerms` (type: `array`):

Names to find on StubHub, one per line, as in New York Yankees. A name is matched to a StubHub page of exactly that name; when one is not found, paste the page link instead.

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

Only events on or after this day, in the venue's local time. Leave empty to start from today.

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

Only events on or before this day, in the venue's local time. Leave empty for every future date.

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

Stop after this many events in total. Leave empty to collect every event the search finds.

## `maxConcurrency` (type: `integer`):

How many pages or names are collected in parallel.

## Actor input object example

```json
{
  "pageUrls": [
    "https://www.stubhub.com/mlb-tickets/grouping/81"
  ],
  "maxItems": 20,
  "maxConcurrency": 2
}
```

# Actor output Schema

## `results` (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 = {
    "pageUrls": [
        "https://www.stubhub.com/mlb-tickets/grouping/81"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pyronets/stubhub-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 = {
    "pageUrls": ["https://www.stubhub.com/mlb-tickets/grouping/81"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("pyronets/stubhub-events-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 '{
  "pageUrls": [
    "https://www.stubhub.com/mlb-tickets/grouping/81"
  ],
  "maxItems": 20
}' |
apify call pyronets/stubhub-events-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pyronets/stubhub-events-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/m6puU5C5rq9Fw93Dh/builds/lfEFPtFrze0BYmgKp/openapi.json
