May
29
Thu
International Harvey Open
5:54 PM
Lompoc Amphitheater
From GBP 678.35
Overview
tickets / #40
5:54 PM
Lompoc Amphitheater
From GBP 678.35
Request
curl example
curl -sS \ "https://example-data.com/api/v1/tickets/40" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/tickets/40" ); 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/40"
);
const ticket = (await res.json()) as Ticket; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/tickets/40"
)
ticket = res.json() Response
{
"id": 40,
"eventName": "International Harvey Open",
"venue": "Lompoc Amphitheater",
"eventAt": "2025-05-29T17:54:08.950Z",
"type": "balcony",
"price": 678.35,
"currency": "GBP",
"sectionCode": "B1",
"seatCode": "D9",
"isSold": true,
"createdAt": "2025-05-11T17:54:08.950Z"
}