API reference

HTS APIs

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

Schema

geo_query_location

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.

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.
Exactly one of the following, selected by type:
iata (iata_code) iata_code
type
string enum
required

Must be set to iata. This field identifies the selector as an airport code and determines the schema requirements.

Values iata · Example iata
airport_code
string
required

The 3-letter identifier (e.g., LAX, SFO). Must be strictly uppercase.

Length ≥ 3, ≤ 3 · Pattern ^[A-Z]{3}$ · Example JFK
bounding_box (bounding_box) bounding_box
type
string enum
required

Must be set to bounding_box. This field identifies the selector as a rectangular area.

Values bounding_box · Example bounding_box
southwest
coordinates
required

Geographic coordinates

Show fields
latitude
number
required

Latitude coordinate. Note: Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.

Range ≥ -90, ≤ 90 · Example 40.7128
longitude
number
required

Longitude coordinate. Note: Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.

Range ≥ -180, ≤ 180 · Example -74.006
northeast
coordinates
required

Geographic coordinates

Show fields
latitude
number
required

Latitude coordinate. Note: Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.

Range ≥ -90, ≤ 90 · Example 40.7128
longitude
number
required

Longitude coordinate. Note: Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.

Range ≥ -180, ≤ 180 · Example -74.006
polygon (geo_json_polygon) geo_json_polygon
type
string enum
required

Must be set to polygon. This field identifies the selector as a GeoJSON geometry.

Values polygon · Example polygon
coordinates
array of array of array of number
required

An array of linear ring coordinate arrays.

  • Index 0: Exterior ring (boundary).
  • Index 1+: Interior rings (holes).
Items ≥ 1
center
coordinates

Geographic coordinates

Show fields
latitude
number
required

Latitude coordinate. Note: Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.

Range ≥ -90, ≤ 90 · Example 40.7128
longitude
number
required

Longitude coordinate. Note: Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.

Range ≥ -180, ≤ 180 · Example -74.006
circle (circle) circle
type
string enum
required

Must be set to circle. This field identifies the selector as a radial area.

Values circle · Example circle
center
coordinates
required

Geographic coordinates

Show fields
latitude
number
required

Latitude coordinate. Note: Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.

Range ≥ -90, ≤ 90 · Example 40.7128
longitude
number
required

Longitude coordinate. Note: Precision is capped at 6 decimal places (~11cm). Higher precision is truncated.

Range ≥ -180, ≤ 180 · Example -74.006
radius
Radius
required

The distance measurement defining the search extent from the center.

Show fields
value
number
required

The 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).

Range ≥ 0, ≤ 500000 · Example 5
unit
string enum
required

The unit of measurement.

Values mkmmift · Example km
Example
{
  "type": "iata",
  "airport_code": "JFK"
}