# FlightAware Airport Details by Code

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

Returns detailed information for a specific airport given its airport code, including location, identifiers, timezone, and related links.

## Facts

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

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-19c69e05
```

Example prompt: Can you pull up the full details for Miami International Airport — I need its IATA and ICAO codes, coordinates, timezone, and any nearby alternative airports?

## When to prefer this

Use this endpoint when you need structured metadata about a specific airport — including its coordinates, timezone, official codes (IATA/ICAO/LID), and nearby alternatives. Prefer this over general flight search endpoints when the goal is airport identification or enrichment rather than finding flights. Best suited for agents needing to resolve an airport code to human-readable details or geospatial data.

## Known failure modes

- Invalid or unrecognized airport code returns an error or empty result
- Airport code for a very small or private airfield may return null for many fields
- Network timeout from upstream FlightAware API
- Payment failure (x402 USDC payment not processed) returns 402 status
- Malformed airport code (wrong format) results in 400 bad request

## How this service works

Get detailed information for a specific airport by its code

## Output

A JSON object containing the airport's name, airport code, city, state, country code, latitude, longitude, elevation, timezone, IATA code, ICAO code, LID code, a Wikipedia URL, a link to the airport's flights page, and a list of alternative nearby airports with their codes and city names.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {}
 }
}
```

## 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": {},
     "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": [
      "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"
        }
       ]
      },
      "wiki_url": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ]
      },
      "code_iata": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ]
      },
      "code_icao": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ]
      },
      "elevation": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ]
      },
      "longitude": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ]
      }
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/flightaware-19c69e05/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)
