example-data.com
Menu
Browse docs and collections

Overview

tickets / #136

Oct
26
Sun

Ultimate Williamson Finals

3:30 PM

Destineyborough Theater

From CAD 302.18

Component variants

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/tickets/136"
);
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/136"
);
const ticket = (await res.json()) as Ticket;

Python example

import requests

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

Response

{
  "id": 136,
  "eventName": "Ultimate Williamson Finals",
  "venue": "Destineyborough Theater",
  "eventAt": "2025-10-26T15:30:53.758Z",
  "type": "balcony",
  "price": 302.18,
  "currency": "CAD",
  "sectionCode": "VIP",
  "seatCode": "M49",
  "isSold": false,
  "createdAt": "2025-05-27T15:30:53.758Z"
}