White-label APIHotels
Search Hotels
Search available hotels for user travel plans.
Search Hotels
Search for hotels available for your travel dates. Results stream in progressively so you can show hotels to the user as they arrive.
Request
POST /v1/hotel/search/stream
Body:
| Field | Type | Required | Description |
|---|---|---|---|
destination | string | yes | City code or airport code. |
check_in | string | yes | ISO-8601 date. |
check_out | string | yes | ISO-8601 date. |
guests | object | yes | Number of adults, children, rooms. |
currency | string | no | ISO-4217. Uses profile default if omitted. |
Response
Hotel results stream via Server-Sent Events (SSE), with each event containing a single hotel result.
Try it
Sandbox-only. Try-it requests target
https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us.POST
/v1/hotel/search/streamSandbox credentials
Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.
curl -X POST 'https://cloud.vanitypass.com/v1/hotel/search/stream' \
-H 'Content-Type: application/json' \
-H 'X-Environment: Sandbox' \
-d '{"destination":"CDG","check_in":"2026-07-01","check_out":"2026-07-05","guests":{"adults":1,"rooms":1}}'