Catalog/maps-nearest-airport

Maps

Nearest airport to coordinates API

The closest airports to a lat/lng from the OurAirports open dataset (~75k airports): name, IATA/ICAO codes, type, and great-circle distance. The dataset is the moat — an agent doesn't know airport coordinates. Answers 'nearest airport to these coords', 'closest airport', 'what airport serves this location'.

Price$0.01per request
MethodPOST
Route/v1/maps/nearest-airport
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache86400s public
mapsairportiataicaonearestaviationourairportslogistics
API URLhttps://x402.hexl.dev/v1/maps/nearest-airport
Integration docs
Example request
{
  "latitude": 40.6413,
  "longitude": -73.7781,
  "limit": 1
}
Example response
{
  "latitude": 40.6413,
  "longitude": -73.7781,
  "airports": [
    {
      "name": "John F Kennedy International Airport",
      "iata": "JFK",
      "icao": "KJFK",
      "type": "large_airport",
      "municipality": "New York",
      "country": "US",
      "distanceKm": 0.4,
      "latitude": 40.6398,
      "longitude": -73.7789
    }
  ]
}
Input schema
{
  "type": "object",
  "required": [
    "latitude",
    "longitude"
  ],
  "properties": {
    "latitude": {
      "type": "number",
      "examples": [
        40.6413
      ]
    },
    "longitude": {
      "type": "number",
      "examples": [
        -73.7781
      ]
    },
    "limit": {
      "type": "number",
      "default": 3
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}