example-data.com
Menu
Browse docs and collections

Overview

hotels / #65

Gray Resort Isomworth

hotel · Isomworth · $868.89+/night · ★ 4.0 (1592)

37319 School Close

parkingbar

Component variants

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 65,
  "name": "Gray Resort Isomworth",
  "slug": "gray-resort-isomworth-65",
  "brand": "Ritz-Carlton",
  "countryAlpha2": "SA",
  "city": "Isomworth",
  "address": "37319 School Close",
  "latitude": -38.219519,
  "longitude": -18.284942,
  "starRating": 5,
  "rating": 4,
  "ratingCount": 1592,
  "priceFromPerNight": 868.89,
  "currency": "THB",
  "amenities": [
    "parking",
    "bar"
  ],
  "createdAt": "2026-04-19T17:46:49.955Z"
}