example-data.com
Menu
Browse docs and collections

Overview

showings / #322

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/showings/322"
);
const showing = await res.json();

TypeScript example

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

const res = await fetch(
  "https://example-data.com/api/v1/showings/322"
);
const showing = (await res.json()) as Showing;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/showings/322"
)
showing = res.json()

Response

{
  "id": 322,
  "listingId": 118,
  "prospectUserId": 16,
  "scheduledAt": "2024-11-05T04:53:18.647Z",
  "status": "completed",
  "notes": "Vulgus vinculum candidus cedo adeptio aro natus.",
  "createdAt": "2024-11-08T11:36:26.302Z"
}