example-data.com
Menu
Browse docs and collections

Overview

hotels / #28

Favorite Resort Fort Eliezer

hotel · Fort Eliezer · $1841.81+/night · ★ 2.1 (818)

994 Hillside Close

laundrybusiness-centerrestaurant

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/hotels/28"
);
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/28"
);
const hotel = (await res.json()) as Hotel;

Python example

import requests

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

Response

{
  "id": 28,
  "name": "Favorite Resort Fort Eliezer",
  "slug": "favorite-resort-fort-eliezer-28",
  "brand": "Ritz-Carlton",
  "countryAlpha2": "DK",
  "city": "Fort Eliezer",
  "address": "994 Hillside Close",
  "latitude": -5.984681,
  "longitude": 45.67518,
  "starRating": 4,
  "rating": 2.1,
  "ratingCount": 818,
  "priceFromPerNight": 1841.81,
  "currency": "AUD",
  "amenities": [
    "laundry",
    "business-center",
    "restaurant"
  ],
  "createdAt": "2025-07-26T22:54:15.074Z"
}