example-data.com
Menu
Browse docs and collections

Overview

hotels / #125

Yummy Hotel Lake Reece

hotel · Lake Reece · $1177.67+/night · ★ 3.4 (2594)

9502 Hubert View

pet-friendlyroom-servicespa

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 125,
  "name": "Yummy Hotel Lake Reece",
  "slug": "yummy-hotel-lake-reece-125",
  "brand": "IHG",
  "countryAlpha2": "DK",
  "city": "Lake Reece",
  "address": "9502 Hubert View",
  "latitude": -21.40572,
  "longitude": 117.396115,
  "starRating": 4,
  "rating": 3.4,
  "ratingCount": 2594,
  "priceFromPerNight": 1177.67,
  "currency": "EUR",
  "amenities": [
    "pet-friendly",
    "room-service",
    "spa"
  ],
  "createdAt": "2025-02-07T09:59:17.142Z"
}