example-data.com
Menu
Browse docs and collections

Overview

tickets / #215

Nov
27
Thu

Annual Erdman Gala

8:38 AM

Pfannerstillshire Stadium

From CAD 352.86

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 215,
  "eventName": "Annual Erdman Gala",
  "venue": "Pfannerstillshire Stadium",
  "eventAt": "2025-11-27T08:38:29.941Z",
  "type": "reserved",
  "price": 352.86,
  "currency": "CAD",
  "sectionCode": "C2",
  "seatCode": "N45",
  "isSold": true,
  "createdAt": "2025-09-27T08:38:29.941Z"
}