example-data.com
Menu
Browse docs and collections

Overview

hotels / #150

Suburban Lodge West Shyanneworth

hotel · West Shyanneworth · $182.81+/night · ★ 2.7 (1562)

63399 Edgardo Roads

beach-accessparkingspaconcierge

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 150,
  "name": "Suburban Lodge West Shyanneworth",
  "slug": "suburban-lodge-west-shyanneworth-150",
  "brand": "Hyatt",
  "countryAlpha2": "SA",
  "city": "West Shyanneworth",
  "address": "63399 Edgardo Roads",
  "latitude": 12.953145,
  "longitude": 157.548038,
  "starRating": 5,
  "rating": 2.7,
  "ratingCount": 1562,
  "priceFromPerNight": 182.81,
  "currency": "AED",
  "amenities": [
    "beach-access",
    "parking",
    "spa",
    "concierge"
  ],
  "createdAt": "2025-01-22T07:24:50.212Z"
}