example-data.com
Menu
Browse docs and collections

Overview

properties / #151

Fort Rebecaland Apartment

apartment · Fort Rebecaland · $220.66/night · ★ 4.5 (872)

8307 Elise Ridge

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 151,
  "name": "Fort Rebecaland Apartment",
  "slug": "fort-rebecaland-apartment-151",
  "type": "apartment",
  "countryAlpha2": "NO",
  "city": "Fort Rebecaland",
  "address": "8307 Elise Ridge",
  "latitude": 33.408295,
  "longitude": -68.386591,
  "bedrooms": 3,
  "bathrooms": 3,
  "maxGuests": 6,
  "pricePerNight": 220.66,
  "currency": "EUR",
  "rating": 4.5,
  "ratingCount": 872,
  "hostUserId": 222,
  "createdAt": "2024-09-25T01:53:55.384Z",
  "updatedAt": "2024-12-01T11:38:08.536Z"
}