example-data.com
Menu
Browse docs and collections

tickets

tickets

Page 8 of 13.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/tickets?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/tickets?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/tickets.d.ts https://example-data.com/types/tickets.d.ts
import type { Ticket, ListEnvelope } from "./types/tickets";

const res = await fetch(
  "https://example-data.com/api/v1/tickets?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Ticket>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/tickets",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 169,
      "eventName": "National Bauch Festival",
      "venue": "Fort Bennett Pavilion",
      "eventAt": "2026-05-22T08:09:51.631Z",
      "type": "vip",
      "price": 553.09,
      "currency": "EUR",
      "sectionCode": "FLOOR",
      "seatCode": "U24",
      "isSold": true,
      "createdAt": "2026-03-21T08:09:51.631Z"
    },
    {
      "id": 170,
      "eventName": "National Macejkovic Open",
      "venue": "West Jordanview Stadium",
      "eventAt": "2026-05-15T07:10:13.802Z",
      "type": "general",
      "price": 810.16,
      "currency": "CAD",
      "sectionCode": "C1",
      "seatCode": null,
      "isSold": false,
      "createdAt": "2026-02-10T07:10:13.802Z"
    },
    {
      "id": 171,
      "eventName": "Ultimate Russel Concert",
      "venue": "Thompsonport Arena",
      "eventAt": "2027-01-23T20:28:57.526Z",
      "type": "reserved",
      "price": 186.71,
      "currency": "CAD",
      "sectionCode": "C1",
      "seatCode": "S36",
      "isSold": false,
      "createdAt": "2026-12-01T20:28:57.526Z"
    }
  ],
  "meta": {
    "page": 8,
    "limit": 24,
    "total": 300,
    "totalPages": 13
  },
  "links": {
    "self": "/api/v1/tickets?page=8&limit=24",
    "first": "/api/v1/tickets?page=1&limit=24",
    "last": "/api/v1/tickets?page=13&limit=24",
    "next": "/api/v1/tickets?page=9&limit=24",
    "prev": "/api/v1/tickets?page=7&limit=24"
  }
}