API reference

HTS APIs

Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.

Schema

geo_response

Paginated response containing matching lodging identifiers.

Fields

lodging_ids
array of lodging_id
required
deprecated

Deprecated: use lodgings instead, which carries the same lodgings in the same order plus per-lodging data. A list of unique identifiers for lodging properties found within the geographic search area.

total_results
integer
required

The total count of all matching lodgings across all pages.

Example 150
has_more
boolean
required

Indicates whether more results are available beyond the current page.

Example true
response_id
string · uuid
required

Unique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.

Example 123e4567-e89b-12d3-a456-426614174000
lodgings
array of GeoResult
required

The lodgings found within the geographic search area, in result (sort) order. Always present, with exactly one entry per matching lodging on this page — the same membership and order as the deprecated lodging_ids. An entry is never omitted because its distance is unknown; distance is simply absent in that case.

Show fields
Array of GeoResult · The lodgings found within the geographic search area, in result (sort) order. Always present, with exactly one entry per matching lodging on this page — the same membership and order as the deprecated `lodging_ids`. An entry is never omitted because its distance is unknown; `distance` is simply absent in that case.
lodging_id
string
required

Unique identifier for the lodging

Example 123e4567-e89b-12d3-a456-426614174000
distance
GeoResultDistance

Geodesic straight-line distance (WGS84 ellipsoid) from the search's resolved reference location to the lodging's coordinates. Not a travel (driving/walking) distance. Omitted when unknown for this lodging or when the search has no resolvable reference location.

Show fields
value
number
required

The magnitude of the distance.

Example 1834.6
unit
string enum
required

The unit of measurement. Currently always meters; other units may be added later (handle unknown values gracefully, per Forward Compatibility).

Values m · Example m
next_cursor
string

An opaque string used to fetch the next set of results. If null or omitted, no further results are available.

Example eyJvZmZzZXQiOjIwfQ==

Used by

PUT/api/lodging/v1/geo/queryGet lodgings by geographic location
Example
{
  "total_results": 150,
  "has_more": true,
  "next_cursor": "eyJvZmZzZXQiOjIwfQ==",
  "response_id": "123e4567-e89b-12d3-a456-426614174000",
  "lodgings": [
    {
      "lodging_id": "123e4567-e89b-12d3-a456-426614174000",
      "distance": {
        "value": 1834.6,
        "unit": "m"
      }
    }
  ]
}