example-data.com
Menu
Browse docs and collections

Overview

hotels / #83

Dreary Hotel Alhambra

hotel · Alhambra · $91.88+/night · ★ 4.3 (2226)

9628 Littel Mills

wifiroom-servicecasinogymspapet-friendlyairport-shuttle

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 83,
  "name": "Dreary Hotel Alhambra",
  "slug": "dreary-hotel-alhambra-83",
  "brand": "Radisson",
  "countryAlpha2": "VN",
  "city": "Alhambra",
  "address": "9628 Littel Mills",
  "latitude": -38.476173,
  "longitude": -65.500374,
  "starRating": 5,
  "rating": 4.3,
  "ratingCount": 2226,
  "priceFromPerNight": 91.88,
  "currency": "USD",
  "amenities": [
    "wifi",
    "room-service",
    "casino",
    "gym",
    "spa",
    "pet-friendly",
    "airport-shuttle"
  ],
  "createdAt": "2025-04-01T02:10:45.395Z"
}