XP Tickets API
The ticket price matrix for an event
The ticket price matrix for an event
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/xp-tickets:xp-tickets-tickets-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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: XP Exchange Tickets API
version: 0.1.0
description: 'API for partners to bid on and list tickets.
### Authentication
All requests are authenticated with an API key passed as a Bearer token
in the `Authorization` header: `Authorization: Bearer xpk_`.
The only exception is `GET /api/v1/exchange/health`, which is
unauthenticated.
### Content type
`POST` endpoints require a JSON request body with the
`Content-Type: application/json` header.
### Date / time semantics
The `start_datetime` field (and its `start_datetime_from` /
`start_datetime_to` filters) and every `*_at` timestamp use UTC,
ISO 8601, with a trailing `Z` (e.g. `2026-05-12T10:00:00Z`). Query
filters accept the same format and treat an explicit timezone offset
(e.g. `+05:00`) as equivalent; values without a timezone are
interpreted as UTC.
`start_datetime_local` (and its `start_datetime_local_from` /
`start_datetime_local_to` filters) is wall-clock time at the venue
with no offset (e.g. `2026-05-12T10:00:00`).
### Example IDs
All `prf_*`, `vnu_*`, `evt_*`, `rfb_*`, and `bid_*` identifiers in
this documentation (request paths, request bodies, response payloads,
schema `example` fields) are illustrative placeholders. They are not
guaranteed to resolve in production — substitute IDs returned from
your own `/performers`, `/venues`, `/events`, `/request-for-bids`,
and `/bids` calls.
### Listings by partner_ref
Every `/listings/{id}` route also takes your own `partner_ref` in
place of the `lst_` id: exact match, URL-encoded. A ref containing `/`
cannot be addressed this way; use its `lst_` id.
### Request IDs
Every response includes an `X-Request-Id` header (a UUID) that
uniquely identifies the request in our logs. Error responses also
echo the same value as `error.request_id` in the JSON body.
### Repeated query parameters
A query parameter may appear at most once per request. Repeating any
parameter — including multi-value filters — is rejected with
`400 invalid_parameter`. Pass multi-value filters as a single
comma-separated value: `?event_ids=evt_a,evt_b`, not
`?event_ids=evt_a&event_ids=evt_b`.
### Multi-value ID filter size
Each ID-list filter (`event_ids`, `venue_ids`, `performer_ids`,
`request_for_bids_ids`, `ids`) is capped at **100 IDs per filter** per
request; `partner_refs` at 50. Exceeding the cap is rejected with
`400 invalid_parameter` — split into multiple requests if you need more.
The total request URL is also bounded by upstream limits (~4 KB).
Combining several ID filters at or near the per-filter cap in one
request can exceed that ceiling and produce an HTML 400 from the
application server instead of the usual JSON envelope. If you need
to combine many filters, prefer issuing separate requests per
filter dimension and intersecting the results client-side.'
servers:
- url: https://api.xp.tickets
description: Production
security:
- bearer_auth: []
tags:
- name: Tickets
description: The ticket price matrix for an event
paths:
/api/v1/exchange/ticket-price-matrix:
get:
tags:
- Tickets
summary: Fetch the ticket price matrix for an event
description: The cheapest listing in each row, by level and section, for one quantity. Sections with no level (clubs, suites, vendor-prefixed duplicates) are left out. Limited to 100 requests per rolling hour per API key, on top of the global limit.
operationId: get_ticket_price_matrix
parameters:
- name: event_id
in: query
required: true
description: Event external ID (prefixed `evt_`).
schema:
type: string
example: evt_x4k9p2qzm7v3rb8t
- name: quantity
in: query
schema:
type: integer
minimum: 1
maximum: 50
default: 2
- name: rows
in: query
description: '`best` keeps a row only when it is cheaper than every row in front of it by at least a price tick; `all` keeps every row.
'
schema:
type: string
enum:
- best
- all
default: best
- name: include
in: query
description: 'Flagged listings to put back in (`?include=obstructed_view,standing_only`). They are out by default so a cheap obstructed front row cannot hide the rows behind it.
'
schema:
type: array
items:
type: string
enum:
- obstructed_view
- standing_only
style: form
explode: false
- name: max_price_per_ticket
in: query
description: Integer USD cents per ticket.
schema:
type: integer
minimum: 1
- name: currency
in: query
description: Required with `max_price_per_ticket`. Only `USD` is accepted.
schema:
type: string
enum:
- USD
- name: sections
in: query
description: Comma-separated section names (`?sections=101,102`).
schema:
type: array
maxItems: 100
items:
type: string
style: form
explode: false
responses:
'200':
description: The ticket price matrix
content:
application/json:
schema:
$ref: '#/components/schemas/TicketPriceMatrix'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'429':
description: '`rate_limited` — over this endpoint''s budget of 100 requests per rolling hour per API key (every request counts), or the global limit. `Retry-After` and the `RateLimit-*` headers describe the hourly budget here.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
$ref: '#/components/responses/InternalServerError'
components:
responses:
Unauthorized:
description: "Authentication failure. The `error.code` distinguishes:\n- `unauthenticated` — `Authorization` header is missing or not a\n `Bearer xpk_...` token.\n- `invalid_api_key` — header was well-formed but the key is\n unknown, revoked, or otherwise not accepted.\n"
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
InternalServerError:
description: Unexpected server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Invalid request parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
PriceMatrixLevel:
type: object
required:
- name
- listings
- get_in_per_ticket
- sections
properties:
name:
type: string
example: 100s
listings:
type: integer
example: 878
get_in_per_ticket:
description: The cheapest row on the level, per ticket.
allOf:
- $ref: '#/components/schemas/Money'
sections:
type: array
items:
$ref: '#/components/schemas/PriceMatrixSection'
PriceMatrixSection:
type: object
required:
- name
- listings
- tickets
- rows
properties:
name:
type: string
example: '101'
listings:
type: integer
example: 36
tickets:
type: integer
example: 88
rows:
type: array
description: Front row to back.
items:
$ref: '#/components/schemas/PriceMatrixRow'
TicketPriceMatrix:
type: object
required:
- event_id
- quantity
- rows
- include
- max_price_per_ticket
- prices_as_of
- counts
- levels
properties:
event_id:
type: string
example: evt_x4k9p2qzm7v3rb8t
quantity:
type: integer
example: 2
rows:
type: string
enum:
- best
- all
description: The view requested.
include:
type: array
description: The flags put back in, as requested.
items:
type: string
enum:
- obstructed_view
- standing_only
max_price_per_ticket:
description: The `max_price_per_ticket` filter as requested; null when not sent.
allOf:
- $ref: '#/components/schemas/Money'
prices_as_of:
type: string
format: date-time
description: When the oldest vendor feed behind these prices was read. Up to an hour ago.
example: 2026-10-22 20:31:05+00:00
counts:
type: object
required:
- listings
- sections
- rows
properties:
listings:
type: integer
example: 10772
sections:
type: integer
example: 426
rows:
type: integer
example: 1576
levels:
type: array
items:
$ref: '#/components/schemas/PriceMatrixLevel'
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
- request_id
properties:
code:
type: string
description: Stable machine-readable error code.
example: invalid_parameter
message:
type: string
description: Human-readable error description.
example: '`limit` must be between 1 and 100'
param:
type: string
description: The offending parameter, if applicable.
example: limit
details:
type: object
description: 'Machine-readable context, documented per error code.
Currently only on `bid_below_minimum_increment`: the lot''s
`top_open_bid` and `min_bid_to_lead`, same shapes as on
the `RequestForBids` object.
'
request_id:
type: string
format: uuid
description: 'Same UUID as the `X-Request-Id` response header (see the
**Request IDs** section of the API overview). Echoed in
every error body so partners that only log the response
JSON still capture it. Quote it when reporting issues —
we can resolve to the exact request in our logs from a
request ID alone.
'
example: 8e7c2f70-9c4f-4ae5-a4f0-d8a7e3a1c2b3
Money:
type: object
description: A monetary amount. `amount` is an integer in minor units of `currency`, never a float; `exponent` is how many decimal places turn it into major units (2 for USD, so 111800 is $1,118.00); `display` is the same amount formatted for people and models.
required:
- amount
- currency
- exponent
- display
properties:
amount:
type: integer
example: 111800
currency:
type: string
description: ISO 4217, uppercase.
example: USD
exponent:
type: integer
example: 2
display:
type: string
example: $1,118.00
PriceMatrixRow:
type: object
required:
- id
- row
- price_per_ticket
- quantity
- splits
- listings_in_row
- flags
- buy_url
properties:
id:
type: string
description: Ticket ID (prefixed `tkt_`).
example: tkt_6w1xk35376jw951j
row:
type:
- string
- 'null'
example: '1'
price_per_ticket:
description: Per ticket, all-in.
allOf:
- $ref: '#/components/schemas/Money'
quantity:
type: integer
example: 2
splits:
type: array
items:
type: integer
example:
- 2
listings_in_row:
type: integer
example: 5
flags:
type: array
items:
type: string
enum:
- obstructed_view
- standing_only
buy_url:
type: string
format: uri
description: XP checkout for this listing.
example: https://xp.tickets/checkout/evt_x4k9p2qzm7v3rb8t/tkt_6w1xk35376jw951j/tickets?quantity=2
securitySchemes:
bearer_auth:
type: http
scheme: bearer
bearerFormat: API key
x-tagGroups:
- name: Guides
tags:
- getting-started
- getting-an-api-key
- authentication
- rate-limits
- webhooks
- name: Recipes
tags:
- bid-on-performer-event
- poll-venue-for-new-rfbs
- map-your-catalog
- create-listing-and-accept-bid
- match-event-and-create-listing
- create-test-listing-and-fulfill-order
- name: API Reference
tags:
- tickets
- events
- venues
- performers
- request-for-bids
- bids
- listings
- balance
- health