Jan
31
Sun
Ultimate Moen Summit
8:34 PM
Haagfort Stadium
From AUD 984.67
Overview
tickets / #6
8:34 PM
Haagfort Stadium
From AUD 984.67
Request
curl example
curl -sS \ "https://example-data.com/api/v1/tickets/6" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/tickets/6" ); 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/6"
);
const ticket = (await res.json()) as Ticket; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/tickets/6"
)
ticket = res.json() Response
{
"id": 6,
"eventName": "Ultimate Moen Summit",
"venue": "Haagfort Stadium",
"eventAt": "2027-01-31T20:34:02.503Z",
"type": "reserved",
"price": 984.67,
"currency": "AUD",
"sectionCode": "A2",
"seatCode": "L23",
"isSold": true,
"createdAt": "2027-01-19T20:34:02.503Z"
}