example-data.com
Menu
Browse docs and collections

Overview

tickets / #298

Sep
4
Fri

Ultimate Bogan Gala

7:59 PM

Cedar Hill Theater

From CAD 372.67

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 298,
  "eventName": "Ultimate Bogan Gala",
  "venue": "Cedar Hill Theater",
  "eventAt": "2026-09-04T19:59:05.042Z",
  "type": "balcony",
  "price": 372.67,
  "currency": "CAD",
  "sectionCode": "FLOOR",
  "seatCode": "I37",
  "isSold": false,
  "createdAt": "2026-06-20T19:59:05.042Z"
}