# StubHub Event Scraper (`parseforge/stubhub-scraper`) Actor

Scrapes StubHub event listings by search query or direct URL. Returns each ticket with price, section, row, quantity, and deal score.

- **URL**: https://apify.com/parseforge/stubhub-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** E-commerce, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 154 total users, 9 monthly users, 99.2% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

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

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner-v4.webp)](https://apify.com/parseforge?fpr=vmoqkp)

### StubHub Event Scraper

**Scrape StubHub event listings, ticket prices, and availability for any performer, team, or venue.** Get real-time pricing, seat details, and deal scores from search queries or direct URLs. Export to CSV, JSON, Excel, or XML.

StubHub's ticket marketplace moves fast, and checking prices manually across dozens of events wastes time. This actor reads the public event pages directly, so you can pull current listings for concerts, sports, and theater without building a browser extension. Feed it a performer name like Taylor Swift or a list of event URLs, and it returns every ticket row in one flat dataset.

| Who uses it | What they scrape StubHub for |
|---|---|
| Ticket resellers | Monitor competitor pricing on the same event to adjust their own listings. |
| Concert fans | Track price drops for a specific artist's upcoming tour dates. |
| Market analysts | Chart average ticket prices by city or performer over a season. |
| Event promoters | Check secondary-market demand for a rival show in the same venue. |

### What it does

This Actor collects StubHub event listings by search query or direct URL and returns each ticket with its price, section, row, and deal score.

- 🔍 **Search by query:** type an artist, team, or event name and collect up to your max items limit.
- 🔗 **Direct URL input:** paste performer, grouping, or event page URLs to scrape exactly those listings.
- ⚡ **Parallel requests:** control concurrency to balance speed against rate limits.
- 📊 **Flat row output:** each ticket returns as one row with price, section, row, quantity, and deal score.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with StubHub data

**📈 Monitor competitor pricing.**

A ticket reseller runs the actor daily on a list of event URLs to see how other sellers are pricing the same section and adjusts their own floor.

**🎟️ Track a tour's secondary market.**

A fan searches for a major artist and collects every upcoming show to watch for price dips in the weeks before the concert.

**📍 Compare prices across cities.**

An analyst scrapes the same performer in five cities to build a report on regional demand and average ticket cost.

**📊 Feed a pricing dashboard.**

A developer schedules the actor to push fresh StubHub listings into a spreadsheet or database every six hours for a live market view.

### Why choose this scraper

|  | What you get |
|---|---|
| **Real-time prices** | See the current listed price, not a cached estimate. |
| **Seat details** | Get section, row, and available quantity for every listing. |
| **Deal scores** | StubHub's own rating of how good a price is relative to similar seats. |
| **Flexible input** | Search by performer name or target exact event URLs. |

### How it compares

This actor focuses on flexible input via search or direct URLs and returns flat, analysis-ready ticket rows. Here is how it lines up against other StubHub scrapers on Apify.

| Feature | ParseForge | StubHub Event Scraper | Stubhub Event Price Scraper |
|---|---|---|---|
| Search by performer name | Yes | Not listed | Not listed |
| Direct URL input | Yes | Not listed | Not listed |
| Deal score per ticket | Yes | Not listed | Yes |
| Seat section and row | Yes | Not listed | Yes |
| Configurable concurrency | Yes | Not listed | Not listed |

### Configure the run

Drive the Actor from a search query or a list of StubHub URLs, and set a maximum number of events to cap the run. The Input tab lists every parameter.

A first run with the defaults:

```json
{
  "startUrls": [
    "https://www.stubhub.com/latin-fest-tickets/grouping/137978298"
  ],
  "query": "taylor swift",
  "maxItems": 10
}
```

A larger pull:

```json
{
  "startUrls": [
    "https://www.stubhub.com/latin-fest-tickets/grouping/137978298"
  ],
  "query": "taylor swift",
  "maxItems": 200
}
```

### Pricing

Pay-per-result: **$0.005 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $0.50 |
| 1,000 results | $5.00 |
| 10,000 results | $50.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [StubHub Event Scraper](https://apify.com/parseforge/stubhub-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to StubHub through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/stubhub-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check that your search query matches an active StubHub event. Try a direct event URL instead. Also confirm you have not set 'Maximum events' to zero.

**The actor is returning 403 or blocked errors.**

StubHub is rate-limiting your requests. Lower the max concurrency to 1 or 2 and try again. If the problem persists, add a longer delay between runs.

**Some ticket listings are missing from the output.**

StubHub pages load dynamically, and the actor captures what is in the initial HTML. Listings that require heavy JavaScript interaction may not appear. Try a direct event URL to see if coverage improves.

**The search returns events I did not expect.**

StubHub's search can be broad. Use a more specific query, like the full artist name plus 'tickets', or switch to direct URL input for precise targeting.

**My run is taking too long.**

Reduce the 'Maximum events' count or increase the max concurrency. Be aware that higher concurrency raises the risk of rate-limiting.

### FAQ

| Question | Answer |
|---|---|
| Can I scrape StubHub without an API key? | Yes. This actor reads the public web pages that StubHub serves to browsers, so no API registration or key is required. |
| What is the difference between search and URL input? | Search mode takes a keyword like an artist name and finds matching events. URL mode lets you paste exact performer, grouping, or event page links to scrape only those listings. |
| How many events can I scrape in one run? | You set the maximum with the 'Maximum events' field. The actor stops after collecting that many events, which helps control your usage. |
| Does this actor handle StubHub's international sites? | It works with the primary stubhub.com domain. If you have a specific international URL, you can try it as a direct input, but the actor is built for the US site. |
| What data fields does the output include? | Each row returns the ticket price, section, row, available quantity, and StubHub's deal score, along with the event name and URL. |
| Can I filter by price or section? | The actor collects all visible listings for the events you target. You can filter the results after export in your spreadsheet or database tool. |
| Will I get blocked if I run this too fast? | StubHub may rate-limit aggressive scraping. Lower the max concurrency setting if you start seeing blocked requests, and the actor will slow down. |
| Can I schedule this to run automatically? | Yes. Once the actor is in your Apify account, you can set a schedule to run it hourly, daily, or on any cron expression. |
| Does it scrape sold-out events? | If StubHub still shows resale listings for a sold-out event, the actor will collect them. It reads whatever tickets are publicly listed on the page. |
| What export formats are supported? | You can export your dataset to CSV, JSON, Excel, or XML from the Apify console. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by StubHub, Inc. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `startUrls` (type: `array`):

List of StubHub URLs to scrape (performer, grouping, or event pages). If provided, the query field is ignored.

## `query` (type: `string`):

Keyword or performer name to search. Used only if Start URLs is empty.

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

How many events to collect per run.

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

Maximum number of parallel requests. Lower this if you get rate-limited.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.stubhub.com/latin-fest-tickets/grouping/137978298"
  ],
  "query": "taylor swift",
  "maxItems": 10,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

Dataset with all scraped items

# 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 = {
    "startUrls": [
        "https://www.stubhub.com/latin-fest-tickets/grouping/137978298"
    ],
    "query": "taylor swift",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/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 = {
    "startUrls": ["https://www.stubhub.com/latin-fest-tickets/grouping/137978298"],
    "query": "taylor swift",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/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 '{
  "startUrls": [
    "https://www.stubhub.com/latin-fest-tickets/grouping/137978298"
  ],
  "query": "taylor swift",
  "maxItems": 10
}' |
apify call parseforge/stubhub-scraper --silent --output-dataset

```

## MCP server setup

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