Spiral gives your agent every tool with one account. Browse the tools →

opencode · Maps & Reviews

How to Use StubHub ticket listings in opencode

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 opencode

Copy an example into opencode, 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.

StubHub ticket listingsopencode
Try asking
  • 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 opencode

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

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. 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: opencode 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.

AlexandriaMaps & Reviews
StubHub · Listings
stubhub-com/events/listings

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Page1 to 10001

page

Quantity1 to 202

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 opencode?

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.

Questions about StubHub ticket listings in opencode

Can opencode use StubHub ticket listings?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run StubHub ticket listings like any built-in tool.

How much does StubHub ticket listings cost in opencode?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an Alexandria account to use StubHub ticket listings in opencode?

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 opencode?

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

Does opencode wait while StubHub ticket listings runs?

StubHub ticket listings runs in the background. opencode 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.

Get started

Start using StubHub ticket listings in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options