example-data.com
Menu
Browse docs and collections

Overview

hotels / #77

Warlike Suites Fort Mable

hotel · Fort Mable · $512+/night · ★ 3.9 (4030)

82564 The Poplars

room-servicelaundrybarbusiness-centerairport-shuttle

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 77,
  "name": "Warlike Suites Fort Mable",
  "slug": "warlike-suites-fort-mable-77",
  "brand": null,
  "countryAlpha2": "SE",
  "city": "Fort Mable",
  "address": "82564 The Poplars",
  "latitude": -11.994249,
  "longitude": 9.179262,
  "starRating": 2,
  "rating": 3.9,
  "ratingCount": 4030,
  "priceFromPerNight": 512,
  "currency": "TRY",
  "amenities": [
    "room-service",
    "laundry",
    "bar",
    "business-center",
    "airport-shuttle"
  ],
  "createdAt": "2024-08-31T17:32:24.490Z"
}