example-data.com
Menu
Browse docs and collections

Overview

tickets / #200

Aug
8
Fri

Ultimate Runolfsdottir Tour

7:52 AM

South Ignacio Arena

From MXN 645.84

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 200,
  "eventName": "Ultimate Runolfsdottir Tour",
  "venue": "South Ignacio Arena",
  "eventAt": "2025-08-08T07:52:03.097Z",
  "type": "vip",
  "price": 645.84,
  "currency": "MXN",
  "sectionCode": "D2",
  "seatCode": "M15",
  "isSold": true,
  "createdAt": "2025-03-25T07:52:03.097Z"
}