HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
geo_request
A polymorphic container for geographic query requests.
This object uses the type field as a discriminator to switch between:
initial: Used for starting a new search with a geographic selector (BBox, Circle, etc.).follow_up: Used for paginating through existing results using acursor.
Fields
A polymorphic container for geographic query requests.
This object uses the type field as a discriminator to switch between:
initial: Used for starting a new search with a geographic selector (BBox, Circle, etc.).follow_up: Used for paginating through existing results using acursor.
type:initial (geo_request_initial) geo_request_initial
request_idA client-generated V4 UUID to track the lifecycle of the request.
123e4567-e89b-12d3-a456-426614174000typeMust be set to initial.
This field identifies the request as a new search query and determines the schema of the remaining fields.
initial · Example initialselectorThe geographic selector.
Best Practices for Efficiency:
- Interactive Use: For sub-second response times, utilize Circles < 50km or Bounding Boxes < 1 square degree.
- Asynchronous Crawling: Larger areas (up to system limits) should be used with
page_size>= 100 to minimize the number of round-trips.
Show fields
The geographic selector.
Best Practices for Efficiency:
- Interactive Use: For sub-second response times, utilize Circles < 50km or Bounding Boxes < 1 square degree.
- Asynchronous Crawling: Larger areas (up to system limits) should be used with
page_size>= 100 to minimize the number of round-trips.
type:iata (iata_code) iata_code
typeMust be set to iata.
This field identifies the selector as an airport code and determines the schema requirements.
iata · Example iataairport_codeThe 3-letter identifier (e.g., LAX, SFO). Must be strictly uppercase.
^[A-Z]{3}$ · Example JFKbounding_box (bounding_box) bounding_box
typeMust be set to bounding_box.
This field identifies the selector as a rectangular area.
bounding_box · Example bounding_boxsouthwestGeographic coordinates
Show fields
latitudeLatitude coordinate. Note: Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.
40.7128longitudeLongitude coordinate. Note: Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.
-74.006northeastGeographic coordinates
Show fields
latitudeLatitude coordinate. Note: Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.
40.7128longitudeLongitude coordinate. Note: Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.
-74.006polygon (geo_json_polygon) geo_json_polygon
typeMust be set to polygon.
This field identifies the selector as a GeoJSON geometry.
polygon · Example polygoncoordinatesAn array of linear ring coordinate arrays.
- Index 0: Exterior ring (boundary).
- Index 1+: Interior rings (holes).
centerGeographic coordinates
Show fields
latitudeLatitude coordinate. Note: Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.
40.7128longitudeLongitude coordinate. Note: Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.
-74.006circle (circle) circle
typeMust be set to circle.
This field identifies the selector as a radial area.
circle · Example circlecenterGeographic coordinates
Show fields
latitudeLatitude coordinate. Note: Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.
40.7128longitudeLongitude coordinate. Note: Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.
-74.006radiusThe distance measurement defining the search extent from the center.
Show fields
valueThe magnitude of the distance. When converted to meters, must be between 1000 m and 100 km (100,000 m) inclusive. The allowed numeric range depends on the unit (e.g., 1–100 km, 1000–100000 m).
5unitThe unit of measurement.
mkmmift · Example kmpage_sizeMaximum number of lodging results to return in a single response. Guardrails: * To prevent system degradation, a single query (including all subsequent pages) is limited to a maximum of 10,000 total results.
10filtersOptional filters to narrow results by property attributes. Filters are embedded in the pagination cursor — follow-up requests automatically apply the same filters without needing to re-send them.
Show fields
pet_friendlyIf true, only return pet-friendly properties. Applies to: hotels and vacation rentals.
truemin_star_ratingMinimum star rating (1-5). Applies to: hotels and vacation rentals.
3min_user_ratingMinimum user/guest rating on a 0-100 scale. Applies to: hotels and vacation rentals.
80amenitiesRequired amenities — all specified amenities must be present. Applies to: hotels and vacation rentals.
stay_datesCheck-in and check-out dates for filtering by availability. Applies to: hotels and vacation rentals.
Show fields
check_inCheck-in date (YYYY-MM-DD). Must be before check_out.
2026-07-01check_outCheck-out date (YYYY-MM-DD). Must be after check_in.
2026-07-05hotelFilters that apply only to hotel properties. Ignored for vacation-rental-only searches.
Show fields
max_star_ratingMaximum star rating (1-5). Useful for budget searches.
4price_rangeNightly price range filter. Both min and max are required when present. Assumed USD.
Show fields
minMinimum nightly price.
50maxMaximum nightly price.
300vacation_rentalFilters that apply only to vacation rental properties. Ignored for hotel-only searches.
Show fields
num_adultsNumber of adults.
2num_childrenNumber of children.
1min_bedroomsMinimum number of bedrooms.
2min_bathroomsMinimum number of bathrooms (supports half-baths, e.g. 1.5).
1.5min_bedsMinimum number of beds.
2lodging_typeTypes of lodgings to include in the search results. Defaults to ["hotel"] when omitted.
hotel: Hotel properties.vacation_rental: Vacation rental properties.
Vacation rental inventory is not available for all tenants.
Requesting vacation_rental for an unsupported tenant returns InvalidRequest.
follow_up (geo_request_follow_up) geo_request_follow_up
request_idA unique UUID (version 4) for this specific request. Note: This should be a new ID for the follow-up, distinct from the initial request ID, to allow for granular log tracking.
123e4567-e89b-12d3-a456-426614174000typeMust be set to follow_up.
This field identifies the request as a pagination continuation and determines the schema of the remaining fields.
follow_up · Example follow_upcursorThe opaque pagination token received from the previous 'GeoResponse'.
Stability Guidelines:
- Expiration: Tokens are short-lived and may expire; clients must not rely on a fixed validity window. In practice, most tokens remain usable for up to 24 hours, but this is not guaranteed and may change without notice.
- Statelessness: Tokens are strictly for sequential access; skipping pages is not supported.
- Result Shifts: While the search area is locked in the token, the specific lodgings returned may vary slightly if inventory is updated between page requests.
eyJvZmZzZXQiOjIwfQ==Used by
{
"request_id": "123e4567-e89b-12d3-a456-426614174000",
"type": "initial",
"selector": {
"type": "iata",
"airport_code": "JFK"
},
"page_size": 10,
"filters": {
"pet_friendly": true,
"min_star_rating": 3,
"min_user_rating": 80,
"amenities": [
"pool",
"wifi"
],
"stay_dates": {
"check_in": "2026-07-01",
"check_out": "2026-07-05"
},
"hotel": {
"max_star_rating": 4,
"price_range": {
"min": 50,
"max": 300
}
},
"vacation_rental": {
"num_adults": 2,
"num_children": 1,
"min_bedrooms": 2,
"min_bathrooms": 1.5,
"min_beds": 2
}
},
"lodging_type": [
"hotel"
]
}