example-data.com
Menu
Browse docs and collections

tickets

tickets

Page 3 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": 49,
      "eventName": "Classic Fritsch Open",
      "venue": "Ceres Arena",
      "eventAt": "2025-08-11T13:17:58.062Z",
      "type": "general",
      "price": 347.15,
      "currency": "GBP",
      "sectionCode": "A1",
      "seatCode": null,
      "isSold": false,
      "createdAt": "2025-06-03T13:17:58.062Z"
    },
    {
      "id": 50,
      "eventName": "Annual Erdman Festival",
      "venue": "New Nicktown Amphitheater",
      "eventAt": "2026-01-22T08:15:27.576Z",
      "type": "standing",
      "price": 103.8,
      "currency": "EUR",
      "sectionCode": "FLOOR",
      "seatCode": null,
      "isSold": false,
      "createdAt": "2025-12-05T08:15:27.576Z"
    },
    {
      "id": 51,
      "eventName": "National Senger-Kilback Exhibition",
      "venue": "Fort Iva Stadium",
      "eventAt": "2025-05-27T22:46:09.383Z",
      "type": "reserved",
      "price": 604.29,
      "currency": "MXN",
      "sectionCode": "VIP",
      "seatCode": "T5",
      "isSold": true,
      "createdAt": "2025-02-16T22:46:09.383Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 300,
    "totalPages": 13
  },
  "links": {
    "self": "/api/v1/tickets?page=3&limit=24",
    "first": "/api/v1/tickets?page=1&limit=24",
    "last": "/api/v1/tickets?page=13&limit=24",
    "next": "/api/v1/tickets?page=4&limit=24",
    "prev": "/api/v1/tickets?page=2&limit=24"
  }
}