# Airports Reference – Nearest Airports by Coordinates

> Airports Reference – Nearest Airports by Coordinates is a paid API for AI agents from airports-reference.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Returns a ranked list of airports nearest to a given latitude/longitude, with distance, bearing, IATA/ICAO codes, type, and optional filters for size and scheduled service.

## Facts

- Endpoint: GET https://airports-reference.x402tookit.com/airports-near?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/airports-reference-nearest-airports-by-coordinates-c68da773
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XT_jnofyOScNey4xd489a

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability airports-reference-nearest-airports-by-coordinates-c68da773
```

Example prompt: Find me all airports within 200 km of latitude 51.5074, longitude -0.1278 — only show large or medium airports that have scheduled service, up to 15 results.

## When to prefer this

Use this endpoint when you need to discover and rank airports by proximity to a geographic coordinate — ideal for travel planning, logistics, flight routing, or any use case where you have a lat/lon and need nearby airport options. Prefer this over a code-lookup endpoint when you don't already know the airport identifier. The size and scheduled-service filters make it especially useful for finding only commercially relevant airports.

## Known failure modes

- Missing required lat or lon parameters returns a validation error
- lat outside -90 to 90 or lon outside -180 to 180 returns an error
- radiusKm outside 1–1000 range returns a validation error
- limit outside 1–25 range returns a validation error
- No airports found within the specified radius returns an empty airports array
- Invalid type filter value (not any/large/medium/small) may return an error or be ignored
- Payment failure (insufficient USDC balance or x402 auth issue) returns a 402 error

## How this service works

Nearest airports to a latitude and longitude with distance, bearing, type and codes; filter by size or scheduled service.

## Output

A JSON array of airports sorted by distance from the query point, each entry containing the airport name, IATA code, ICAO code, type (large/medium/small/heliport etc.), distance in km and nautical miles, bearing, latitude, longitude, elevation, country, region, and whether scheduled service is available. Also includes a summary and the echoed query parameters.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "description": "Latitude, -90 to 90"
      },
      "lon": {
       "type": "number",
       "description": "Longitude, -180 to 180"
      },
      "type": {
       "type": "string",
       "description": "any (default), large, medium or small: that size or bigger"
      },
      "limit": {
       "type": "integer",
       "description": "Results 1 to 25 (default 10)"
      },
      "radiusKm": {
       "type": "integer",
       "description": "Search radius 1 to 1000 km (default 150)"
      },
      "scheduled": {
       "type": "string",
       "description": "true to list only airports with scheduled service"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "query": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "lat": {
         "type": [
          "null",
          "number"
         ]
        },
        "lon": {
         "type": [
          "null",
          "number"
         ]
        },
        "type": {
         "type": [
          "null",
          "string"
         ]
        },
        "radiusKm": {
         "type": [
          "null",
          "number"
         ]
        },
        "scheduledOnly": {
         "type": [
          "boolean",
          "null"
         ]
        }
       }
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
   
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/airports-reference-nearest-airports-by-coordinates-c68da773/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from airports-reference.x402tookit.com](https://www.zero.xyz/host/airports-reference.x402tookit.com/llms.txt)
