API reference

HTS APIs

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

Schema

bounding_box

A rectangular geographic area defined by southwest and northeast corners.

Coordinate System: WGS 84 (EPSG:4326). Note: This object uses Key-Value pairs, unlike GeoJSON arrays.

Constraints:

  • Orientation: The southwest.latitude must be less than or equal to northeast.latitude.
  • Size: The total area (calculated as (lat_diff * lon_diff)) must not exceed 10 square degrees (roughly 330km x 330km at the equator).
  • Aspect Ratio: To prevent extreme "sliver" queries, the ratio between the height and width (or vice-versa) should not exceed 100:1.
  • Anti-Meridian: Wrapping across the 180th meridian is currently not supported; southwest.longitude must be less than or equal to northeast.longitude.

Fields

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
Example
{
  "type": "bounding_box",
  "southwest": {
    "latitude": 40.7128,
    "longitude": -74.006
  },
  "northeast": {
    "latitude": 40.7128,
    "longitude": -74.006
  }
}