[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [StubHub event search](https://spiral.ai/integrations/vscode/stubhub-event-search)

# How to Use StubHub event search in VS Code

Returns matching StubHub events with names, dates, venues, and links. Use it to find candidate events before checking an event’s details or individual ticket offers.

|  |  |
| --- | --- |
| Model | StubHub event search |
| Available through | Alexandria |
| Category | Maps & Reviews |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with StubHub event search in VS Code

- Use StubHub event search to find Los Angeles Lakers events, then populate our event list with the returned names, dates, venues, and links.
- Use StubHub event search for Hamilton and add a comparison view of the returned performance dates and venues.
- Use StubHub event search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from StubHub event search and tell me what changed since last week.
- Check StubHub event search and summarize what you find in three bullet points.

## How to set up StubHub event search in VS Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **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

1. **Send VS Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run StubHub event search**: One request; the result comes back by polling or a webhook.

```bash
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/search",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: VS Code finds StubHub event search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/vscode

## StubHub event search tools and prices

- [StubHub · Search](https://spiral.ai/tools/alexandria/stubhub-com/events/search) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 100 | 1 | page |

## What can you do with StubHub event search 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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All VS Code guides](https://spiral.ai/integrations/vscode)

## StubHub event search in other agents

- [Amp](https://spiral.ai/integrations/amp/stubhub-event-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/stubhub-event-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/stubhub-event-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/stubhub-event-search)
- [Cline](https://spiral.ai/integrations/cline/stubhub-event-search)
- [Codex](https://spiral.ai/integrations/codex/stubhub-event-search)
- [Cursor](https://spiral.ai/integrations/cursor/stubhub-event-search)
- [Devin](https://spiral.ai/integrations/devin/stubhub-event-search)
- [dots](https://spiral.ai/integrations/dots/stubhub-event-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/stubhub-event-search)
- [Gemini](https://spiral.ai/integrations/gemini/stubhub-event-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/stubhub-event-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/stubhub-event-search)
- [goose](https://spiral.ai/integrations/goose/stubhub-event-search)
- [Grok](https://spiral.ai/integrations/grok/stubhub-event-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/stubhub-event-search)
- [Hermes](https://spiral.ai/integrations/hermes/stubhub-event-search)
- [Instinct](https://spiral.ai/integrations/instinct/stubhub-event-search)
- [Manus](https://spiral.ai/integrations/manus/stubhub-event-search)
- [Muse](https://spiral.ai/integrations/muse/stubhub-event-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/stubhub-event-search)
- [n8n](https://spiral.ai/integrations/n8n/stubhub-event-search)
- [Notion](https://spiral.ai/integrations/notion/stubhub-event-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/stubhub-event-search)
- [opencode](https://spiral.ai/integrations/opencode/stubhub-event-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/stubhub-event-search)
- [Raycast](https://spiral.ai/integrations/raycast/stubhub-event-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/stubhub-event-search)
- [Zapier](https://spiral.ai/integrations/zapier/stubhub-event-search)

## More VS Code guides

- [StubHub event details](https://spiral.ai/integrations/vscode/stubhub-event-details)
- [StubHub ticket listings](https://spiral.ai/integrations/vscode/stubhub-ticket-listings)
- [State Department travel advisories](https://spiral.ai/integrations/vscode/state-department-travel-advisories)
- [TickPick event categories](https://spiral.ai/integrations/vscode/tickpick-event-categories)
- [State Department destination advisory](https://spiral.ai/integrations/vscode/state-department-destination-advisory)
- [TickPick event details](https://spiral.ai/integrations/vscode/tickpick-event-details)

## Questions about StubHub event search in VS Code

**Can VS Code use StubHub event search?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run StubHub event search like any built-in tool.

**How much does StubHub event search 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 event search in VS Code?**

No. Spiral runs StubHub event search 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 event search in VS Code?**

About two minutes: add the hosted server, then sign in.

**Does VS Code wait while StubHub event search runs?**

StubHub event search 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.

