example-data.com
Menu
Browse docs and collections

Overview

hotels / #147

Antique Inn Carolina

hotel · Carolina · $886.78+/night · ★ 4.5 (268)

839 Alaina Lights

restaurantpet-friendlycasinospabarparkingairport-shuttle

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 147,
  "name": "Antique Inn Carolina",
  "slug": "antique-inn-carolina-147",
  "brand": null,
  "countryAlpha2": "FJ",
  "city": "Carolina",
  "address": "839 Alaina Lights",
  "latitude": -45.329576,
  "longitude": -46.650433,
  "starRating": 2,
  "rating": 4.5,
  "ratingCount": 268,
  "priceFromPerNight": 886.78,
  "currency": "AUD",
  "amenities": [
    "restaurant",
    "pet-friendly",
    "casino",
    "spa",
    "bar",
    "parking",
    "airport-shuttle"
  ],
  "createdAt": "2025-03-13T20:45:05.147Z"
}