example-data.com
Menu
Browse docs and collections

tickets

tickets

Page 11 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": 241,
      "eventName": "World Reichert Festival",
      "venue": "East Jackycester Auditorium",
      "eventAt": "2026-02-26T11:57:35.466Z",
      "type": "vip",
      "price": 42.63,
      "currency": "GBP",
      "sectionCode": "D1",
      "seatCode": "V5",
      "isSold": false,
      "createdAt": "2025-11-02T11:57:35.466Z"
    },
    {
      "id": 242,
      "eventName": "Grand Larkin Show",
      "venue": "Montebello Amphitheater",
      "eventAt": "2027-03-31T00:41:46.831Z",
      "type": "general",
      "price": 28.49,
      "currency": "USD",
      "sectionCode": "A2",
      "seatCode": null,
      "isSold": true,
      "createdAt": "2026-12-25T00:41:46.831Z"
    },
    {
      "id": 243,
      "eventName": "Classic Leffler Gala",
      "venue": "West Harveyton Auditorium",
      "eventAt": "2026-06-28T22:22:58.289Z",
      "type": "general",
      "price": 314.92,
      "currency": "MXN",
      "sectionCode": "A1",
      "seatCode": null,
      "isSold": true,
      "createdAt": "2026-01-17T22:22:58.289Z"
    }
  ],
  "meta": {
    "page": 11,
    "limit": 24,
    "total": 300,
    "totalPages": 13
  },
  "links": {
    "self": "/api/v1/tickets?page=11&limit=24",
    "first": "/api/v1/tickets?page=1&limit=24",
    "last": "/api/v1/tickets?page=13&limit=24",
    "next": "/api/v1/tickets?page=12&limit=24",
    "prev": "/api/v1/tickets?page=10&limit=24"
  }
}