example-data.com
Menu
Browse docs and collections

Overview

properties / #3

Portland Cabin

cabin · Portland · $659.37/night · ★ 2.8 (1310)

6376 N Oak Street

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/properties/3"
);
const property = await res.json();

TypeScript example

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

const res = await fetch(
  "https://example-data.com/api/v1/properties/3"
);
const property = (await res.json()) as Property;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/properties/3"
)
propertie = res.json()

Response

{
  "id": 3,
  "name": "Portland Cabin",
  "slug": "portland-cabin-3",
  "type": "cabin",
  "countryAlpha2": "PL",
  "city": "Portland",
  "address": "6376 N Oak Street",
  "latitude": -0.198966,
  "longitude": 137.062324,
  "bedrooms": 3,
  "bathrooms": 1.5,
  "maxGuests": 1,
  "pricePerNight": 659.37,
  "currency": "SGD",
  "rating": 2.8,
  "ratingCount": 1310,
  "hostUserId": 139,
  "createdAt": "2024-11-28T16:36:17.147Z",
  "updatedAt": "2026-03-09T22:09:04.022Z"
}