example-data.com
Menu
Browse docs and collections

Overview

tickets / #32

Mar
6
Fri

The Kohler Finals

12:04 PM

O'Harashire Theater

From MXN 118.60

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 32,
  "eventName": "The Kohler Finals",
  "venue": "O'Harashire Theater",
  "eventAt": "2026-03-06T12:04:33.282Z",
  "type": "vip",
  "price": 118.6,
  "currency": "MXN",
  "sectionCode": "A1",
  "seatCode": "F13",
  "isSold": true,
  "createdAt": "2026-01-09T12:04:33.282Z"
}