example-data.com
Menu
Browse docs and collections

Overview

tickets / #97

Nov
11
Wed

Grand Konopelski Festival

9:34 AM

North Queenie Auditorium

From GBP 680.68

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 97,
  "eventName": "Grand Konopelski Festival",
  "venue": "North Queenie Auditorium",
  "eventAt": "2026-11-11T09:34:16.252Z",
  "type": "general",
  "price": 680.68,
  "currency": "GBP",
  "sectionCode": "A2",
  "seatCode": null,
  "isSold": true,
  "createdAt": "2026-06-29T09:34:16.252Z"
}