example-data.com
Menu
Browse docs and collections

Overview

hotels / #110

Polite Palace North Americabury

hotel · North Americabury · $827.95+/night · ★ 4.2 (3624)

772 Unique Parkway

casinolaundrybargymparkingconciergespabusiness-center

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 110,
  "name": "Polite Palace North Americabury",
  "slug": "polite-palace-north-americabury-110",
  "brand": "Ritz-Carlton",
  "countryAlpha2": "SG",
  "city": "North Americabury",
  "address": "772 Unique Parkway",
  "latitude": 26.266848,
  "longitude": -174.647651,
  "starRating": 2,
  "rating": 4.2,
  "ratingCount": 3624,
  "priceFromPerNight": 827.95,
  "currency": "AUD",
  "amenities": [
    "casino",
    "laundry",
    "bar",
    "gym",
    "parking",
    "concierge",
    "spa",
    "business-center"
  ],
  "createdAt": "2024-12-11T08:46:51.402Z"
}