example-data.com
Menu
Browse docs and collections

Overview

properties / #116

Oceanside Cabin

cabin · Oceanside · $228.94/night · ★ 4.4 (84)

605 Eleanora Corners

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/properties/116"
);
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/116"
);
const property = (await res.json()) as Property;

Python example

import requests

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

Response

{
  "id": 116,
  "name": "Oceanside Cabin",
  "slug": "oceanside-cabin-116",
  "type": "cabin",
  "countryAlpha2": "NZ",
  "city": "Oceanside",
  "address": "605 Eleanora Corners",
  "latitude": 54.959222,
  "longitude": -17.561446,
  "bedrooms": 5,
  "bathrooms": 1,
  "maxGuests": 7,
  "pricePerNight": 228.94,
  "currency": "SGD",
  "rating": 4.4,
  "ratingCount": 84,
  "hostUserId": 144,
  "createdAt": "2024-12-12T17:06:48.897Z",
  "updatedAt": "2025-05-28T15:28:16.483Z"
}