example-data.com
Menu
Browse docs and collections

Overview

hotels / #1

Same Lodge Beaumont

hotel · Beaumont · $785.31+/night · ★ 3.4 (3924)

783 Lakin Roads

pet-friendlyparkingairport-shuttlebar

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

          import requests

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

Response

{
  "id": 1,
  "name": "Same Lodge Beaumont",
  "slug": "same-lodge-beaumont-1",
  "brand": "Accor",
  "countryAlpha2": "AU",
  "city": "Beaumont",
  "address": "783 Lakin Roads",
  "latitude": 52.537448,
  "longitude": 41.243524,
  "starRating": 4,
  "rating": 3.4,
  "ratingCount": 3924,
  "priceFromPerNight": 785.31,
  "currency": "CAD",
  "amenities": [
    "pet-friendly",
    "parking",
    "airport-shuttle",
    "bar"
  ],
  "createdAt": "2025-03-21T01:28:31.055Z"
}