example-data.com
Menu
Browse docs and collections

Overview

properties / #98

West Cordie Loft

loft · West Cordie · $1082.16/night · ★ 4.1 (69)

369 The Avenue

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 98,
  "name": "West Cordie Loft",
  "slug": "west-cordie-loft-98",
  "type": "loft",
  "countryAlpha2": "SE",
  "city": "West Cordie",
  "address": "369 The Avenue",
  "latitude": 33.505196,
  "longitude": 95.366584,
  "bedrooms": 6,
  "bathrooms": 0.5,
  "maxGuests": 4,
  "pricePerNight": 1082.16,
  "currency": "AED",
  "rating": 4.1,
  "ratingCount": 69,
  "hostUserId": 185,
  "createdAt": "2024-11-21T20:18:11.218Z",
  "updatedAt": "2024-12-12T14:49:34.186Z"
}