example-data.com
Menu
Browse docs and collections

Overview

tickets / #293

Nov
26
Wed

Classic Walker Gala

6:00 PM

Fort Aric Amphitheater

From MXN 128.88

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 293,
  "eventName": "Classic Walker Gala",
  "venue": "Fort Aric Amphitheater",
  "eventAt": "2025-11-26T18:00:46.672Z",
  "type": "general",
  "price": 128.88,
  "currency": "MXN",
  "sectionCode": "C1",
  "seatCode": null,
  "isSold": false,
  "createdAt": "2025-10-18T18:00:46.672Z"
}