example-data.com
Menu
Browse docs and collections

Overview

tickets / #86

Sep
28
Sun

World Shields Open

2:36 PM

Brandoside Amphitheater

From CAD 89.58

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 86,
  "eventName": "World Shields Open",
  "venue": "Brandoside Amphitheater",
  "eventAt": "2025-09-28T14:36:45.106Z",
  "type": "vip",
  "price": 89.58,
  "currency": "CAD",
  "sectionCode": "B2",
  "seatCode": "M33",
  "isSold": true,
  "createdAt": "2025-05-08T14:36:45.106Z"
}