example-data.com
Menu
Browse docs and collections

Overview

tickets / #182

Mar
20
Sat

Grand Huels Open

10:41 PM

West Murray Pavilion

From JPY 782.44

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 182,
  "eventName": "Grand Huels Open",
  "venue": "West Murray Pavilion",
  "eventAt": "2027-03-20T22:41:50.557Z",
  "type": "vip",
  "price": 782.44,
  "currency": "JPY",
  "sectionCode": "FLOOR",
  "seatCode": "Y36",
  "isSold": false,
  "createdAt": "2026-10-25T22:41:50.557Z"
}