example-data.com
Menu
Browse docs and collections

Overview

hotels / #8

Second-hand Suites East Maya

hotel · East Maya · $1750.97+/night · ★ 3.3 (4513)

10967 Alexandrine Plaza

beach-accesscasinogympet-friendlywifisparoom-service

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 8,
  "name": "Second-hand Suites East Maya",
  "slug": "second-hand-suites-east-maya-8",
  "brand": "Hyatt",
  "countryAlpha2": "AE",
  "city": "East Maya",
  "address": "10967 Alexandrine Plaza",
  "latitude": -38.91839,
  "longitude": 76.913309,
  "starRating": 5,
  "rating": 3.3,
  "ratingCount": 4513,
  "priceFromPerNight": 1750.97,
  "currency": "AED",
  "amenities": [
    "beach-access",
    "casino",
    "gym",
    "pet-friendly",
    "wifi",
    "spa",
    "room-service"
  ],
  "createdAt": "2024-08-15T16:28:14.346Z"
}