example-data.com
Menu
Browse docs and collections

Overview

tickets / #184

Jul
12
Sun

Classic O'Reilly Festival

3:51 PM

New Wendelltown Pavilion

From USD 54.03

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 184,
  "eventName": "Classic O'Reilly Festival",
  "venue": "New Wendelltown Pavilion",
  "eventAt": "2026-07-12T15:51:36.253Z",
  "type": "balcony",
  "price": 54.03,
  "currency": "USD",
  "sectionCode": "A2",
  "seatCode": "Y22",
  "isSold": false,
  "createdAt": "2026-01-30T15:51:36.253Z"
}