example-data.com
Menu
Browse docs and collections

Overview

tickets / #98

Jan
30
Sat

International Beahan Show

3:25 AM

Theresaville Pavilion

From MXN 269.53

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 98,
  "eventName": "International Beahan Show",
  "venue": "Theresaville Pavilion",
  "eventAt": "2027-01-30T03:25:02.017Z",
  "type": "standing",
  "price": 269.53,
  "currency": "MXN",
  "sectionCode": "B1",
  "seatCode": null,
  "isSold": true,
  "createdAt": "2026-10-11T03:25:02.017Z"
}