example-data.com
Menu
Browse docs and collections

Overview

tickets / #138

Jun
3
Tue

Grand Kunde Concert

7:29 PM

Manteca Stadium

From MXN 899.98

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 138,
  "eventName": "Grand Kunde Concert",
  "venue": "Manteca Stadium",
  "eventAt": "2025-06-03T19:29:51.519Z",
  "type": "general",
  "price": 899.98,
  "currency": "MXN",
  "sectionCode": "C2",
  "seatCode": null,
  "isSold": false,
  "createdAt": "2025-01-25T19:29:51.519Z"
}