example-data.com
Menu
Browse docs and collections

Overview

hotels / #50

Worst Palace South Buckberg

hotel · South Buckberg · $1352.98+/night · ★ 3.2 (1842)

76006 Conroy Land

pet-friendlyparkingbeach-accessgymlaundrybusiness-centerwifispa

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 50,
  "name": "Worst Palace South Buckberg",
  "slug": "worst-palace-south-buckberg-50",
  "brand": null,
  "countryAlpha2": "MX",
  "city": "South Buckberg",
  "address": "76006 Conroy Land",
  "latitude": -52.736824,
  "longitude": -141.516199,
  "starRating": 3,
  "rating": 3.2,
  "ratingCount": 1842,
  "priceFromPerNight": 1352.98,
  "currency": "AUD",
  "amenities": [
    "pet-friendly",
    "parking",
    "beach-access",
    "gym",
    "laundry",
    "business-center",
    "wifi",
    "spa"
  ],
  "createdAt": "2024-09-24T16:59:07.468Z"
}