example-data.com
Menu
Browse docs and collections

Overview

tickets / #83

Jan
1
Thu

International Miller Festival

9:09 AM

Sunrise Theater

From USD 487.83

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 83,
  "eventName": "International Miller Festival",
  "venue": "Sunrise Theater",
  "eventAt": "2026-01-01T09:09:53.248Z",
  "type": "reserved",
  "price": 487.83,
  "currency": "USD",
  "sectionCode": "B1",
  "seatCode": "T49",
  "isSold": false,
  "createdAt": "2025-09-10T09:09:53.248Z"
}