example-data.com
Menu
Browse docs and collections

tickets

tickets

Page 2 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": 25,
      "eventName": "World Osinski Summit",
      "venue": "Chico Concert Hall",
      "eventAt": "2025-06-23T12:18:42.012Z",
      "type": "reserved",
      "price": 210.13,
      "currency": "MXN",
      "sectionCode": "D2",
      "seatCode": "A32",
      "isSold": true,
      "createdAt": "2025-01-13T12:18:42.012Z"
    },
    {
      "id": 26,
      "eventName": "Grand McGlynn Summit",
      "venue": "Mullerstad Convention Center",
      "eventAt": "2026-04-20T21:03:31.309Z",
      "type": "reserved",
      "price": 280.95,
      "currency": "MXN",
      "sectionCode": "FLOOR",
      "seatCode": "M47",
      "isSold": false,
      "createdAt": "2026-01-22T21:03:31.309Z"
    },
    {
      "id": 27,
      "eventName": "National Anderson Exhibition",
      "venue": "Waco Stadium",
      "eventAt": "2027-02-04T07:14:51.296Z",
      "type": "general",
      "price": 288.59,
      "currency": "AUD",
      "sectionCode": "C1",
      "seatCode": null,
      "isSold": false,
      "createdAt": "2026-09-02T07:14:51.296Z"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 300,
    "totalPages": 13
  },
  "links": {
    "self": "/api/v1/tickets?page=2&limit=24",
    "first": "/api/v1/tickets?page=1&limit=24",
    "last": "/api/v1/tickets?page=13&limit=24",
    "next": "/api/v1/tickets?page=3&limit=24",
    "prev": "/api/v1/tickets?page=1&limit=24"
  }
}