example-data.com
Menu
Browse docs and collections

Overview

tickets / #194

Feb
27
Sat

International Roob Open

5:59 AM

Erniechester Convention Center

From EUR 14.20

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 194,
  "eventName": "International Roob Open",
  "venue": "Erniechester Convention Center",
  "eventAt": "2027-02-27T05:59:10.504Z",
  "type": "vip",
  "price": 14.2,
  "currency": "EUR",
  "sectionCode": "C2",
  "seatCode": "K21",
  "isSold": false,
  "createdAt": "2026-10-24T05:59:10.504Z"
}