example-data.com
Menu
Browse docs and collections

Overview

properties / #120

Ernserburgh Apartment

apartment · Ernserburgh · $880.38/night · ★ 2.6 (1556)

9143 Railroad Avenue

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 120,
  "name": "Ernserburgh Apartment",
  "slug": "ernserburgh-apartment-120",
  "type": "apartment",
  "countryAlpha2": "SE",
  "city": "Ernserburgh",
  "address": "9143 Railroad Avenue",
  "latitude": 19.825127,
  "longitude": -91.087494,
  "bedrooms": 2,
  "bathrooms": 1.5,
  "maxGuests": 3,
  "pricePerNight": 880.38,
  "currency": "CAD",
  "rating": 2.6,
  "ratingCount": 1556,
  "hostUserId": 145,
  "createdAt": "2024-10-19T06:23:09.303Z",
  "updatedAt": "2025-04-27T12:30:26.671Z"
}