example-data.com
Menu
Browse docs and collections

Overview

hotels / #22

Sugary Hotel Odessa

hotel · Odessa · $1878.54+/night · ★ 4.1 (472)

498 Kennedy Green

airport-shuttlegymbeach-accessbusiness-centerwifilaundryroom-service

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 22,
  "name": "Sugary Hotel Odessa",
  "slug": "sugary-hotel-odessa-22",
  "brand": null,
  "countryAlpha2": "AR",
  "city": "Odessa",
  "address": "498 Kennedy Green",
  "latitude": 44.874502,
  "longitude": 11.923592,
  "starRating": 2,
  "rating": 4.1,
  "ratingCount": 472,
  "priceFromPerNight": 1878.54,
  "currency": "GBP",
  "amenities": [
    "airport-shuttle",
    "gym",
    "beach-access",
    "business-center",
    "wifi",
    "laundry",
    "room-service"
  ],
  "createdAt": "2025-11-05T17:43:06.288Z"
}