example-data.com
Menu
Browse docs and collections

Overview

hotels / #44

Those Inn Winston-Salem

hotel · Winston-Salem · $423.3+/night · ★ 3.5 (4108)

97548 Roberta Knoll

pet-friendlyconciergebusiness-centerlaundrybarparkinggymcasino

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 44,
  "name": "Those Inn Winston-Salem",
  "slug": "those-inn-winston-salem-44",
  "brand": null,
  "countryAlpha2": "US",
  "city": "Winston-Salem",
  "address": "97548 Roberta Knoll",
  "latitude": -44.886084,
  "longitude": 46.232442,
  "starRating": 2,
  "rating": 3.5,
  "ratingCount": 4108,
  "priceFromPerNight": 423.3,
  "currency": "JPY",
  "amenities": [
    "pet-friendly",
    "concierge",
    "business-center",
    "laundry",
    "bar",
    "parking",
    "gym",
    "casino"
  ],
  "createdAt": "2025-03-14T10:41:26.908Z"
}