example-data.com
Menu
Browse docs and collections

tickets

tickets

Page 9 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": 193,
      "eventName": "Classic Rolfson Tour",
      "venue": "Moisesville Arena",
      "eventAt": "2027-05-01T03:31:36.549Z",
      "type": "standing",
      "price": 932.94,
      "currency": "EUR",
      "sectionCode": "B1",
      "seatCode": null,
      "isSold": true,
      "createdAt": "2027-02-07T03:31:36.549Z"
    },
    {
      "id": 194,
      "eventName": "International Roob Open",
      "venue": "Erniechester Convention Center",
      "eventAt": "2027-02-27T05:59:10.504Z",
      "type": "vip",
      "price": 14.2,
      "currency": "EUR",
      "sectionCode": "C2",
      "seatCode": "K21",
      "isSold": false,
      "createdAt": "2026-10-24T05:59:10.504Z"
    },
    {
      "id": 195,
      "eventName": "Annual Goyette Championship",
      "venue": "Arlington Amphitheater",
      "eventAt": "2026-10-30T11:47:17.887Z",
      "type": "balcony",
      "price": 507.07,
      "currency": "USD",
      "sectionCode": "B1",
      "seatCode": "P8",
      "isSold": true,
      "createdAt": "2026-10-16T11:47:17.887Z"
    }
  ],
  "meta": {
    "page": 9,
    "limit": 24,
    "total": 300,
    "totalPages": 13
  },
  "links": {
    "self": "/api/v1/tickets?page=9&limit=24",
    "first": "/api/v1/tickets?page=1&limit=24",
    "last": "/api/v1/tickets?page=13&limit=24",
    "next": "/api/v1/tickets?page=10&limit=24",
    "prev": "/api/v1/tickets?page=8&limit=24"
  }
}