example-data.com
Menu
Browse docs and collections

Overview

showings / #340

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/showings/340"
);
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/340"
);
const showing = (await res.json()) as Showing;

Python example

import requests

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

Response

{
  "id": 340,
  "listingId": 124,
  "prospectUserId": 21,
  "scheduledAt": "2024-09-04T11:20:22.326Z",
  "status": "cancelled",
  "notes": "Cohors labore cometes vorax vociferor astrum conor.",
  "createdAt": "2024-08-21T09:13:27.668Z"
}