example-data.com
Menu
Browse docs and collections

Overview

tickets / #51

May
27
Tue

National Senger-Kilback Exhibition

10:46 PM

Fort Iva Stadium

From MXN 604.29

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 51,
  "eventName": "National Senger-Kilback Exhibition",
  "venue": "Fort Iva Stadium",
  "eventAt": "2025-05-27T22:46:09.383Z",
  "type": "reserved",
  "price": 604.29,
  "currency": "MXN",
  "sectionCode": "VIP",
  "seatCode": "T5",
  "isSold": true,
  "createdAt": "2025-02-16T22:46:09.383Z"
}