example-data.com
Menu
Browse docs and collections

Overview

tickets / #201

Nov
21
Fri

Grand Klocko Summit

10:02 PM

West Aidenburgh Concert Hall

From USD 547.64

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 201,
  "eventName": "Grand Klocko Summit",
  "venue": "West Aidenburgh Concert Hall",
  "eventAt": "2025-11-21T22:02:13.248Z",
  "type": "reserved",
  "price": 547.64,
  "currency": "USD",
  "sectionCode": "A2",
  "seatCode": "F17",
  "isSold": true,
  "createdAt": "2025-08-21T22:02:13.248Z"
}