example-data.com
Menu
Browse docs and collections

Overview

showings / #131

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 131,
  "listingId": 49,
  "prospectUserId": 5,
  "scheduledAt": "2024-09-27T00:16:16.580Z",
  "status": "cancelled",
  "notes": "Minima cui amitto speciosus valens.",
  "createdAt": "2024-08-30T00:53:43.655Z"
}