example-data.com
Menu
Browse docs and collections

Overview

tickets / #211

Jan
12
Mon

Grand Witting Championship

5:25 PM

Fort Pierce Stadium

From EUR 110.32

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 211,
  "eventName": "Grand Witting Championship",
  "venue": "Fort Pierce Stadium",
  "eventAt": "2026-01-12T17:25:54.561Z",
  "type": "balcony",
  "price": 110.32,
  "currency": "EUR",
  "sectionCode": "VIP",
  "seatCode": "F37",
  "isSold": true,
  "createdAt": "2025-09-15T17:25:54.561Z"
}