Skip to content
HotelPricesAPI
All endpoints

Search live global hotel prices, availability, and nightly rate breakdown

GET/v1/hotels/search· Updated 2026-11-26

Direct Answer · Hospitality Engineering Summary

GET /v1/hotels/search returns real-time global hotel availability, total stay price, computed price_per_night, excluded taxes, star rating, review_score, coordinates, check-in/check-out windows, and high-res photos for any city (?city=Paris) or destination token (?location_id=...). Top 50 global cities are pre-seeded so city rate sweeps cost 1 API call instead of 2, billed at 2 Credits ($0.0002) per hotel returned.

Caching, Latency & Scope Boundaries

  • →Returns up to 20 normalized available hotels per page with computed price_per_night and excluded_taxes; call GET /v1/hotels/detail?hotel_id=... for room-by-room rate blocks and cancellation terms.
  • →Warm PostgreSQL 16 + Redis DB 8 (hp:) cache serves repeat city/date queries in 18–35ms (15-minute TTL for live rate parity); pass ?fresh=1 on paid plans to force a live upstream rate pull.
  • →Sold-out date windows returning 0 properties strictly deduct 0 Credits.

Returns up to 20 available hotels per call with normalized nightly rate, total stay price, taxes & fees, all-inclusive price, guest review score, star class, GPS coordinates, high-res photo, and check-in window. Top 50 cities cost 1 upstream lookup with 15-minute fresh result caching. Cost: 2 Credits / hotel returned ($0.20/1K).

Parameters

  • citystring

  • location_idstring

  • checkinstring

  • checkoutstring

  • adultsinteger (1 to 12)

  • roomsinteger (1 to 8)

  • currencystring

  • limitinteger (1 to 20)

Example Request (cURL / Python / JavaScript)

curl "https://api.hotelpricesapi.com/v1/hotels/search?city=Paris&checkin=2026-12-15&checkout=2026-12-17&adults=2&currency=USD" \
  -H "x-api-key: hp_live_your_api_key"

Live Response Preview

{
  "code": 0,
  "provider": "https://hotelpricesapi.com",
  "status": "ok",
  "msg": "success",
  "data": {
    "city": "Paris",
    "checkin": "2026-12-15",
    "checkout": "2026-12-17",
    "nights": 2,
    "currency": "USD",
    "count": 1,
    "hotels": [
      {
        "hotel_id": "59015",
        "name": "Ibis Styles Paris Batignolles",
        "city": "Paris",
        "country_code": "fr",
        "stars": 3,
        "review_score": 8.3,
        "review_score_word": "Very Good",
        "review_count": 3216,
        "checkin_date": "2026-12-15",
        "checkout_date": "2026-12-17",
        "nights": 2,
        "price_total": 304.14,
        "price_per_night": 152.07,
        "taxes_and_fees": 54.63,
        "price_all_inclusive": 358.77,
        "currency": "USD",
        "coordinates": {
          "latitude": 48.889853,
          "longitude": 2.321209
        },
        "photo_url": "https://cf.bstatic.com/xdata/images/hotel/max1024x768/753148428.jpg?k=f66edc329a17da900502ecfe7770775c7840ab8a9faf90c1635227c3f5fe4bbf&o=",
        "checkin_window": {
          "from": "14:00",
          "until": "00:00"
        },
        "checkout_window": {
          "from": "00:00",
          "until": "12:00"
        }
      }
    ]
  }
}

Response Fields

Normalized hotel availability and nightly rates

Status Codes

200
Normalized hotel availability and nightly rates