← Back to all apps

StubHub

Lifestyle
Open in ChatGPT →

Browse events and find tickets

3Tools
LifestyleCategory

Available Tools

StubHub provides 3 tools that can be used to interact with its services.

Search StubHub Events Catalog

event-search
Full Description

Use this when the user wants to discover events, performances, games, matches, shows, etc. Use this tool to make high-intent searches for specific performer names, team names, event names, venue names, or other specific entities. Also use this tool to make low-intent searches for broad categories, generes, performance types, etc. This is the primary discovery tool and should be called BEFORE any other tools when the user doesn't have an event_id. High-intent example prompts: 'Find Taylor Swift concerts', 'Show me Yankees games in July near Boston', 'What Wicked shows are this weekend?', 'Lakers games in December in Los Angeles', 'Bad Bunny concerts next month', Low-intent example prompts: 'pop concerts this month in vegas', football games next week', 'broadway musicals coming up', 'standup comedy shows happening at the beacon theatre', 'college basketball games in madison square garden', etc. DO NOT use this tool if the useris asking about an event that already has an event_id from a previous call.

Parameters

Required
querystring

The search term for finding events (performer name, team name, event name, venue). Examples: 'Taylor Swift', 'New York Yankees', 'Hamilton', 'Knicks vs. Lakers', 'Coachella', 'Madison Square Garden'.

Optional
category_tagsarray

List of relevant tags for this query. Can be multiple tags if the category spans multiple types. Analyze the query to determine the most relevant tags. Tags must be selected from the predefined enum of allowed values. Tags are formatted as 'TYPE_SUBTYPE' (e.g., SPORT_NBA, CONCERT_Metal, THEATER_Play) where TYPE is the high-level category and SUBTYPE is the specific genre, sport, or style. If high-level categories are requested without a subtype, i.e. 'show me upcoming CONCERTS', use the generic tag for that TYPE. generic tags for a TYPE are formatted as 'TYPE_' (omitting the SUBTYPE) Examples:MULTIPLE SPECIFIC TAGS (query matches several subcategories):- 'basketball las vegas' → ['SPORT_NBA', 'SPORT_WNBA', 'SPORT_College_Basketball']- 'football tickets' → ['SPORT_NFL', 'SPORT_College_Football']- 'rock concert' → ['CONCERT_Rock', 'CONCERT_HardRock', 'CONCERT_Metal', 'CONCERT_Alternative']SINGLE SPECIFIC TAG (confident about one subcategory):- 'knicks vs lakers' → ['SPORT_NBA']- 'taylor swift' → ['CONCERT_Pop']- 'hamilton broadway' → ['THEATER_Broadway']- 'nfl game' → ['SPORT_NFL']- 'stand up comedy' → ['THEATER_StandUp']- 'coachella festival' → ['FESTIVAL_Music']SINGLE PARTIAL TAG (category clear, subcategory unclear):- 'concert tonight' → ['CONCERT_']- 'sports game near me' → ['SPORT_']- 'theater show' → ['THEATER_']- 'live music' → ['CONCERT_']ALL CATEGORY PREFIXES (very general exploration):- 'what to do' → ['SPORT_', 'CONCERT_', 'THEATER_', 'FESTIVAL_']- 'stuff to do in new york' → ['SPORT_', 'CONCERT_', 'THEATER_', 'FESTIVAL_']- 'what's going on' → ['SPORT_', 'CONCERT_', 'THEATER_', 'FESTIVAL_']- 'things to do' → ['SPORT_', 'CONCERT_', 'THEATER_', 'FESTIVAL_']- 'events happeing near me' → ['SPORT_', 'CONCERT_', 'THEATER_', 'FESTIVAL_']

event_end_datestring

The latest date to include in search results. Format: YYYY-MM-DD. Events on or before this date will be returned. For relative terms like 'next month' or 'this weekend', 'in Decemeber', etc. convert them to specific dates using the LAST day of the specified range.Weekends end on Sunday. 'in December' refers to an event_end_date of 12-31.NEVER USE A DATE BEFORE TODAY. ALL DATES MUST BE TODAY OR LATER.

event_start_datestring

The earliest date to include in search results. Format: YYYY-MM-DD. Events on or after this date will be returned. For relative terms like 'next month' or 'this weekend', 'in Decemeber', etc. convert them to specific dates using the FIRST day of the specified range.Weekends start on Friday. 'in December' refers to an event_start_date of 12-01.NEVER USE A DATE BEFORE TODAY. ALL DATES MUST BE TODAY OR LATER.

intent_levelstring

Classify the user's search query intent level. Must be set to either 'HIGH_INTENT' or 'LOW_INTENT'. HIGH_INTENT queries seek specific events, performers, or teams, even if the query is ambiguous or incomplete. HIGH_INTENT includes: - Artist/performer names (full or partial): 'taylor swift', 'zach', 'megan', 'coldplay' - Team names: 'knicks', 'yankees', 'lakers' - Specific events: 'super bowl', 'world series', 'wicked broadway' - Queries with entity + context: 'coldplay las vegas dec 12', 'knicks vs celtics'The key distinction: If the user is searching FOR a specific who/what (even if abbreviated or ambiguous), set to 'HIGH_INTENT'. LOW_INTENT queries are broad, exploratory, or ask what's available. They indicate the user doesn't know what specific event they want yet. LOW_INTENT includes: - Category browsing: 'concerts', 'sports games', 'theater shows', 'comedy' - Location-based discovery: 'concerts in las vegas', basketball games in nyc' - Venue-based discovery: 'events at madison square garden', 'what is at the sphere' - Category + filters: 'nba games in nyc next 60 days', 'college basketball', 'motorsport events' - Genre-based searches: 'rock concerts', 'EDM music', 'broadway shows' - Exploratory: 'what to do', 'things to do in vegas', 'events tonight'The key distinction: If the user is asking what's available in a category/location, set to 'LOW_INTENT'.

Options:HIGH_INTENTLOW_INTENT
location_coordinatesstring

Geographic coordinates to find events near a specific location. Format: 'latitude, longitude' (comma-separated decimal degrees). Examples: '40.730610, -73.935242' for New York City, '34.052235, -118.243683' for Los Angeles, '41.878113, -87.629799' for Chicago. For large areas (states/countries), use central point coordinates. Use when user mentions 'near me', city names, or geographic locations.

venue_namestring

The name of the venue where the event is expected to take place. Use when the user specifically mentions a venue in their query. Examples: 'Madison Square Garden', 'SoFi Stadium', 'Wembley Stadium', 'Sydney Opera House'.

View Available Tickets for Event

fetch-listings
Full Description

Use this when the user wants to see available tickets/listings for a SPECIFIC event that has already been identified. This tool displays ticket prices, seat locations, venue maps, and 'View from Seat' photos. REQUIRES an event_id from a previous event-search call. Example prompts: 'Show me tickets for that game', 'What are the cheapest seats?', 'Find me 4 tickets together', 'Show the best value tickets', 'What seats have the best view?', 'I need 2 tickets under $200'. DO NOT use this tool without an event_id. DO NOT use this tool as the first tool call.If you cannot find an event_id, ask the user to event-search tool first.

Parameters

Required
event_idstring

The unique StubHub event identifier (entity_id) obtained from a previous event-search tool call. Format: numeric string (e.g., '150423042'). This is required to fetch listings.

Optional
quantityinteger

Minimum number of tickets needed together in a single listing. Format: positive integer (e.g., 1, 2, 3, 4, etc.). Use when user specifies group size: 2 for couples/pairs, 4 for families/small groups, 6+ for large groups. Filters out listings with fewer tickets than specified. Examples: quantity=2 for 'I need two tickets together', quantity=4 for 'tickets for my family'. Defaults to 2 if not specified.

sort_bystring

How to order the ticket listings. Valid values: 'RECOMMENDED' (StubHub's algorithmic recommendation, balances price and quality), 'NEWPRICE' (cheapest tickets first, use for 'lowest price' or 'cheapest seats'), 'CALCULATEDBESTVALUE' (best price-to-quality ratio, use for 'best deal' or 'best bang for buck'), 'CALCULATEDBESTSEATS' (highest quality seats first, use for 'best view' or 'best seats'). Defaults to 'NEWPRICE' if not specified. Examples: use 'NEWPRICE' for 'show me the cheapest tickets', 'CALCULATEDBESTSEATS' for 'what are the best seats?'

Show Details for Specific Ticket

highlight-listing
Full Description

Use this when the user asks about or wants to purchase a SPECIFIC ticket/listing that was shown in a previous fetch-listings call. This tool displays detailed information for ONE listing including exact pricing, seat location, and a static 'View from Seat' photo (NOT a venue map). This view has more details provided than the fetch-listings tool. REQUIRES both event_id and listing_id from previous tool calls. Example prompts: 'Tell me more about the tickets in section 120', Show medetails for those section 101 seats', 'I want that $150 ticket', 'that ticket in row 5 looked good', 'Can I see that seat view?'. Do not use for general browsing or without a specific listing_id.

Parameters

Required
event_idstring

The unique StubHub event identifier (entity_id) from event-search. Format: numeric string (e.g., '150423042'). Required to identify which event the listing belongs to. Must match the event_id used in the previous fetch-listings call.

listing_idinteger

The specific ticket listing identifier from a fetch-listings call. Format: positive integer (e.g., 50159291703). This identifies the exact set of tickets the user is interested in. Each listing represents a unique set of seats with specific pricing.

Optional
quantityinteger

Minimum number of tickets needed together in this listing. Format: positive integer. Typically should match the quantity from the previous fetch-listings call if specified. Use when user wants to confirm ticket availability for their group size (e.g., 'Are there still 4 tickets in that listing?'). If not previously specified, defaults to 2.