example-data.com
Menu
Browse docs and collections

hotels

hotels

Page 4 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": 73,
      "name": "Subtle Inn East Antonette",
      "slug": "subtle-inn-east-antonette-73",
      "brand": null,
      "countryAlpha2": "DE",
      "city": "East Antonette",
      "address": "2087 Eugenia Shore",
      "latitude": 40.698981,
      "longitude": 38.80245,
      "starRating": 4,
      "rating": 4.7,
      "ratingCount": 875,
      "priceFromPerNight": 1836.77,
      "currency": "TRY",
      "amenities": [
        "laundry",
        "concierge",
        "wifi",
        "room-service",
        "parking"
      ],
      "createdAt": "2024-05-28T09:28:53.243Z"
    },
    {
      "id": 74,
      "name": "Measly Resort Hillsboro",
      "slug": "measly-resort-hillsboro-74",
      "brand": "Hilton",
      "countryAlpha2": "ES",
      "city": "Hillsboro",
      "address": "889 Annette Squares",
      "latitude": -19.965426,
      "longitude": 8.931242,
      "starRating": 2,
      "rating": 4.6,
      "ratingCount": 4168,
      "priceFromPerNight": 1371.91,
      "currency": "AED",
      "amenities": [
        "beach-access",
        "pet-friendly",
        "airport-shuttle",
        "laundry",
        "restaurant",
        "spa"
      ],
      "createdAt": "2026-02-09T04:40:29.228Z"
    },
    {
      "id": 75,
      "name": "Honorable Palace Zemlakchester",
      "slug": "honorable-palace-zemlakchester-75",
      "brand": "IHG",
      "countryAlpha2": "AE",
      "city": "Zemlakchester",
      "address": "4375 Kunde Tunnel",
      "latitude": -31.692073,
      "longitude": 121.435604,
      "starRating": 2,
      "rating": 3.5,
      "ratingCount": 2914,
      "priceFromPerNight": 1826.22,
      "currency": "EUR",
      "amenities": [
        "pool",
        "wifi",
        "gym",
        "bar",
        "spa",
        "laundry"
      ],
      "createdAt": "2024-09-11T18:54:53.893Z"
    }
  ],
  "meta": {
    "page": 4,
    "limit": 24,
    "total": 150,
    "totalPages": 7
  },
  "links": {
    "self": "/api/v1/hotels?page=4&limit=24",
    "first": "/api/v1/hotels?page=1&limit=24",
    "last": "/api/v1/hotels?page=7&limit=24",
    "next": "/api/v1/hotels?page=5&limit=24",
    "prev": "/api/v1/hotels?page=3&limit=24"
  }
}