example-data.com
Menu
Browse docs and collections

hotels

hotels

Page 7 of 7.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/hotels?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/hotels?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/hotels";

const res = await fetch(
  "https://example-data.com/api/v1/hotels?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Hotel>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/hotels",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 145,
      "name": "Frugal Inn Kellenfort",
      "slug": "frugal-inn-kellenfort-145",
      "brand": "Wyndham",
      "countryAlpha2": "VN",
      "city": "Kellenfort",
      "address": "1227 Emmy Points",
      "latitude": -4.465063,
      "longitude": 104.022527,
      "starRating": 4,
      "rating": 4.1,
      "ratingCount": 797,
      "priceFromPerNight": 794.44,
      "currency": "SGD",
      "amenities": [
        "pool",
        "wifi",
        "restaurant",
        "beach-access",
        "room-service"
      ],
      "createdAt": "2024-08-08T06:31:59.856Z"
    },
    {
      "id": 146,
      "name": "Present Suites Highland",
      "slug": "present-suites-highland-146",
      "brand": "Best Western",
      "countryAlpha2": "KE",
      "city": "Highland",
      "address": "204 Missouri Wall",
      "latitude": 52.230575,
      "longitude": 148.275651,
      "starRating": 2,
      "rating": 4.8,
      "ratingCount": 4433,
      "priceFromPerNight": 1080.56,
      "currency": "GBP",
      "amenities": [
        "room-service",
        "pool",
        "spa",
        "laundry"
      ],
      "createdAt": "2026-04-06T04:20:15.736Z"
    },
    {
      "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"
    }
  ],
  "meta": {
    "page": 7,
    "limit": 24,
    "total": 150,
    "totalPages": 7
  },
  "links": {
    "self": "/api/v1/hotels?page=7&limit=24",
    "first": "/api/v1/hotels?page=1&limit=24",
    "last": "/api/v1/hotels?page=7&limit=24",
    "next": null,
    "prev": "/api/v1/hotels?page=6&limit=24"
  }
}