example-data.com
Menu
Browse docs and collections

Overview

properties / #23

Hanford Loft

loft · Hanford · $179.9/night · ★ 5.0 (915)

87853 W 9th Street

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 23,
  "name": "Hanford Loft",
  "slug": "hanford-loft-23",
  "type": "loft",
  "countryAlpha2": "SG",
  "city": "Hanford",
  "address": "87853 W 9th Street",
  "latitude": -25.642083,
  "longitude": 96.312256,
  "bedrooms": 4,
  "bathrooms": 2.5,
  "maxGuests": 2,
  "pricePerNight": 179.9,
  "currency": "AED",
  "rating": 5,
  "ratingCount": 915,
  "hostUserId": 124,
  "createdAt": "2024-08-04T13:57:16.899Z",
  "updatedAt": "2026-03-19T17:31:27.583Z"
}