example-data.com
Menu
Browse docs and collections

Overview

hotels / #119

Gracious Resort Novi

hotel · Novi · $856.83+/night · ★ 3.9 (680)

8174 Ena Junction

parkingconciergepet-friendly

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 119,
  "name": "Gracious Resort Novi",
  "slug": "gracious-resort-novi-119",
  "brand": null,
  "countryAlpha2": "FI",
  "city": "Novi",
  "address": "8174 Ena Junction",
  "latitude": -20.934639,
  "longitude": 101.350292,
  "starRating": 2,
  "rating": 3.9,
  "ratingCount": 680,
  "priceFromPerNight": 856.83,
  "currency": "THB",
  "amenities": [
    "parking",
    "concierge",
    "pet-friendly"
  ],
  "createdAt": "2024-12-29T20:36:22.137Z"
}