Piloterr Stubhub API
The Stubhub API from Piloterr — 2 operation(s) for stubhub.
The Stubhub API from Piloterr — 2 operation(s) for stubhub.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/piloterr-com:piloterr-com-stubhub-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Piloterr API Reference Stubhub API
description: Complete API reference documentation.
version: 1.0.0
servers:
- url: https://api.piloterr.com
description: API Server
tags:
- name: Stubhub
paths:
/v2/stubhub/event:
get:
summary: StubHub Event
description: 'Read one StubHub event from its URL or numeric id, including the lowest printed ticket price.
**Credit cost:** 2 credits per call'
operationId: get-stubhub-event
security:
- ApiKeyAuth: []
parameters:
- name: query
in: query
required: true
description: Required. StubHub event URL or numeric id, for example 162387399 or https://www.stubhub.com/harlem-globetrotters-marseille-tickets-3-31-2027/event/162387399/. A keyword is rejected.
schema:
type: string
description: Required. StubHub event URL or numeric id, for example 162387399 or https://www.stubhub.com/harlem-globetrotters-marseille-tickets-3-31-2027/event/162387399/. A keyword is rejected.
- $ref: '#/components/parameters/fields'
- $ref: '#/components/parameters/is_async'
- $ref: '#/components/parameters/soft_fail'
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
id:
type: string
url:
type: string
date:
nullable: true
name:
type: string
time:
nullable: true
year:
nullable: true
image:
type: string
price:
type: integer
country:
type: string
currency:
type: string
start_at:
type: string
venue_city:
type: string
venue_name:
type: string
day_of_week:
nullable: true
description:
type: string
country_code:
nullable: true
price_display:
type: string
venue_location:
type: string
is_parking_event:
nullable: true
has_active_listings:
type: boolean
examples:
Harlem Globetrotters, Marseille:
value:
id: '162387399'
url: https://www.stubhub.com/harlem-globetrotters-marseille-tickets-3-31-2027/event/162387399/
date: null
name: Harlem Globetrotters
time: null
year: null
image: https://img.vggcdn.net/img/cat/11035/3/1.jpg
price: 68
country: France
currency: EUR
start_at: '2027-03-31T19:00:00'
venue_city: Marseille
venue_name: Palais des Sports de Marseille
day_of_week: null
description: Acheter et vendre Billets Harlem Globetrotters pour mars 31 à Palais des Sports de Marseille à Marseille sur StubHub ! Les billets sont couverts à 100 % par la Garantie FanProtect
country_code: null
price_display: 68,00 €
venue_location: 81 rue Raymond Teisseire, 13009, Marseille, France
is_parking_event: null
has_active_listings: true
'400':
description: Bad Request — missing or invalid parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Bad Request
'401':
description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
invalidKey:
value:
error: Invalid API Key
planRateLimit:
value:
error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
keyQuota:
value:
error: 'Rate limit exceeded for the API key: quota monthly'
'402':
description: Payment Required — your subscription or credit balance is insufficient.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Payment required
'500':
description: Internal Server Error — something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Internal Error
tags:
- Stubhub
post:
summary: StubHub Event
description: 'Read one StubHub event from its URL or numeric id, including the lowest printed ticket price.
**Credit cost:** 2 credits per call'
operationId: post-stubhub-event
security:
- ApiKeyAuth: []
parameters:
- $ref: '#/components/parameters/fields'
- $ref: '#/components/parameters/is_async'
- $ref: '#/components/parameters/soft_fail'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
query:
type: string
description: Required. StubHub event URL or numeric id, for example 162387399 or https://www.stubhub.com/harlem-globetrotters-marseille-tickets-3-31-2027/event/162387399/. A keyword is rejected.
required:
- query
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
id:
type: string
url:
type: string
date:
nullable: true
name:
type: string
time:
nullable: true
year:
nullable: true
image:
type: string
price:
type: integer
country:
type: string
currency:
type: string
start_at:
type: string
venue_city:
type: string
venue_name:
type: string
day_of_week:
nullable: true
description:
type: string
country_code:
nullable: true
price_display:
type: string
venue_location:
type: string
is_parking_event:
nullable: true
has_active_listings:
type: boolean
examples:
Harlem Globetrotters, Marseille:
value:
id: '162387399'
url: https://www.stubhub.com/harlem-globetrotters-marseille-tickets-3-31-2027/event/162387399/
date: null
name: Harlem Globetrotters
time: null
year: null
image: https://img.vggcdn.net/img/cat/11035/3/1.jpg
price: 68
country: France
currency: EUR
start_at: '2027-03-31T19:00:00'
venue_city: Marseille
venue_name: Palais des Sports de Marseille
day_of_week: null
description: Acheter et vendre Billets Harlem Globetrotters pour mars 31 à Palais des Sports de Marseille à Marseille sur StubHub ! Les billets sont couverts à 100 % par la Garantie FanProtect
country_code: null
price_display: 68,00 €
venue_location: 81 rue Raymond Teisseire, 13009, Marseille, France
is_parking_event: null
has_active_listings: true
'400':
description: Bad Request — missing or invalid parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Bad Request
'401':
description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
invalidKey:
value:
error: Invalid API Key
planRateLimit:
value:
error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
keyQuota:
value:
error: 'Rate limit exceeded for the API key: quota monthly'
'402':
description: Payment Required — your subscription or credit balance is insufficient.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Payment required
'500':
description: Internal Server Error — something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Internal Error
tags:
- Stubhub
/v2/stubhub/search:
get:
summary: StubHub Search
description: 'Search StubHub events by keyword or by a StubHub search URL. The response is the first embedded page.
**Credit cost:** 1 credit per call'
operationId: get-stubhub-search
security:
- ApiKeyAuth: []
parameters:
- name: query
in: query
required: true
description: "Required. Keyword, for example nba, or a StubHub search URL such as https://www.stubhub.com/secure/search/?q=nba. An event URL is rejected.\n\n**Examples:**\n\n nba\n"
schema:
type: string
description: "Required. Keyword, for example nba, or a StubHub search URL such as https://www.stubhub.com/secure/search/?q=nba. An event URL is rejected.\n\n**Examples:**\n\n nba\n"
- name: page
in: query
required: false
description: 'Optional. Only page 1 returns events. Example: 1. Page 2 and above return 404 because the search document has no further page.'
schema:
type: number
default: '1'
description: 'Optional. Only page 1 returns events. Example: 1. Page 2 and above return 404 because the search document has no further page.'
- $ref: '#/components/parameters/fields'
- $ref: '#/components/parameters/is_async'
- $ref: '#/components/parameters/soft_fail'
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
results:
type: array
items:
type: object
properties:
id:
type: string
url:
type: string
date:
type: string
name:
type: string
time:
type: string
year:
type: string
price:
nullable: true
country:
type: string
currency:
nullable: true
start_at:
nullable: true
venue_city:
type: string
venue_name:
type: string
day_of_week:
type: string
country_code:
type: string
price_display:
nullable: true
venue_location:
type: string
is_parking_event:
type: boolean
has_active_listings:
type: boolean
pagination:
type: object
properties:
next:
nullable: true
page:
type: integer
per_page:
type: integer
total_pages:
nullable: true
total_results:
type: integer
examples:
Harlem Globetrotters, Marseille:
value:
results:
- id: '162387399'
url: https://www.stubhub.com/harlem-globetrotters-marseille-tickets-3-31-2027/event/162387399/
date: Mar 31 2027
name: Harlem Globetrotters
time: 7:00 PM
year: '2027'
price: null
country: France
currency: null
start_at: null
venue_city: Marseille
venue_name: Palais des Sports de Marseille
day_of_week: Wed
country_code: FR
price_display: null
venue_location: Marseille, France
is_parking_event: false
has_active_listings: true
pagination:
next: null
page: 1
per_page: 20
total_pages: null
total_results: 2171
'400':
description: Bad Request — missing or invalid parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Bad Request
'401':
description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
invalidKey:
value:
error: Invalid API Key
planRateLimit:
value:
error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
keyQuota:
value:
error: 'Rate limit exceeded for the API key: quota monthly'
'402':
description: Payment Required — your subscription or credit balance is insufficient.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Payment required
'500':
description: Internal Server Error — something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Internal Error
tags:
- Stubhub
post:
summary: StubHub Search
description: 'Search StubHub events by keyword or by a StubHub search URL. The response is the first embedded page.
**Credit cost:** 1 credit per call'
operationId: post-stubhub-search
security:
- ApiKeyAuth: []
parameters:
- $ref: '#/components/parameters/fields'
- $ref: '#/components/parameters/is_async'
- $ref: '#/components/parameters/soft_fail'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
query:
type: string
description: "Required. Keyword, for example nba, or a StubHub search URL such as https://www.stubhub.com/secure/search/?q=nba. An event URL is rejected.\n\n**Examples:**\n\n nba\n"
page:
type: number
default: '1'
description: 'Optional. Only page 1 returns events. Example: 1. Page 2 and above return 404 because the search document has no further page.'
required:
- query
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
results:
type: array
items:
type: object
properties:
id:
type: string
url:
type: string
date:
type: string
name:
type: string
time:
type: string
year:
type: string
price:
nullable: true
country:
type: string
currency:
nullable: true
start_at:
nullable: true
venue_city:
type: string
venue_name:
type: string
day_of_week:
type: string
country_code:
type: string
price_display:
nullable: true
venue_location:
type: string
is_parking_event:
type: boolean
has_active_listings:
type: boolean
pagination:
type: object
properties:
next:
nullable: true
page:
type: integer
per_page:
type: integer
total_pages:
nullable: true
total_results:
type: integer
examples:
Harlem Globetrotters, Marseille:
value:
results:
- id: '162387399'
url: https://www.stubhub.com/harlem-globetrotters-marseille-tickets-3-31-2027/event/162387399/
date: Mar 31 2027
name: Harlem Globetrotters
time: 7:00 PM
year: '2027'
price: null
country: France
currency: null
start_at: null
venue_city: Marseille
venue_name: Palais des Sports de Marseille
day_of_week: Wed
country_code: FR
price_display: null
venue_location: Marseille, France
is_parking_event: false
has_active_listings: true
pagination:
next: null
page: 1
per_page: 20
total_pages: null
total_results: 2171
'400':
description: Bad Request — missing or invalid parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Bad Request
'401':
description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
invalidKey:
value:
error: Invalid API Key
planRateLimit:
value:
error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
keyQuota:
value:
error: 'Rate limit exceeded for the API key: quota monthly'
'402':
description: Payment Required — your subscription or credit balance is insufficient.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Payment required
'500':
description: Internal Server Error — something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Internal Error
tags:
- Stubhub
components:
parameters:
fields:
name: fields
in: query
required: false
description: Comma-separated list of response fields to return, with dot notation for nested fields (e.g. `name,location.city`).
schema:
type: string
is_async:
name: is_async
in: query
required: false
description: 'Run the request as a background job: the API answers `202` with a `job_id` to poll on `GET /v1/jobs/{id}`.'
schema:
type: boolean
default: false
soft_fail:
name: soft_fail
in: query
required: false
description: Return HTTP 200 even when the request fails; the error is in the `error` field of the body.
schema:
type: boolean
default: false
schemas:
ErrorResponse:
type: object
required:
- error
properties:
error:
type: string
description: Human-readable error message.
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: x-api-key
description: Your API key. Include it in the x-api-key header for every request.