example-data.com
Menu
Browse docs and collections

Overview

tickets / #193

May
1
Sat

Classic Rolfson Tour

3:31 AM

Moisesville Arena

From EUR 932.94

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 193,
  "eventName": "Classic Rolfson Tour",
  "venue": "Moisesville Arena",
  "eventAt": "2027-05-01T03:31:36.549Z",
  "type": "standing",
  "price": 932.94,
  "currency": "EUR",
  "sectionCode": "B1",
  "seatCode": null,
  "isSold": true,
  "createdAt": "2027-02-07T03:31:36.549Z"
}