example-data.com
Menu
Browse docs and collections

tickets

tickets

Page 7 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": 145,
      "eventName": "Classic Von Gala",
      "venue": "Breitenbergfort Auditorium",
      "eventAt": "2027-01-12T00:39:12.401Z",
      "type": "reserved",
      "price": 23.7,
      "currency": "CAD",
      "sectionCode": "B2",
      "seatCode": "I46",
      "isSold": true,
      "createdAt": "2026-10-10T00:39:12.401Z"
    },
    {
      "id": 146,
      "eventName": "Grand Wiza Finals",
      "venue": "Lake Hollyfurt Theater",
      "eventAt": "2026-09-27T12:32:44.510Z",
      "type": "vip",
      "price": 861.89,
      "currency": "MXN",
      "sectionCode": "B2",
      "seatCode": "F17",
      "isSold": false,
      "createdAt": "2026-08-12T12:32:44.510Z"
    },
    {
      "id": 147,
      "eventName": "Annual Ratke Concert",
      "venue": "Cormierberg Concert Hall",
      "eventAt": "2026-03-19T03:58:54.879Z",
      "type": "general",
      "price": 406.79,
      "currency": "GBP",
      "sectionCode": "C1",
      "seatCode": null,
      "isSold": true,
      "createdAt": "2026-01-19T03:58:54.879Z"
    }
  ],
  "meta": {
    "page": 7,
    "limit": 24,
    "total": 300,
    "totalPages": 13
  },
  "links": {
    "self": "/api/v1/tickets?page=7&limit=24",
    "first": "/api/v1/tickets?page=1&limit=24",
    "last": "/api/v1/tickets?page=13&limit=24",
    "next": "/api/v1/tickets?page=8&limit=24",
    "prev": "/api/v1/tickets?page=6&limit=24"
  }
}