example-data.com
Menu
Browse docs and collections

Overview

hotels / #100

Interesting Suites East Daron

hotel · East Daron · $1508.38+/night · ★ 2.2 (4531)

62088 Spencer Spring

laundryairport-shuttle

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/hotels/100"
);
const hotel = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/hotels.d.ts https://example-data.com/types/hotels.d.ts
import type { Hotel } from "./types/hotels";

const res = await fetch(
  "https://example-data.com/api/v1/hotels/100"
);
const hotel = (await res.json()) as Hotel;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/hotels/100"
)
hotel = res.json()

Response

{
  "id": 100,
  "name": "Interesting Suites East Daron",
  "slug": "interesting-suites-east-daron-100",
  "brand": "Four Seasons",
  "countryAlpha2": "VN",
  "city": "East Daron",
  "address": "62088 Spencer Spring",
  "latitude": -39.805133,
  "longitude": 35.612616,
  "starRating": 5,
  "rating": 2.2,
  "ratingCount": 4531,
  "priceFromPerNight": 1508.38,
  "currency": "CAD",
  "amenities": [
    "laundry",
    "airport-shuttle"
  ],
  "createdAt": "2024-11-30T23:17:19.285Z"
}