example-data.com
Menu
Browse docs and collections

Overview

tickets / #246

Jul
29
Tue

The Yost Open

10:51 PM

South Fernandoland Stadium

From AUD 621.16

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 246,
  "eventName": "The Yost Open",
  "venue": "South Fernandoland Stadium",
  "eventAt": "2025-07-29T22:51:33.073Z",
  "type": "balcony",
  "price": 621.16,
  "currency": "AUD",
  "sectionCode": "FLOOR",
  "seatCode": "Q12",
  "isSold": false,
  "createdAt": "2025-05-10T22:51:33.073Z"
}