example-data.com
Menu
Browse docs and collections

Overview

properties / #2

Port Ramiroburgh Villa

villa · Port Ramiroburgh · $524.9/night · ★ 3.7 (14)

4740 Connie Station

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 2,
  "name": "Port Ramiroburgh Villa",
  "slug": "port-ramiroburgh-villa-2",
  "type": "villa",
  "countryAlpha2": "ZA",
  "city": "Port Ramiroburgh",
  "address": "4740 Connie Station",
  "latitude": -52.458307,
  "longitude": -103.758107,
  "bedrooms": 6,
  "bathrooms": 2.5,
  "maxGuests": 6,
  "pricePerNight": 524.9,
  "currency": "SGD",
  "rating": 3.7,
  "ratingCount": 14,
  "hostUserId": 40,
  "createdAt": "2025-10-10T09:38:17.845Z",
  "updatedAt": "2026-03-03T18:40:39.424Z"
}