example-data.com
Menu
Browse docs and collections

Overview

hotels / #5

Tiny Lodge Lake Josianneberg

hotel · Lake Josianneberg · $1768.44+/night · ★ 2.2 (2933)

88885 O'Connell Rapid

room-servicebeach-accessconcierge

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 5,
  "name": "Tiny Lodge Lake Josianneberg",
  "slug": "tiny-lodge-lake-josianneberg-5",
  "brand": "Marriott",
  "countryAlpha2": "DK",
  "city": "Lake Josianneberg",
  "address": "88885 O'Connell Rapid",
  "latitude": -5.357661,
  "longitude": 7.626919,
  "starRating": 3,
  "rating": 2.2,
  "ratingCount": 2933,
  "priceFromPerNight": 1768.44,
  "currency": "AED",
  "amenities": [
    "room-service",
    "beach-access",
    "concierge"
  ],
  "createdAt": "2024-06-26T03:19:03.206Z"
}