example-data.com
Menu
Browse docs and collections

Overview

tickets / #71

Aug
12
Tue

Grand Hirthe Finals

6:33 PM

Lavinabury Amphitheater

From GBP 850.67

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 71,
  "eventName": "Grand Hirthe Finals",
  "venue": "Lavinabury Amphitheater",
  "eventAt": "2025-08-12T18:33:18.772Z",
  "type": "reserved",
  "price": 850.67,
  "currency": "GBP",
  "sectionCode": "B1",
  "seatCode": "R10",
  "isSold": true,
  "createdAt": "2025-05-04T18:33:18.772Z"
}