example-data.com
Menu
Browse docs and collections

Overview

hotels / #26

Legal Resort Vonside

hotel · Vonside · $818.76+/night · ★ 3.3 (688)

6310 Robb Flat

laundrybusiness-center

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 26,
  "name": "Legal Resort Vonside",
  "slug": "legal-resort-vonside-26",
  "brand": "Best Western",
  "countryAlpha2": "SE",
  "city": "Vonside",
  "address": "6310 Robb Flat",
  "latitude": 48.450745,
  "longitude": 7.056145,
  "starRating": 2,
  "rating": 3.3,
  "ratingCount": 688,
  "priceFromPerNight": 818.76,
  "currency": "AUD",
  "amenities": [
    "laundry",
    "business-center"
  ],
  "createdAt": "2024-06-22T21:54:20.293Z"
}