# StubHub Scraper - Events and Schedules (`scrapewise/stubhub-scraper`) Actor

Scrape stubhub.com event schedules around a point: event name, date, time, venue, city, country, price class flag and event link. Events and schedules only, no buyer or seller data. Error rows are free.

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

## Pricing

from $0.76 / 1,000 event delivereds

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 Scraper

Scrape the event schedule that stubhub.com lists for an area. Give a latitude and a longitude (New York City is the default) and get one row per event with its name, date, day of the week, start time, venue, city, region, country, the site's price class number, its yes or no flag, and the event link, across as many listing pages as you need.

Use it to build an events calendar for a city, find what is on at a venue this week, follow the schedule of a sports team or a theatre, or feed a site or a newsletter with upcoming events. This Actor lists events and schedules. It does not read ticket prices.

### At a glance

| | |
|---|---|
| **Price** | US$ 1.00 per 1,000 events delivered, plus US$ 0.001 per run |
| **You pay for** | Unique events delivered. Error rows and events already delivered in an earlier run are free |
| **Login** | None. Only the public event listing is read |
| **Area** | Any point on the map, given as latitude and longitude. The listing covers the events the site returns for that point |
| **Speed** | About 17 to 19 events per page, several pages per minute |
| **Export** | Table, JSON, CSV, Excel, HTML, or through the API |

### Quick start

1. Keep the defaults to list New York City, or type a latitude and a longitude for another area.
2. Set **Maximum events** to the number you need. The default is 50.
3. Press **Start** and open the **Events** table when the run ends.

The same run through the API input:

```json
{
  "latitude": 40.7128,
  "longitude": -74.006,
  "maxItems": 100
}
```

### Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `latitude` | number | 40.7128 | Latitude of the centre of the area. Between -90 and 90. |
| `longitude` | number | -74.006 | Longitude of the centre of the area. Between -180 and 180. Give latitude and longitude together. |
| `maxItems` | integer | 50 | Most events to deliver in one run. Leave 0 for no limit. Each event is charged once. |
| `proxyConfiguration` | object | default connection | Keep the default. The event schedule is public and needs no special connection. |

A run reads the pages of one area in order. An event that shows up on two pages is delivered once.

### Output

Each row is one event. Fields with no value are empty (`null`), never guessed.

| Field | Type | Meaning |
|---|---|---|
| `type` | string | `event` for a delivered event, `error` for a free error row |
| `eventId` | integer | StubHub event id |
| `name` | string | Event name as StubHub lists it |
| `date` | string | Event date (YYYY-MM-DD), read from the event link |
| `dayOfWeek` | string | Day of the week, for example `Tue` |
| `time` | string | Start time as StubHub shows it, for example `6:00 PM`, in the venue's local time |
| `venueName` | string | Venue name |
| `city` | string | City of the venue |
| `region` | string | State or region code of the venue, for example `NY` |
| `country` | string | Country of the venue, for example `USA` |
| `priceClass` | integer | StubHub's class number for the event, as the site gives it. The values seen run from 1 to 4. The site does not explain the scale, so it is not a price in dollars |
| `isUnderHundred` | boolean | StubHub's yes or no flag on the event. The site does not explain what it compares, so it is not a price |
| `url` | string | Event page on stubhub.com |
| `sourceUrl` | string | The area listing the event was read from |
| `scrapedAt` | string | When the Actor read the event (UTC) |
| `errorCode` | string | Error code, only on error rows |
| `error` | string | Error message, only on error rows |

The Actor does not collect buyer or seller data, and it does not open the event pages.

### How the area works

The area is a point on the map. The site lists the events it has near that point, in its own order, and returns them page by page. The Actor reads the pages one after another until the site has no more events for the point, or until the run reaches the maximum you set. Each page holds about 17 to 19 events, and the site reports how many events remain, so the run stops at the end of the list.

### Example output

Real row from a local run for New York City (the first event of the run, other fields as StubHub gives them):

```json
{
  "type": "event",
  "eventId": 162115072,
  "name": "Going Bacharach",
  "date": "2026-11-04",
  "dayOfWeek": "Wed",
  "time": "2:30 PM",
  "venueName": "The Marjorie S. Deane Little Theater",
  "city": "New York",
  "region": "NY",
  "country": "USA",
  "priceClass": 4,
  "isUnderHundred": false,
  "url": "https://www.stubhub.com/going-bacharach-new-york-tickets-11-4-2026/event/162115072/",
  "sourceUrl": "https://www.stubhub.com/explore",
  "scrapedAt": "2026-11-04T00:48:09Z",
  "errorCode": null,
  "error": null
}
```

### Ideas for using the data

- **Events calendar:** run one area each day and publish the next week's events, grouped by `date` and `venueName`.
- **Venue watch:** keep the rows for one venue and send a message when a new event appears.
- **Team or artist schedule:** filter `name` for a team or an artist and list the dates and venues in order.
- **Weekend guide:** keep the events where `dayOfWeek` is a weekend day and sort them by `time`.
- **Map of events:** group `city` and `venueName` to count the events each venue hosts in a month.

### Tips for better results

- One point gives the events the site returns for that area. Move the point to cover a neighbourhood or another city.
- Set **Maximum events** to the number you need. A run stops at the limit, so you pay only for what it delivers.
- Run the same area on a schedule and compare the rows from one run to the next to see new events.
- Read `priceClass` as a class number only. The field is useful for sorting events, not for comparing prices.

### Integrations, scheduling and AI agents

- **Schedules:** run the area every day and keep a running calendar in a spreadsheet.
- **Export:** download the dataset as JSON, CSV or Excel from the run page, or read it through the API.
- **Make, n8n and Zapier:** send a message when a new event at a chosen venue appears.
- **Apify MCP server:** let an AI agent ask which events are on in an area this weekend.

### FAQ

**Does this Actor give ticket prices?**
No. It lists events and schedules. The `priceClass` and `isUnderHundred` fields are StubHub's own labels, and the site does not explain them, so the Actor does not turn them into prices.

**Do I need a StubHub account?**
No. The Actor reads only the public event listing.

**What does `date` come from?**
From the event link on the site, which holds the day, month and year. The `time` field is the start time the listing shows.

**Why is `priceClass` empty for some events?**
StubHub does not give a class for every event, so the field stays empty for those rows.

**Does one run cover the whole city?**
One run reads the listing pages for one point, up to 40 pages. Use a second run with another point to cover more of the city.

**Can I get the same event twice?**
No. Each event is delivered once per run, even when it appears on more than one page.

**What happens when a page is refused?**
The Actor tries again with a new connection, up to 6 times for each page. If every try is refused, it writes a free error row with `errorCode` `BLOCKED`.

**Can I stop and start again later?**
Yes. An event already delivered in an earlier run is not charged again.

### Limitations

- The Actor reads only the listing. It does not open event pages, so it has no ticket availability or seat information.
- The listing shows the events the site returns for the area at the time of the run. Events added or removed later show up in later runs.
- Dates and times follow the site's own listing. Check the event link before you act on a schedule.
- The site can refuse a page for a few minutes. A refused page writes a free error row, and running again later usually works.

### Changelog

**3 Nov 2026, version 0.1**

- First version. Event schedules around a point with name, date, time, venue, city, region, country, price class flag, yes or no flag and event link. Pages read with `page=N`.

# Actor input Schema

## `latitude` (type: `number`):

Latitude of the centre of the area to list. Default is New York City.

## `longitude` (type: `number`):

Longitude of the centre of the area to list. Give latitude and longitude together. Default is New York City.

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

Most events to deliver in one run. Each event is charged once. Leave 0 for no limit.

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

Keep the default. The event schedule is public and needs no special connection.

## Actor input object example

```json
{
  "latitude": 40.7128,
  "longitude": -74.006,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `resultsCsv` (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 = {
    "latitude": 40.7128,
    "longitude": -74.006,
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/stubhub-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 = {
    "latitude": 40.7128,
    "longitude": -74.006,
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/stubhub-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 '{
  "latitude": 40.7128,
  "longitude": -74.006,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapewise/stubhub-scraper --silent --output-dataset

```

## MCP server setup

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