Krystalport Apartment
apartment · Krystalport · $1396.63/night · ★ 4.1 (1458)
6473 Frami Fall
Overview
properties / #171
apartment · Krystalport · $1396.63/night · ★ 4.1 (1458)
6473 Frami Fall
Request
curl example
curl -sS \ "https://example-data.com/api/v1/properties/171" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/properties/171" ); 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/171"
);
const property = (await res.json()) as Property; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/properties/171"
)
propertie = res.json() Response
{
"id": 171,
"name": "Krystalport Apartment",
"slug": "krystalport-apartment-171",
"type": "apartment",
"countryAlpha2": "IE",
"city": "Krystalport",
"address": "6473 Frami Fall",
"latitude": 4.9134,
"longitude": 112.275329,
"bedrooms": 4,
"bathrooms": 2,
"maxGuests": 2,
"pricePerNight": 1396.63,
"currency": "JPY",
"rating": 4.1,
"ratingCount": 1458,
"hostUserId": 247,
"createdAt": "2024-06-14T00:09:19.967Z",
"updatedAt": "2024-07-03T00:21:45.173Z"
}