example-data.com
Menu
Browse docs and collections

Overview

tickets / #34

Dec
8
Tue

National Stark Championship

2:34 AM

East Kara Auditorium

From USD 394.64

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 34,
  "eventName": "National Stark Championship",
  "venue": "East Kara Auditorium",
  "eventAt": "2026-12-08T02:34:22.165Z",
  "type": "general",
  "price": 394.64,
  "currency": "USD",
  "sectionCode": "D2",
  "seatCode": null,
  "isSold": false,
  "createdAt": "2026-11-16T02:34:22.165Z"
}