example-data.com
Menu
Browse docs and collections

Overview

tickets / #36

Nov
19
Wed

Classic Sporer-Parker Show

2:54 AM

South Amarichester Theater

From USD 614.97

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 36,
  "eventName": "Classic Sporer-Parker Show",
  "venue": "South Amarichester Theater",
  "eventAt": "2025-11-19T02:54:03.154Z",
  "type": "reserved",
  "price": 614.97,
  "currency": "USD",
  "sectionCode": "VIP",
  "seatCode": "W39",
  "isSold": true,
  "createdAt": "2025-10-21T02:54:03.154Z"
}