# StableTravel FlightAware Nearby Airports

> StableTravel FlightAware Nearby Airports is a paid API for AI agents from stabletravel.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-14).

Returns a list of airports near a given airport, sorted by distance, with full airport metadata including IATA/ICAO codes, coordinates, and timezone.

## Facts

- Endpoint: GET https://stabletravel.dev/api/flightaware/airports/id/nearby
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stabletravel-flightaware-nearby-airports-d52e0697
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e-WUiZuefxZob3YnooFaT

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 stabletravel-flightaware-nearby-airports-d52e0697
```

Example prompt: Find all airports within 75 miles of KJFK — include small airfields too, not just IAP airports.

## When to prefer this

Use this endpoint when you need to discover airports geographically surrounding a known airport, such as when looking for alternate landing options, nearby regional airports, or building a radius-based airport map. Prefer this over a general airport search when you have a specific reference airport ID and want distance/heading data relative to it.

## Known failure modes

- Missing or invalid airport ID in the URL path returns a 404 or error response
- Radius value out of acceptable range may return an empty airports array or validation error
- Pagination cursor mismatch or expiry returns no results or an error
- Exceeding max_pages limit truncates results silently
- Network or upstream FlightAware API outage returns a 5xx error
- Insufficient payment (x402) results in a 402 Payment Required response before data is returned

## How this service works

Get airports near a specific airport

## Output

An array of airport objects each containing airport_code, name, city, state, country_code, IATA/ICAO/LID codes, latitude, longitude, elevation, timezone, distance from the reference airport, compass heading, Wikipedia URL, and any alternative airport entries. Also includes pagination links for retrieving additional pages.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "radius": 50,
   "only_iap": false,
   "max_pages": 1
  }
 }
}
```

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "properties": {
      "cursor": {
       "type": "string"
      },
      "radius": {
       "type": "number"
      },
      "only_iap": {
       "type": "boolean"
      },
      "max_pages": {
       "type": "number"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "airports"
     ],
     "properties": {
      "links": {
       "type": "object",
       "properties": {
        "next": {
         "anyOf": [
          {
           "type": "string"
          },
          {
           "type": "null"
          }
         ]
        }
       },
       "additionalProperties": false
      },
      "airports": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "airport_code",
         "name",
         "distance",
         "heading"
        ],
        "properties": {
         "city": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "name": {
          "type": "string"
         },
         "type": {
          "type": "string"
         },
         "state": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "heading": {
          "type": "number"
         },
         "code_lid": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "distance": {
          "type": "number"
         },
         "latitude": {
          "anyOf": [
           {
            "type": "number"
       
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "airports": [
   {
    "city": "New York",
    "name": "John F. Kennedy International Airport",
    "type": "Airport",
    "state": "NY",
    "heading": 45,
    "code_lid": "JFK",
    "distance": 12.5,
    "latitude": 40.6413,
    "timezone": "America/New_York",
    "code_iata": "JFK",
    "code_icao": "KJFK",
    "elevation": 13,
    "longitude": -73.7781,
    "airport_code": "KJFK",
    "country_code": "US"
   }
  ],
  "num_pages": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stabletravel-flightaware-nearby-airports-d52e0697/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stabletravel.dev](https://www.zero.xyz/host/stabletravel.dev/llms.txt)
