API reference · Hotels, cars and cruises
Search hotels
POST
/v1/hotels/searchScope: searchTest mode: sample dataStreams (SSE)
Searches hotel prices for a city and dates. Each result carries the cash price and, where we know it, the points price and its cents-per-point value.
- URL
- https://api.pointifytravels.com/v1/hotels/search
- Access
- Any key. This endpoint does not need a scope.
- Test keys
- Sample data in the live response shape. Never calls a supplier. Free, up to 60 requests a minute. Test mode
- Live keys
- Each successful call counts toward your daily quota. Limits
Parameters
Body parameters
Sent as a JSON object with Content-Type: application/json.
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
destination | body | string | Required | - | City or area, e.g. "Tokyo". |
check_in | body | string (YYYY-MM-DD) | Required | - | Check-in date. |
check_out | body | string (YYYY-MM-DD) | Required | - | Check-out date. |
guests | body | integer | Optional | 1 | Guests. |
rooms | body | integer | Optional | 1 | Rooms. |
search_type | body | string | Optional | both | Cash, points or both. Allowed values: cashpointsboth |
Request example
Request
curl -N -X POST "https://api.pointifytravels.com/v1/hotels/search" \
-H "Authorization: Bearer $POINTIFY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"destination":"Tokyo","check_in":"2027-01-23","check_out":"2027-01-26","guests":2}'Response
A stream of Server-Sent Events. Each event is an event: line and a data: line with JSON, followed by a blank line. complete always arrives last. Reading streams
| Event | Meaning |
|---|---|
progress | A source started or finished. |
result | One hotel (see the example). |
complete | Always last: { total_results }. |
Example events
text/event-stream
event: progress
data: {"source":"google_hotels","status":"searching","result_count":0}
event: result
data: {"hotel_name":"Park Hyatt Tokyo","chain":"Hyatt","star_rating":5,"review_score":9.1,"price_cash":640,"price_points":30000,"currency":"USD","cpp_value":2.13,"source":"google_hotels","room_type":"King room","amenities":["wifi","breakfast"],"check_in":"2027-01-23","check_out":"2027-01-26"}
event: complete
data: {"total_results":38}
Errors use the shape in Errors. Invalid input returns 422 with a list of problems.
Try it
Try it
Use a test key. A live key uses your daily quota.No key yet? Create a test key in the dashboard. Test keys are free on every plan.
Path and query values go in the URL; everything else is sent as the JSON body.
POST
https://api.pointifytravels.com/v1/hotels/search