example-data.com
Menu
Browse docs and collections

tickets

tickets

Page 5 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": 97,
      "eventName": "Grand Konopelski Festival",
      "venue": "North Queenie Auditorium",
      "eventAt": "2026-11-11T09:34:16.252Z",
      "type": "general",
      "price": 680.68,
      "currency": "GBP",
      "sectionCode": "A2",
      "seatCode": null,
      "isSold": true,
      "createdAt": "2026-06-29T09:34:16.252Z"
    },
    {
      "id": 98,
      "eventName": "International Beahan Show",
      "venue": "Theresaville Pavilion",
      "eventAt": "2027-01-30T03:25:02.017Z",
      "type": "standing",
      "price": 269.53,
      "currency": "MXN",
      "sectionCode": "B1",
      "seatCode": null,
      "isSold": true,
      "createdAt": "2026-10-11T03:25:02.017Z"
    },
    {
      "id": 99,
      "eventName": "Annual Goodwin Show",
      "venue": "Dawnhaven Pavilion",
      "eventAt": "2025-08-18T09:34:56.518Z",
      "type": "general",
      "price": 12.05,
      "currency": "EUR",
      "sectionCode": "GA",
      "seatCode": null,
      "isSold": true,
      "createdAt": "2025-05-12T09:34:56.518Z"
    }
  ],
  "meta": {
    "page": 5,
    "limit": 24,
    "total": 300,
    "totalPages": 13
  },
  "links": {
    "self": "/api/v1/tickets?page=5&limit=24",
    "first": "/api/v1/tickets?page=1&limit=24",
    "last": "/api/v1/tickets?page=13&limit=24",
    "next": "/api/v1/tickets?page=6&limit=24",
    "prev": "/api/v1/tickets?page=4&limit=24"
  }
}