Mar
2
Tue
The Wilkinson Show
11:51 AM
Toyborough Amphitheater
From CAD 311.01
Overview
tickets / #212
11:51 AM
Toyborough Amphitheater
From CAD 311.01
Request
curl example
curl -sS \ "https://example-data.com/api/v1/tickets/212" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/tickets/212" ); 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/212"
);
const ticket = (await res.json()) as Ticket; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/tickets/212"
)
ticket = res.json() Response
{
"id": 212,
"eventName": "The Wilkinson Show",
"venue": "Toyborough Amphitheater",
"eventAt": "2027-03-02T11:51:19.550Z",
"type": "balcony",
"price": 311.01,
"currency": "CAD",
"sectionCode": "FLOOR",
"seatCode": "Z17",
"isSold": true,
"createdAt": "2027-01-20T11:51:19.550Z"
}