example-data.com
Menu
Browse docs and collections

Overview

hotels / #138

Good Resort Kemmerbury

hotel · Kemmerbury · $1396.87+/night · ★ 4.9 (4597)

227 N State Street

spawificasinoroom-servicebarpoolairport-shuttle

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 138,
  "name": "Good Resort Kemmerbury",
  "slug": "good-resort-kemmerbury-138",
  "brand": "Radisson",
  "countryAlpha2": "MY",
  "city": "Kemmerbury",
  "address": "227 N State Street",
  "latitude": 8.030828,
  "longitude": -40.719272,
  "starRating": 3,
  "rating": 4.9,
  "ratingCount": 4597,
  "priceFromPerNight": 1396.87,
  "currency": "TRY",
  "amenities": [
    "spa",
    "wifi",
    "casino",
    "room-service",
    "bar",
    "pool",
    "airport-shuttle"
  ],
  "createdAt": "2024-11-22T21:55:54.349Z"
}