example-data.com
Menu
Browse docs and collections

tickets

tickets

Page 12 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": 265,
      "eventName": "International Treutel Gala",
      "venue": "Stiedemannville Amphitheater",
      "eventAt": "2027-03-20T11:07:26.667Z",
      "type": "standing",
      "price": 267.61,
      "currency": "JPY",
      "sectionCode": "FLOOR",
      "seatCode": null,
      "isSold": false,
      "createdAt": "2027-03-12T11:07:26.667Z"
    },
    {
      "id": 266,
      "eventName": "Annual Gibson Finals",
      "venue": "Austin Arena",
      "eventAt": "2026-11-13T12:04:09.984Z",
      "type": "general",
      "price": 56.4,
      "currency": "CAD",
      "sectionCode": "B1",
      "seatCode": null,
      "isSold": false,
      "createdAt": "2026-07-23T12:04:09.984Z"
    },
    {
      "id": 267,
      "eventName": "International Senger Show",
      "venue": "Sporershire Convention Center",
      "eventAt": "2025-07-18T20:52:53.351Z",
      "type": "balcony",
      "price": 683.9,
      "currency": "AUD",
      "sectionCode": "C1",
      "seatCode": "Q34",
      "isSold": true,
      "createdAt": "2025-06-06T20:52:53.351Z"
    }
  ],
  "meta": {
    "page": 12,
    "limit": 24,
    "total": 300,
    "totalPages": 13
  },
  "links": {
    "self": "/api/v1/tickets?page=12&limit=24",
    "first": "/api/v1/tickets?page=1&limit=24",
    "last": "/api/v1/tickets?page=13&limit=24",
    "next": "/api/v1/tickets?page=13&limit=24",
    "prev": "/api/v1/tickets?page=11&limit=24"
  }
}