example-data.com
Menu
Browse docs and collections

Overview

tickets / #219

Sep
15
Mon

Annual Frami Summit

4:13 PM

New Cruz Arena

From AUD 349.28

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 219,
  "eventName": "Annual Frami Summit",
  "venue": "New Cruz Arena",
  "eventAt": "2025-09-15T16:13:10.363Z",
  "type": "vip",
  "price": 349.28,
  "currency": "AUD",
  "sectionCode": "A2",
  "seatCode": "O33",
  "isSold": true,
  "createdAt": "2025-08-11T16:13:10.363Z"
}