XP

XP Events API

Event discovery

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 4

GET /api/v1/exchange/events List events #
GET /api/v1/exchange/events/facets Distinct values + counts for event filter fields #
GET /api/v1/exchange/events/{id} Get a single event #
POST /api/v1/exchange/events/resolve Batch-resolve event references #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/xp-tickets:xp-tickets-events-api"
All apis
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.

Get an API 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 Specification

xp-tickets-events-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: XP Exchange Events 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: Events
  description: Event discovery
paths:
  /api/v1/exchange/events:
    get:
      tags:
      - Events
      summary: List events
      description: Returns a paginated list of events matching the given filters.
      operationId: list_events
      parameters:
      - name: title
        in: query
        description: "Full-text search on event title. Supports keyword search,\nphrases in `\"double quotes\"`, `-word` to exclude, and `OR`\nfor alternatives.\nExamples:\n  - `taylor swift` — events containing both words\n  - `\"eras tour\"` — events containing the exact phrase\n  - `taylor -swift` — events with `taylor` but not `swift`\n  - `cougars OR pirates` — events with either word\n"
        schema:
          type: string
        example: taylor swift
      - name: venue_ids
        in: query
        description: Filter to events at these venues. Comma-separated venue external IDs (`?venue_ids=vnu_a,vnu_b`).
        schema:
          type: array
          maxItems: 100
          items:
            type: string
        style: form
        explode: false
        example: vnu_a9hvwc4gd6s9herb
      - name: performer_ids
        in: query
        description: Filter to events with any of these performers. Comma-separated performer external IDs (`?performer_ids=prf_a,prf_b`).
        schema:
          type: array
          maxItems: 100
          items:
            type: string
        style: form
        explode: false
        example: prf_xd9nrkxme3fw2zbt
      - name: city
        in: query
        description: Exact match on city name
        schema:
          type: string
        example: New York
      - name: state_code
        in: query
        description: Two-letter US state or Canadian province code (ISO 3166-2 subdivision).
        schema:
          type: string
          minLength: 2
          maxLength: 2
        example: NY
      - name: country_code
        in: query
        description: Two-letter ISO 3166-1 alpha-2 country code.
        schema:
          type: string
          minLength: 2
          maxLength: 2
        example: US
      - name: league
        in: query
        description: 'Filter to events with at least one performer in this league.

          Case-insensitive equality. Call `GET /performers/facets`

          for the live list of values.

          '
        schema:
          type: string
        example: NBA
      - name: event_type
        in: query
        description: 'Filter by event type. Case-insensitive equality. Call

          `GET /events/facets` for the live list of values.

          '
        schema:
          type: string
        example: concert
      - name: external_ref
        in: query
        description: 'An event identifier from your own catalog or upstream data

          source, matched verbatim (case-sensitive) against event

          identifiers XP holds internally. Use this to line your

          catalog up with ours without knowing XP event IDs in

          advance.


          Returns every event the reference corresponds to. Short

          references can legitimately correspond to more than one

          event, so treat the response as a candidate set: combine

          with other filters (dates, `venue_ids`, `performer_ids`)

          or disambiguate against the returned event facts. An

          unknown reference returns an empty list, not a 404.


          Single-valued — comma-separated lists are rejected. Unlike

          the unfiltered list, results are **not** limited to future

          events, so a reference to an already-started event still

          resolves.

          '
        schema:
          type: string
          maxLength: 64
        example: '8675309'
      - name: start_datetime_local_from
        in: query
        description: 'Filter to events whose **local start time at the venue** is >= this

          value (inclusive). Compared against each event''s wall-clock time

          independently of the venue''s timezone — e.g.

          `start_datetime_local_from=2026-12-31T19:00:00` matches a 7pm event

          in New York *and* a 7pm event in Los Angeles, even though those are

          different UTC instants.


          Format: `YYYY-MM-DDTHH:MM:SS` (ISO 8601 without timezone offset).

          '
        schema:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$
        example: 2026-06-01 00:00:00
      - name: start_datetime_local_to
        in: query
        description: 'Filter to events whose local start time at the venue is <= this

          value (inclusive). Same cross-timezone semantics as

          `start_datetime_local_from`.


          Format: `YYYY-MM-DDTHH:MM:SS` (ISO 8601 without timezone offset).

          '
        schema:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$
        example: 2026-12-31 23:59:59
      - name: start_datetime_from
        in: query
        description: 'Filter to events with UTC start datetime >= this value (inclusive).

          ISO 8601 with `Z` suffix. If none of the four date filters

          are passed, the response is implicitly limited to future

          events; pass a wide value (e.g. `2000-01-01T00:00:00Z`) to

          see historical events.

          '
        schema:
          type: string
          format: date-time
        example: 2026-06-01 00:00:00+00:00
      - name: start_datetime_to
        in: query
        description: Filter to events with UTC start datetime <= this value (inclusive).
        schema:
          type: string
          format: date-time
        example: 2026-12-31 23:59:59+00:00
      - name: sort
        in: query
        description: 'Sort field and direction.

          Prefix with `-` for descending. Default: `start_datetime`.

          '
        schema:
          type: string
          enum:
          - start_datetime
          - -start_datetime
          - start_datetime_local
          - -start_datetime_local
          default: start_datetime
      - name: limit
        in: query
        description: Number of results per page (1-100).
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 50
      - name: cursor
        in: query
        description: 'Opaque pagination token from the previous response''s `next_cursor`.

          Cursors expire **5 minutes** after issuance — beyond that, the

          server returns `400 invalid_cursor` and you must restart

          pagination from the first page. Do not persist cursors across

          requests separated by long delays. Omit on the first request.

          '
        schema:
          type: string
      responses:
        '200':
          description: List of events matching the filters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventListResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
  /api/v1/exchange/events/facets:
    get:
      tags:
      - Events
      summary: Distinct values + counts for event filter fields
      description: 'Live values for `event_type`, with row counts, ordered by

        count descending. Use to populate filter UIs and discover

        what the corresponding `/events` filter accepts. Null and

        empty values are excluded. Counts reflect the same visibility

        filters as the default `/events` list (active, non-parking,

        has venue, future).'
      operationId: list_event_facets
      responses:
        '200':
          description: Distinct values and counts per field
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventFacets'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
  /api/v1/exchange/events/{id}:
    get:
      tags:
      - Events
      summary: Get a single event
      operationId: get_event
      parameters:
      - name: id
        in: path
        required: true
        description: Event external ID (prefixed `evt_`).
        schema:
          type: string
        example: evt_x4k9p2qzm7v3rb8t
      responses:
        '200':
          description: Event details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Event'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
  /api/v1/exchange/events/resolve:
    post:
      tags:
      - Events
      summary: Batch-resolve event references
      description: Endpoint to map your catalog to XP's catalog using external_ids. You can match up to 100 records at a time.
      operationId: resolve_events
      requestBody:
        required: true
        content:
          application/json:
            example:
              refs:
              - id: '2732348'
                vendor: my-pos
              - id: '88113399'
            schema:
              type: object
              required:
              - refs
              properties:
                refs:
                  type: array
                  minItems: 1
                  maxItems: 100
                  items:
                    $ref: '#/components/schemas/EventRef'
      responses:
        '200':
          description: One result per submitted ref, in input order
          content:
            application/json:
              example:
                results:
                - ref:
                    id: '2732348'
                    vendor: my-pos
                  status: matched
                  event:
                    id: evt_x4k9p2qzm7v3rb8t
                    title: Taylor Swift | The Eras Tour
                    start_datetime_local: 2026-09-12 19:30:00
                    start_datetime: 2026-09-13 00:30:00+00:00
                    timezone: America/Chicago
                    event_type: concert
                    venue:
                      id: vnu_8fj2mx0qk4wt5n1c
                      name: Soldier Field
                      city: Chicago
                      state_code: IL
                      country_code: US
                      timezone: America/Chicago
                    performers:
                    - id: prf_2b8vq6zj9dk3xm4h
                      name: Taylor Swift
                      league: null
                      role: headliner
                - ref:
                    id: '88113399'
                  status: unmatched
                  event: null
              schema:
                type: object
                required:
                - results
                properties:
                  results:
                    type: array
                    items:
                      type: object
                      required:
                      - ref
                      - status
                      - event
                      properties:
                        ref:
                          $ref: '#/components/schemas/EventRef'
                        status:
                          type: string
                          enum:
                          - matched
                          - unmatched
                          - ambiguous_ref
                          description: "- `matched` — exactly one XP event\n- `unmatched` — no XP event\n- `ambiguous_ref` — several XP events; narrow\n  with `GET /events` filters\n"
                        event:
                          description: The matched event; null unless `matched`.
                          allOf:
                          - $ref: '#/components/schemas/Event'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
        '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'
    RateLimited:
      description: Rate limit exceeded (error code `rate_limited`)
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds to wait before retrying.
        RateLimit-Limit:
          schema:
            type: integer
          description: Requests allowed per rolling 60-second window.
        RateLimit-Remaining:
          schema:
            type: integer
          description: Requests remaining in the window.
        RateLimit-Reset:
          schema:
            type: integer
          description: Seconds until capacity frees.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    EventListResponse:
      type: object
      required:
      - data
      - next_cursor
      - has_more
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Event'
        next_cursor:
          type:
          - string
          - 'null'
          description: 'Pass as `cursor` on the next request to fetch the next page.

            `null` when there are no more results. Always present in

            list responses.

            '
        has_more:
          type: boolean
          description: Whether more results are available beyond this page.
    VenueSummary:
      type: object
      required:
      - id
      - name
      properties:
        id:
          type: string
          description: Venue external ID (prefixed `vnu_`).
          example: vnu_a9hvwc4gd6s9herb
        name:
          type: string
          example: Madison Square Garden
        city:
          type: string
          example: New York
        state_code:
          type: string
          description: 'Subdivision (state / province / region) where the venue is

            located. **Format is not strict** — parse as an opaque

            string, not as a fixed-length ISO code. Typically an ISO

            3166-2 two-letter code for US states / Canadian provinces

            (e.g. `NY`, `ON`), but partners should expect free-form

            regional names for international venues (e.g. `Saxony`,

            `Lower Saxony`, `City of Bristol`). Legacy non-US rows may

            also carry the literal country code here (e.g. `UK`).

            '
          example: NY
    EventFacets:
      type: object
      required:
      - event_type
      properties:
        event_type:
          type: array
          items:
            $ref: '#/components/schemas/FacetValue'
    Event:
      type: object
      required:
      - id
      - title
      - start_datetime_local
      - start_datetime
      - timezone
      - venue
      properties:
        id:
          type: string
          description: Event external ID (prefixed `evt_`).
          example: evt_x4k9p2qzm7v3rb8t
        title:
          type: string
          example: Taylor Swift | The Eras Tour
        start_datetime_local:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$
          description: 'Wall-clock time at the venue, no timezone offset.

            Format: `YYYY-MM-DDTHH:MM:SS` (ISO 8601 without timezone).

            '
          example: 2026-06-15 19:30:00
        start_datetime:
          type: string
          format: date-time
          description: UTC time, ISO 8601 with `Z` suffix.
          example: 2026-06-15 23:30:00+00:00
        timezone:
          type: string
          description: IANA timezone name of the venue.
          example: America/New_York
        event_type:
          type:
          - string
          - 'null'
          description: 'Event category. Common values: `concert`, `theater`,

            `sport`, `comedy`. Free-form — call `GET /events/facets`

            for the live list.

            '
          example: concert
        venue:
          $ref: '#/components/schemas/VenueSummary'
        performers:
          type: array
          items:
            $ref: '#/components/schemas/PerformerSummary'
    FacetValue:
      type: object
      required:
      - value
      - count
      properties:
        value:
          type: string
          description: Value as stored. Never null or empty.
          example: concert
        count:
          type: integer
          description: Number of matching rows.
          example: 144102
    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
    PerformerSummary:
      type: object
      required:
      - id
      - name
      properties:
        id:
          type: string
          description: Performer external ID (prefixed `prf_`).
          example: prf_xd9nrkxme3fw2zbt
        name:
          type: string
          example: Taylor Swift
        league:
          type:
          - string
          - 'null'
          description: 'League, for sports performers. Common values: `NFL`, `MLB`,

            `NHL`, `NBA`, `NCAA Men''s Basketball`, `NCAA Football`.

            Free-form — call `GET /performers/facets` for the live

            list. `null` for non-sports performers.

            '
          example: NBA
        role:
          type:
          - string
          - 'null'
          description: 'The performer''s role in this event. Common values:

            `headliner`, `supporting act`, `special guest`,

            `opening act`, `tertiary`. May be `null`. Not filterable.

            '
          example: headliner
    EventRef:
      type: object
      required:
      - id
      properties:
        id:
          type: string
          maxLength: 64
          description: An event identifier from your own catalog or upstream data source, matched verbatim (case-sensitive) against event identifiers XP holds internally.
          example: '2732348'
        vendor:
          type: string
          maxLength: 32
          description: Optional label of your choosing, stored and echoed back for correlation. Not used for matching.
          example: my-pos
  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