{"openapi":"3.1.0","info":{"title":"StubHub Events Performers and Tickets Data (x402 & MCP)","version":"0.1.0","description":"StubHub event schedules, ticket listings, price ranges, venues and performer catalogs, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/stubhub-com/v1/search":{"post":{"operationId":"stubhub_com_search","summary":"StubHub Events Performers and Tickets Data: Search StubHub events, venues and ticket listings","description":"Query StubHub events, performers, venues and optional ticket listings with prices and seating metadata. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["stubhub-com","Events"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Leave on Auto to select a mode from your target fields. Select Suggest, Cities, Categories or Sitemap explicitly to request those results.","default":"auto","enum":["auto","search","performer","event","venue","grouping","category","explore","suggest","categories","cities","sitemap"]},"startUrls":{"type":"array","items":{"type":"string"},"description":"StubHub event or list-page URLs. Each URL selects the matching page type; event links return event details."},"query":{"type":"string","description":"One search phrase, such as weeknd, lakers or hamilton. Used by Search and Suggest; Auto selects Search when this is the only target."},"eventUrl":{"type":"string","description":"Canonical StubHub event link. The event ID is read from the URL when eventId is not supplied.","pattern":"^\\s*(https?://)?([A-Za-z0-9-]+\\.)*stubhub\\.[a-z.]+/.*$"},"eventId":{"type":"string","description":"Numeric StubHub event ID, such as 159358883. A current canonical event URL is preferable when available.","pattern":"^\\s*\\d+\\s*$"},"detailUrls":{"type":"array","items":{"type":"string"},"description":"List of StubHub event URLs to collect. Use these for event details or ticket listings."},"listingIds":{"type":"array","items":{"type":"string"},"description":"List of numeric StubHub event IDs. Despite the field name, these are event IDs, not ticket-listing IDs."},"performerId":{"type":"string","description":"Numeric artist or team ID from /performer/ in a StubHub URL. Used by Performer and Cities.","pattern":"^\\s*\\d+\\s*$"},"performerSlug":{"type":"string","description":"Artist or team name as it appears in the URL, such as the-weeknd. Optional when performerId is supplied."},"citySlug":{"type":"string","description":"City text from a performer city-filter URL, such as london. Use with cityId in Performer mode."},"cityId":{"type":"string","description":"Numeric city filter ID from a performer URL, such as 4031. Use with citySlug in Performer mode.","pattern":"^\\s*\\d+\\s*$"},"venueId":{"type":"string","description":"Venue page ID from /venue/ in the URL. Output calls this venuePageId and may include a different venueId.","pattern":"^\\s*\\d+\\s*$"},"venueSlug":{"type":"string","description":"Venue name as it appears in the page URL. Optional when venueId is supplied."},"groupingId":{"type":"string","description":"Numeric tour or show grouping ID from /grouping/ in the URL, such as 130466796.","pattern":"^\\s*\\d+\\s*$"},"groupingSlug":{"type":"string","description":"Tour or show name as it appears in the grouping URL. Optional when groupingId is supplied."},"categoryId":{"type":"string","description":"Numeric category ID from a category row or /category/ URL.","pattern":"^\\s*\\d+\\s*$"},"categorySlug":{"type":"string","description":"Category text for Category mode. Without categoryId, this text is used as a search phrase."},"city":{"type":"string","description":"Explore city preset, such as london, nyc, warsaw or sydney. Supply both lat and lon to use explicit coordinates instead."},"lat":{"type":"number","description":"Latitude for Explore mode. Supply with lon to override the city preset."},"lon":{"type":"number","description":"Longitude for Explore mode. Supply with lat to override the city preset."},"maxResults":{"type":"integer","description":"Maximum rows for each input query, URL or ID: 1-500, default 70; larger requests are collected in parts of up to 70. Profiles and listings share the limit; the run stops at your maximum charge, with Free plans capped at 200 rows per run and 10 runs.","default":5,"minimum":1,"maximum":10},"maxPages":{"type":"integer","description":"Maximum list pages to examine, from 1 to 20. A higher value may find more events but does not guarantee complete coverage.","default":1,"minimum":1,"maximum":20},"includeListings":{"type":"boolean","description":"In Event mode, return one billed row per ticket listing, with event and venue fields copied onto each row. Missing listings do not prove an event is sold out; check inventoryStatus and inventoryComplete.","default":false},"maxShowMore":{"type":"integer","description":"Listing pagination effort after the first page, from 0 to 20. Additional pages may be examined to continue results, but delivered rows still respect maxResults.","default":5,"minimum":0,"maximum":20},"quantity":{"type":"integer","description":"Only return listings that can be bought in this ticket quantity, from 1 to 12. Leave empty for all listings.","minimum":1,"maximum":12},"priceMin":{"type":"number","description":"Only return listings priced at or above this per-ticket amount. Leave empty for no lower bound.","minimum":0},"priceMax":{"type":"number","description":"Only return listings priced at or below this per-ticket amount. Leave empty for no upper bound.","minimum":0},"sectionIds":{"type":"array","items":{"type":"integer"},"description":"Keep only listings in these numeric section IDs; local filtering applied to collected listing rows."},"zoneIds":{"type":"array","items":{"type":"integer"},"description":"Keep only listings in these numeric zone IDs; local filtering applied to collected listing rows."},"includeSeatMap":{"type":"boolean","description":"In Event mode, attach available zone, section and row geometry. This does not provide individual-seat coordinates or ticket availability.","default":false},"includePerformerProfile":{"type":"boolean","description":"In Performer mode, add a separately billed performer profile row. Available fields may include genres, a Spotify track and viewer counts; this row shares maxResults with events.","default":false},"includeVenueProfile":{"type":"boolean","description":"In Venue mode, add a separately billed venue profile row. Available fields may include capacity, coordinates and address; this row shares maxResults with events.","default":false},"enrichDetails":{"type":"boolean","description":"Fill missing event times and venue addresses from event details when available. This does not guarantee phone numbers or email addresses.","default":true},"host":{"type":"string","description":"Select the StubHub storefront; regional event IDs are not interchangeable with stubhub.com IDs. Keep event URLs on their original host; coverage varies by storefront and mode.","default":"stubhub.com","enum":["stubhub.com","stubhub.co.uk","stubhub.ie","stubhub.de","stubhub.fr","stubhub.es","stubhub.it","stubhub.be","stubhub.nl","stubhub.com.au"]},"venueComplete":{"type":"boolean","description":"Look for additional venue events through related performer pages. This does not guarantee a complete venue calendar.","default":false},"venueUnionMaxPerformers":{"type":"integer","description":"Maximum performer pages to check when venueComplete is enabled, from 1 to 30.","default":12,"minimum":1,"maximum":30},"venueUnionMaxDetailChecks":{"type":"integer","description":"Maximum event details to check when verifying expanded venue results, from 0 to 60.","default":24,"minimum":0,"maximum":60},"sitemapChildLimit":{"type":"integer","description":"Maximum child sitemaps to examine in Sitemap mode, from 1 to 51. Use a small value for a first run; omission adds no explicit child limit.","minimum":1,"maximum":51},"sitemapKinds":{"type":"array","items":{"type":"string"},"description":"Filter discovery rows by page kind: event, performer, venue, grouping, category, performer_city or url. Leave empty for all kinds."}},"additionalProperties":false},"example":{"mode":"search","query":"lakers","includeListings":false,"maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_stubhub_com"},"example":{"jobId":"job_stubhub-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","listingId":"example_listingId","title":"example_title","section":"example_section","row":"example_row"}],"meta":{"site":"stubhub-com","endpoint":"search","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":15000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/stubhub-com/v1/health":{"get":{"operationId":"stubhub_com_health","summary":"StubHub Events Performers and Tickets Data: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["stubhub-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_stubhub_com":{"type":"object","properties":{"rowType":{"type":["string","null"],"title":"Row type"},"id":{"type":["string","null"],"title":"ID"},"listingId":{"type":["string","null"],"title":"Listing ID"},"title":{"type":["string","null"],"title":"Title"},"section":{"type":["string","number","boolean","object","array","null"]},"row":{"type":["string","number","boolean","object","array","null"]},"seat":{"type":["string","number","boolean","object","array","null"]},"price":{"type":["string","null"],"title":"Listing price"},"quantity":{"type":["string","number","boolean","object","array","null"]},"eventType":{"type":["string","null"],"title":"Type"},"datetimeLocal":{"type":["string","null"],"title":"Date"},"venueName":{"type":["string","null"],"title":"Venue"},"venueCity":{"type":["string","null"],"title":"City"},"venueCountry":{"type":["string","null"],"title":"Country"},"lowestPrice":{"type":["string","null"],"title":"From"},"priceCurrency":{"type":["string","null"],"title":"Cur"},"listingCount":{"type":["number","string","null"]},"inventoryStatus":{"type":["string","number","boolean","object","array","null"]},"url":{"type":["string","null"],"format":"uri","title":"URL"},"address.street":{"type":["string","number","boolean","object","array","null"]},"phones":{"type":["array","object","string","null"]},"emails":{"type":["array","object","string","null"]},"org.name":{"type":["string","number","boolean","object","array","null"]}},"additionalProperties":true},"Response_stubhub_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_stubhub_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}