example-data.com
Menu
Browse docs and collections

Overview

properties / #123

Gastonia Apartment

apartment · Gastonia · $786.34/night · ★ 3.4 (847)

296 Canal Street

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 123,
  "name": "Gastonia Apartment",
  "slug": "gastonia-apartment-123",
  "type": "apartment",
  "countryAlpha2": "TH",
  "city": "Gastonia",
  "address": "296 Canal Street",
  "latitude": 59.637371,
  "longitude": -162.514823,
  "bedrooms": 0,
  "bathrooms": 4,
  "maxGuests": 2,
  "pricePerNight": 786.34,
  "currency": "GBP",
  "rating": 3.4,
  "ratingCount": 847,
  "hostUserId": 20,
  "createdAt": "2026-01-11T16:13:03.774Z",
  "updatedAt": "2026-04-09T03:11:56.703Z"
}