Jetron TicketFluid

Pagination

Cursor pagination on the events list.

GET /events returns your host's public events newest first with cursor pagination.

Query paramDescription
limitPage size, 1–100 (default 20).
cursorOpaque cursor from a previous page's nextCursor.
categoryFilter by category slug.
qFull-text search query.

Each page includes a nextCursor when more results exist; it is absent on the last page:

{
  "data": {
    "items": [{ "slug": "my-event" }],
    "nextCursor": "b2Zmc2V0PTIw"
  },
  "status": true
}

Fetching all pages with the SDK

import { createClient, type Event } from '@jetronticket/api'

const client = createClient({ apiKey: 'jt_public_...' })

const events: Event[] = []
let cursor: string | undefined

do {
  const { data } = await client.listEvents({ limit: 100, cursor })
  if (!data) break
  events.push(...data.items)
  cursor = data.nextCursor
} while (cursor)

Cursors are opaque

Don't parse or construct cursors. Always pass back exactly what the API returned in nextCursor.

On this page