# FlightAware Airport Directory

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

Returns a paginated list of all airports worldwide with their codes, coordinates, and metadata via the FlightAware API.

## Facts

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

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 flightaware-f1ef7c4c
```

Example prompt: Can you pull the full list of airports from FlightAware — I want to browse all available airports with their IATA and ICAO codes, coordinates, and city info?

## When to prefer this

Use this endpoint when you need a comprehensive enumeration of all airports in the FlightAware database, especially when you need to build a local lookup table, populate a dropdown, or cross-reference airport codes with geographic metadata. Prefer this over a single-airport lookup when you need bulk data rather than details on one specific airport.

## Known failure modes

- Invalid cursor token returns an error or empty result
- max_pages value out of range may cause unexpected truncation
- Network timeout if the full airport database is large
- Downstream FlightAware API outage returns error response
- Payment failure (x402) if USDC balance is insufficient

## How this service works

List all airports.

## Output

A paginated array of airport objects, each containing airport_code, name, city, state, country_code, IATA code, ICAO code, latitude, longitude, elevation, timezone, Wikipedia URL, airport type, and alternative airports. Also includes pagination links for fetching subsequent pages.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "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"
      },
      "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"
        ],
        "properties": {
         "city": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "name": {
          "type": "string"
         },
         "type": {
          "type": "string"
         },
         "state": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "code_lid": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "latitude": {
          "anyOf": [
           {
            "type": "number"
           },
           {
            "type": "null"
           }
          ]
         },
         "timezone": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
        
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "airports": [
   {
    "city": "New York",
    "name": "John F. Kennedy International Airport",
    "type": "Airport",
    "state": "NY",
    "code_lid": "JFK",
    "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/flightaware-f1ef7c4c/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)
