example-data.com
Menu
Browse docs and collections

Overview

hotels / #13

Partial Hotel Elizabeth

hotel · Elizabeth · $102.09+/night · ★ 3.2 (3278)

368 Estell Centers

wificasinoroom-service

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 13,
  "name": "Partial Hotel Elizabeth",
  "slug": "partial-hotel-elizabeth-13",
  "brand": "Four Seasons",
  "countryAlpha2": "ET",
  "city": "Elizabeth",
  "address": "368 Estell Centers",
  "latitude": 25.586933,
  "longitude": 57.155354,
  "starRating": 4,
  "rating": 3.2,
  "ratingCount": 3278,
  "priceFromPerNight": 102.09,
  "currency": "TRY",
  "amenities": [
    "wifi",
    "casino",
    "room-service"
  ],
  "createdAt": "2025-05-26T23:20:37.542Z"
}