example-data.com
Menu
Browse docs and collections

Overview

properties / #37

Port Bettieworth Loft

loft · Port Bettieworth · $110.88/night · ★ 4.5 (189)

300 Park Road

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 37,
  "name": "Port Bettieworth Loft",
  "slug": "port-bettieworth-loft-37",
  "type": "loft",
  "countryAlpha2": "IT",
  "city": "Port Bettieworth",
  "address": "300 Park Road",
  "latitude": -50.709982,
  "longitude": -121.277251,
  "bedrooms": 4,
  "bathrooms": 1.5,
  "maxGuests": 4,
  "pricePerNight": 110.88,
  "currency": "JPY",
  "rating": 4.5,
  "ratingCount": 189,
  "hostUserId": 205,
  "createdAt": "2024-08-15T17:27:46.757Z",
  "updatedAt": "2024-12-03T23:44:28.567Z"
}