example-data.com
Menu
Browse docs and collections

Overview

tickets / #216

Sep
15
Tue

National Larkin Gala

10:19 PM

Weissnatchester Amphitheater

From CAD 882.34

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 216,
  "eventName": "National Larkin Gala",
  "venue": "Weissnatchester Amphitheater",
  "eventAt": "2026-09-15T22:19:06.676Z",
  "type": "balcony",
  "price": 882.34,
  "currency": "CAD",
  "sectionCode": "B1",
  "seatCode": "D33",
  "isSold": false,
  "createdAt": "2026-04-30T22:19:06.676Z"
}