example-data.com
Menu
Browse docs and collections

Overview

tickets / #244

Apr
1
Thu

National Lehner Tour

6:11 AM

Hilllworth Theater

From AUD 384.89

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 244,
  "eventName": "National Lehner Tour",
  "venue": "Hilllworth Theater",
  "eventAt": "2027-04-01T06:11:01.890Z",
  "type": "vip",
  "price": 384.89,
  "currency": "AUD",
  "sectionCode": "B1",
  "seatCode": "S22",
  "isSold": false,
  "createdAt": "2026-11-19T06:11:01.890Z"
}