example-data.com
Menu
Browse docs and collections

Overview

tickets / #232

Jan
17
Sat

International Medhurst-Swaniawski Show

9:55 AM

East Hayleeborough Pavilion

From AUD 312.41

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 232,
  "eventName": "International Medhurst-Swaniawski Show",
  "venue": "East Hayleeborough Pavilion",
  "eventAt": "2026-01-17T09:55:36.991Z",
  "type": "balcony",
  "price": 312.41,
  "currency": "AUD",
  "sectionCode": "A2",
  "seatCode": "M15",
  "isSold": true,
  "createdAt": "2025-12-02T09:55:36.991Z"
}