How to Use StubHub ticket listings in VS Code
Returns a page of public resale offers with section, row, per-ticket amount, group total, and fee disclosures. Use it to compare ticket options for a specific event and party size.
Prompts to try with StubHub ticket listings in VS Code
Copy an example into VS Code, or ask in your own words.
Use StubHub ticket listings for an upcoming Boston Celtics home game for two attendees and build a table showing section, row, group total, and fee disclosures.
Use StubHub ticket listings for an upcoming New York Rangers home game for four attendees and populate our offer comparison component with the returned data.
Use StubHub ticket listings to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from StubHub ticket listings and tell me what changed since last week.
Check StubHub ticket listings and summarize what you find in three bullet points.
How to set up StubHub ticket listings in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run StubHub ticket listings
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "stubhub-com/events/listings", "input": { "url": "<url>" } }'
Then paste one of the prompts above: VS Code finds StubHub ticket listings on Spiral, shows the price and runs it.
StubHub ticket listings providers and prices
Spiral runs StubHub ticket listings through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Page | 1 to 1000 | 1 | page |
| Quantity | 1 to 20 | 2 | quantity |
Every API field of StubHub · Listings is on its tool page: open its card above.
What can you do with StubHub ticket listings in VS Code?
Build an event comparison view that puts StubHub venues, schedule confirmation, and resale options beside each other. Use returned data to populate the project’s event cards and offer tables.
Choose a game for a group outing
Find upcoming Lakers games, check each event’s venue and schedule confirmation, then compare resale offers for four attendees.
Compare stops on a concert trip
Find Coldplay events, check the returned venues and dates, and compare ticket offers for two people at the shortlisted stops.
Plan a theater weekend
Find Hamilton performances, check the venue and confirmed schedule for each candidate, and compare available resale sections for the party.
Build a venue outing shortlist
Find events associated with Madison Square Garden, verify each returned event’s venue, and compare ticket options before choosing an outing.
Review changes across saved observations
Repeat a Celtics event search, compare event details with earlier observations, and review how the returned resale offers have changed.
Compare attendance options across home games
Find New York Rangers games, check event inventory counts and schedule confirmation, then compare sections and party-size options across candidate games.
More on StubHub ticket listings and VS Code
Overview
StubHub ticket listings in other agents
Questions about StubHub ticket listings in VS Code
Can VS Code use StubHub ticket listings?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run StubHub ticket listings like any built-in tool.
How much does StubHub ticket listings cost in VS Code?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.
Do I need an Alexandria account to use StubHub ticket listings in VS Code?
No. Spiral runs StubHub ticket listings on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up StubHub ticket listings in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while StubHub ticket listings runs?
StubHub ticket listings runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.
What part of StubHub does this data cover?
The provider reads anonymous StubHub pages and public resale inventory. It covers event discovery, individual event details, and paginated resale offers with quantity restrictions.
Is StubHub limited to US events?
StubHub says it has tickets to live events in over 150 countries. That marketplace reach does not establish that a particular search contains every event in a country.
How quickly can ticket offers change?
Sellers can edit listings and change their asking amounts anytime before the tickets sell. A returned offer can therefore change before you revisit it.
How can I check whether an event’s schedule is confirmed?
The event details expose separate date and time confirmation flags. Check both when an event’s schedule matters to your plans.
Why might a ticket offer omit seat information?
StubHub says a seller may not have had the seat information when listing the tickets. Public listing data can therefore lack exact seats.
Start using StubHub ticket listings in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


