example-data.com
Menu
Browse docs and collections

bookings

bookings

Page 2 of 21.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/bookings?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/bookings?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/bookings.d.ts https://example-data.com/types/bookings.d.ts
import type { Booking, ListEnvelope } from "./types/bookings";

const res = await fetch(
  "https://example-data.com/api/v1/bookings?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Booking>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/bookings",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 25,
      "userId": 154,
      "kind": "property",
      "referenceId": 152,
      "checkInAt": "2025-07-04T07:10:42.825Z",
      "checkOutAt": "2025-07-17T07:10:42.825Z",
      "status": "confirmed",
      "totalAmount": 2299.79,
      "currency": "AUD",
      "createdAt": "2025-07-03T07:10:42.825Z"
    },
    {
      "id": 26,
      "userId": 82,
      "kind": "flight",
      "referenceId": 79,
      "checkInAt": "2026-11-03T16:26:31.897Z",
      "checkOutAt": "2026-11-03T16:26:31.897Z",
      "status": "completed",
      "totalAmount": 7832.58,
      "currency": "EUR",
      "createdAt": "2026-09-25T16:26:31.897Z"
    },
    {
      "id": 27,
      "userId": 58,
      "kind": "flight",
      "referenceId": 213,
      "checkInAt": "2027-04-30T20:36:49.639Z",
      "checkOutAt": "2027-04-30T20:36:49.639Z",
      "status": "confirmed",
      "totalAmount": 7791.11,
      "currency": "CAD",
      "createdAt": "2027-02-15T20:36:49.639Z"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 500,
    "totalPages": 21
  },
  "links": {
    "self": "/api/v1/bookings?page=2&limit=24",
    "first": "/api/v1/bookings?page=1&limit=24",
    "last": "/api/v1/bookings?page=21&limit=24",
    "next": "/api/v1/bookings?page=3&limit=24",
    "prev": "/api/v1/bookings?page=1&limit=24"
  }
}