example-data.com
Menu
Browse docs and collections

Overview

hotels / #102

Untried Palace Tempe

hotel · Tempe · $1221.87+/night · ★ 2.5 (2674)

10136 Breitenberg Flats

beach-accessgym

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 102,
  "name": "Untried Palace Tempe",
  "slug": "untried-palace-tempe-102",
  "brand": "Ritz-Carlton",
  "countryAlpha2": "CL",
  "city": "Tempe",
  "address": "10136 Breitenberg Flats",
  "latitude": -14.287926,
  "longitude": 138.3891,
  "starRating": 3,
  "rating": 2.5,
  "ratingCount": 2674,
  "priceFromPerNight": 1221.87,
  "currency": "AED",
  "amenities": [
    "beach-access",
    "gym"
  ],
  "createdAt": "2025-09-28T09:17:02.687Z"
}