example-data.com
Menu
Browse docs and collections

Overview

tickets / #106

Nov
2
Mon

Grand Breitenberg Show

4:07 PM

Shawnee Convention Center

From AUD 708.28

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 106,
  "eventName": "Grand Breitenberg Show",
  "venue": "Shawnee Convention Center",
  "eventAt": "2026-11-02T16:07:51.387Z",
  "type": "balcony",
  "price": 708.28,
  "currency": "AUD",
  "sectionCode": "A2",
  "seatCode": "W22",
  "isSold": true,
  "createdAt": "2026-05-15T16:07:51.387Z"
}