Mar
18
Thu
National Hayes Gala
4:12 AM
West Cameron Auditorium
From GBP 702.30
Overview
tickets / #190
4:12 AM
West Cameron Auditorium
From GBP 702.30
Request
curl example
curl -sS \ "https://example-data.com/api/v1/tickets/190" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/tickets/190" ); 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/190"
);
const ticket = (await res.json()) as Ticket; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/tickets/190"
)
ticket = res.json() Response
{
"id": 190,
"eventName": "National Hayes Gala",
"venue": "West Cameron Auditorium",
"eventAt": "2027-03-18T04:12:06.552Z",
"type": "vip",
"price": 702.3,
"currency": "GBP",
"sectionCode": "B1",
"seatCode": "L40",
"isSold": false,
"createdAt": "2027-02-25T04:12:06.552Z"
}