example-data.com
Menu
Browse docs and collections

Overview

tickets / #251

Jul
16
Wed

World Torphy Gala

4:16 PM

Fort Reuben Pavilion

From GBP 891.33

Component variants

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/tickets/251" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/tickets/251"
);
const ticket = 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 } from "./types/tickets";

const res = await fetch(
  "https://example-data.com/api/v1/tickets/251"
);
const ticket = (await res.json()) as Ticket;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/tickets/251"
)
ticket = res.json()

Response

{
  "id": 251,
  "eventName": "World Torphy Gala",
  "venue": "Fort Reuben Pavilion",
  "eventAt": "2025-07-16T16:16:48.871Z",
  "type": "general",
  "price": 891.33,
  "currency": "GBP",
  "sectionCode": "VIP",
  "seatCode": null,
  "isSold": false,
  "createdAt": "2025-06-22T16:16:48.871Z"
}