example-data.com
Menu
Browse docs and collections

Overview

tickets / #155

Apr
4
Sat

Classic Bartell Concert

4:28 AM

Tucson Theater

From EUR 567.05

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 155,
  "eventName": "Classic Bartell Concert",
  "venue": "Tucson Theater",
  "eventAt": "2026-04-04T04:28:48.839Z",
  "type": "vip",
  "price": 567.05,
  "currency": "EUR",
  "sectionCode": "A1",
  "seatCode": "X7",
  "isSold": false,
  "createdAt": "2025-11-06T04:28:48.839Z"
}