example-data.com
Menu
Browse docs and collections

Overview

tickets / #139

Feb
20
Fri

National Macejkovic Finals

9:25 AM

Bernierfort Amphitheater

From MXN 829.55

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 139,
  "eventName": "National Macejkovic Finals",
  "venue": "Bernierfort Amphitheater",
  "eventAt": "2026-02-20T09:25:04.104Z",
  "type": "vip",
  "price": 829.55,
  "currency": "MXN",
  "sectionCode": "FLOOR",
  "seatCode": "B5",
  "isSold": true,
  "createdAt": "2025-09-18T09:25:04.104Z"
}