Hospitality Developer Migration Guide · Zero Container Cold Starts
Migrate from Async Hotel Scrapers to Synchronous Nightly Rates & Reviews JSON.
Replace 30–60s headless browser containers and residential proxy bills with one synchronous GET request to https://api.hotelpricesapi.com/v1/hotels/search at $0.08–$0.20 per 1,000 hotels.
Scraper Input JSON → Synchronous REST Endpoints
| Scraper Input Field | Direct Sync Endpoint | Query Parameters | Typical Latency | Exact Unit Cost |
|---|---|---|---|---|
| search: "Paris", checkIn: "2026-12-15", checkOut: "2026-12-17", adults: 2 | GET /v1/hotels/search | ?city=Paris&checkin=2026-12-15&checkout=2026-12-17&adults=2¤cy=USD | <1.4s sync JSON (24 ms warm cache) | 2 Credits / hotel ($0.08–$0.20 / 1K; 0 if empty) |
| hotelId: "59015", includeRooms: true, includeAmenities: true | GET /v1/hotels/detail | ?hotel_id=59015&checkin=2026-12-15&checkout=2026-12-17¤cy=USD | <1.4s sync JSON (21 ms warm cache) | 10 Credits / dossier ($0.40–$1.00 / 1K; 0 on 404) |
| hotelId: "59015", maxReviews: 25 | GET /v1/hotels/reviews | ?hotel_id=59015&page=1&limit=10 | <1.3s sync JSON (22 ms warm cache) | 2 Credits / review (0 if empty) |
| query: "Kyoto" | GET /v1/locations/search | ?query=Kyoto | <1.0s sync JSON (18 ms permanent cache) | 2 Credits / call (0 if empty) |
5-Minute Drop-In Code
import os, requests
API_KEY = os.environ["HOTELPRICESAPI_KEY"] # hp_live_...
HEADERS = {"x-api-key": API_KEY}
# 1. Search Paris hotel nightly rates synchronously (no container boot!)
search = requests.get(
"https://api.hotelpricesapi.com/v1/hotels/search",
params={"city": "Paris", "checkin": "2026-12-15", "checkout": "2026-12-17", "adults": 2, "currency": "USD"},
headers=HEADERS,
timeout=20,
).json()["data"]["items"]
# 2. Fetch full room blocks, cancellation policy & amenities
dossier = requests.get(
"https://api.hotelpricesapi.com/v1/hotels/detail",
params={"hotel_id": search[0]["hotel_id"], "checkin": "2026-12-15", "checkout": "2026-12-17", "currency": "USD"},
headers=HEADERS,
timeout=20,
).json()["data"]
print(dossier["name"], dossier["address"])curl -sS "https://api.hotelpricesapi.com/v1/hotels/search?city=Paris&checkin=2026-12-15&checkout=2026-12-17&adults=2¤cy=USD" \
-H "x-api-key: hp_live_YOUR_API_KEY"1-Click Remote OAuth 2.1 MCP Connector
Connect Claude Web or ChatGPT Connectors directly to HotelPrices API via OAuth 2.1 PKCE:
https://mcp.hotelpricesapi.com/v1/mcp