example-data.com
Menu
Browse docs and collections

Overview

properties / #118

North Curtshire Loft

loft · North Curtshire · $928.1/night · ★ 3.2 (195)

2255 Leda Lodge

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 118,
  "name": "North Curtshire Loft",
  "slug": "north-curtshire-loft-118",
  "type": "loft",
  "countryAlpha2": "AU",
  "city": "North Curtshire",
  "address": "2255 Leda Lodge",
  "latitude": 54.831154,
  "longitude": 149.191139,
  "bedrooms": 4,
  "bathrooms": 1,
  "maxGuests": 5,
  "pricePerNight": 928.1,
  "currency": "GBP",
  "rating": 3.2,
  "ratingCount": 195,
  "hostUserId": 216,
  "createdAt": "2025-04-06T02:23:59.646Z",
  "updatedAt": "2025-04-28T06:26:11.217Z"
}