example-data.com
Menu
Browse docs and collections

hotels

hotels

Page 2 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": 25,
      "name": "Physical Suites Kaseyville",
      "slug": "physical-suites-kaseyville-25",
      "brand": "Ritz-Carlton",
      "countryAlpha2": "IN",
      "city": "Kaseyville",
      "address": "4755 Gavin Cliff",
      "latitude": -2.103434,
      "longitude": 2.464975,
      "starRating": 4,
      "rating": 2.4,
      "ratingCount": 110,
      "priceFromPerNight": 729.38,
      "currency": "THB",
      "amenities": [
        "pool",
        "restaurant",
        "business-center",
        "beach-access"
      ],
      "createdAt": "2024-12-29T13:08:21.744Z"
    },
    {
      "id": 26,
      "name": "Legal Resort Vonside",
      "slug": "legal-resort-vonside-26",
      "brand": "Best Western",
      "countryAlpha2": "SE",
      "city": "Vonside",
      "address": "6310 Robb Flat",
      "latitude": 48.450745,
      "longitude": 7.056145,
      "starRating": 2,
      "rating": 3.3,
      "ratingCount": 688,
      "priceFromPerNight": 818.76,
      "currency": "AUD",
      "amenities": [
        "laundry",
        "business-center"
      ],
      "createdAt": "2024-06-22T21:54:20.293Z"
    },
    {
      "id": 27,
      "name": "Late Hotel Fort Amandaborough",
      "slug": "late-hotel-fort-amandaborough-27",
      "brand": "Marriott",
      "countryAlpha2": "CL",
      "city": "Fort Amandaborough",
      "address": "9756 Center Avenue",
      "latitude": 41.932075,
      "longitude": -106.520394,
      "starRating": 5,
      "rating": 4.7,
      "ratingCount": 3389,
      "priceFromPerNight": 508.7,
      "currency": "AUD",
      "amenities": [
        "pet-friendly",
        "room-service",
        "business-center",
        "casino",
        "parking",
        "laundry"
      ],
      "createdAt": "2025-03-17T11:54:18.422Z"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 150,
    "totalPages": 7
  },
  "links": {
    "self": "/api/v1/hotels?page=2&limit=24",
    "first": "/api/v1/hotels?page=1&limit=24",
    "last": "/api/v1/hotels?page=7&limit=24",
    "next": "/api/v1/hotels?page=3&limit=24",
    "prev": "/api/v1/hotels?page=1&limit=24"
  }
}