StubHub Event and Ticket Scraper: how to get the data as JSON/CSV (API, Python, no code)
Scrape StubHub performer and category pages into event rows: event name, date, time, venue, city, location, ticket price display, active listings flag, and direct event link. This guide shows the output fields, a working input, and
Python, JavaScript and cURL code for the Actor v0iddo/stubhub on Apify.
Open StubHub Event and Ticket Scraper on Apify
What data you get
One row per result. Every row can be downloaded as JSON, CSV, Excel or HTML, or read through the API.
| Field | Label | Type | Example |
|---|---|---|---|
eventId | Event ID | text | 162104785 |
eventName | Event Name | text | Toronto Blue Jays at New York Yankees (Home Opener) |
startDate | Date | text | Mar 25 2027 |
startTime | Time | text | 1:35 PM |
venueName | Venue | text | Yankee Stadium |
venueCity | City | text | Bronx |
venueLocation | Location | text | Bronx, NY, USA |
minPriceDisplay | Min Ticket Price | text | |
hasActiveListings | Has Active Listings | true/false | true |
url | Event URL | URL | https://www.stubhub.com/new-york-yankees-bronx-tickets-3-25-2027/ev... |
Input example
This is the input that is pre-filled on the Actor page. Change the values for your own run.
{
"pageUrls": [
"https://www.stubhub.com/new-york-yankees-tickets/performer/5650",
"https://www.stubhub.com/concert-tickets/category/1"
],
"maxItems": 20
}
| Input field | Type | What it does |
|---|---|---|
pageUrls (required) | array | StubHub performer pages (https://www.stubhub.com/taylor-swift-tickets/performer/136034) or category pages (https://www.stubhub.com/concert-tickets/category/1). |
maxItems | integer | The run stops after this many result rows. |
Output sample
Real rows from a run of the Actor. Fields that name people are left out of the sample.
[
{
"eventId": "162104785",
"eventName": "Toronto Blue Jays at New York Yankees (Home Opener)",
"startDate": "Mar 25 2027",
"startTime": "1:35 PM",
"venueName": "Yankee Stadium",
"venueCity": "Bronx",
"venueLocation": "Bronx, NY, USA",
"hasActiveListings": true,
"url": "https://www.stubhub.com/new-york-yankees-bronx-tickets-3-25-2027/event/162104785/"
},
{
"eventId": "162104792",
"eventName": "Toronto Blue Jays at New York Yankees",
"startDate": "Mar 27 2027",
"startTime": "1:35 PM",
"venueName": "Yankee Stadium",
"venueCity": "Bronx",
"venueLocation": "Bronx, NY, USA",
"hasActiveListings": true,
"url": "https://www.stubhub.com/new-york-yankees-bronx-tickets-3-27-2027/event/162104792/"
}
]
Code: Python, JavaScript and cURL
Get your API token in Apify Console under Settings, then Integrations. The Actor id is v0iddo/stubhub.
Python (apify-client)
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run_input = {'pageUrls': ['https://www.stubhub.com/new-york-yankees-tickets/performer/5650',
'https://www.stubhub.com/concert-tickets/category/1'],
'maxItems': 20}
run = client.actor("v0iddo/stubhub").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)
JavaScript (apify-client)
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const input = {
"pageUrls": [
"https://www.stubhub.com/new-york-yankees-tickets/performer/5650",
"https://www.stubhub.com/concert-tickets/category/1"
],
"maxItems": 20
};
const run = await client.actor('v0iddo/stubhub').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
cURL
curl -X POST "https://api.apify.com/v2/acts/v0iddo~stubhub/run-sync-get-dataset-items" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"pageUrls": ["https://www.stubhub.com/new-york-yankees-tickets/performer/5650", "https://www.stubhub.com/concert-tickets/category/1"], "maxItems": 20}'
Price
$2.55 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $1.78 per 1,000. See the pricing tab for your plan. A new Apify account gets $5 of platform credit every month.
Good to know
- Performer pages return the visible event grid (typically 6 to 24 events) with full venue, local time, and ticket price. Category pages return up to 2000 events with UTC dates and listing counts...
- Ticket prices are shown in the currency StubHub assigns based on visitor location. Set proxy_country to US for consistent USD prices.
- Date and time extracted from category pages are UTC. Use performer pages for local event times.
- Not affiliated with StubHub.
FAQ
What data does the StubHub Event and Ticket Scraper return?
Each result is one row in an Apify dataset. Fields include eventId, eventName, startDate, startTime, venueName, venueCity, venueLocation, minPriceDisplay, and more. The table above shows every field with an example value.
How do I use the StubHub Event and Ticket Scraper from Python?
Install the apify-client package, create a client with your Apify API token, call the Actor v0iddo/stubhub with an input like the one above, and read the rows from the run's dataset. The Python snippet above does exactly that.
Can I use it without writing code?
Yes. Open the Actor page on Apify, fill in the input form (an example is already filled in), press Start, and download the results as JSON, CSV, Excel or HTML. You can also schedule runs there.
How much does it cost?
$2.55 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $1.78 per 1,000. A new Apify account gets $5 of platform credit every month.
How do I limit the number of results?
Set the maxItems input field to the number of results you need; the run stops there, so it also caps the cost of one run. You can also set a maximum cost for a run in the run options on Apify, and the run stops when it is reached.
Can I send the results to Google Sheets, Make, Zapier or n8n?
Yes. Apify datasets connect to Google Sheets, Slack, Make, Zapier and n8n, and a webhook can call your own service when a run finishes. You can also export the dataset as JSON, CSV or Excel.
Open StubHub Event and Ticket Scraper on Apify
Related guides
- Google Maps Scraper: Google Maps scraper for business listings by search and place: name, category, address, coordinates, rating...
- TheFork Restaurant Reviews Scraper: Scrape TheFork city listing pages into restaurant rows: name, cuisine, address, TheFork rating, review coun...
- Y Combinator Work at a Startup Jobs Scraper: Ycombinator was scraper for the Work at a Startup jobs board.