example-data.com
Menu
Browse docs and collections

Overview

tickets / #127

Jul
29
Tue

The Mills Exhibition

8:26 AM

Chaimview Arena

From JPY 939.76

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 127,
  "eventName": "The Mills Exhibition",
  "venue": "Chaimview Arena",
  "eventAt": "2025-07-29T08:26:50.713Z",
  "type": "balcony",
  "price": 939.76,
  "currency": "JPY",
  "sectionCode": "VIP",
  "seatCode": "V28",
  "isSold": true,
  "createdAt": "2025-06-20T08:26:50.713Z"
}