example-data.com
Menu
Browse docs and collections

Overview

tickets / #149

Mar
8
Sun

International Borer Tour

7:02 PM

Ramonton Convention Center

From MXN 579.97

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 149,
  "eventName": "International Borer Tour",
  "venue": "Ramonton Convention Center",
  "eventAt": "2026-03-08T19:02:37.550Z",
  "type": "vip",
  "price": 579.97,
  "currency": "MXN",
  "sectionCode": "VIP",
  "seatCode": "W28",
  "isSold": false,
  "createdAt": "2025-09-19T19:02:37.550Z"
}