# StableTravel FlightAware Airport Canonical Code Lookup

> StableTravel FlightAware Airport Canonical Code Lookup is a paid API for AI agents from stabletravel.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Returns canonical airport code data (LID, IATA, ICAO) for a given airport identifier via FlightAware

## Facts

- Endpoint: GET https://stabletravel.dev/api/flightaware/airports/id/canonical
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stabletravel-flightaware-airport-canonical-code-lookup-355e784d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jqWWQCBXsN_wgw_mQ2LPx

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-airport-canonical-code-lookup-355e784d
```

Example prompt: What are the canonical airport codes — LID, IATA, and ICAO — for Miami International Airport (KMIA)?

## When to prefer this

Use this endpoint when you need to resolve or normalize an airport identifier to its canonical set of codes (LID, IATA, ICAO) via FlightAware data. Prefer this over general aviation APIs when you need pay-per-request access without subscription overhead, or when building a pipeline that requires authoritative FlightAware airport identifiers.

## Known failure modes

- Invalid or unrecognized airport code returns an error or empty result
- Airport code format mismatch (e.g. providing IATA when ICAO expected) may yield no result
- Payment failure (x402 micropayment not completed) blocks the request
- Rate limiting or service unavailability on the FlightAware backend

## How this service works

Pay-per-request access to flights, award availability, hotels, activities, and transfers. No auth, no subscriptions.

## Output

A JSON object containing the airport's canonical code identifiers: code_lid (local identifier), code_iata (IATA 3-letter code), code_icao (ICAO 4-letter code), and airport_code (primary FlightAware code). For example, for JFK: {code_lid: 'JFK', code_iata: 'JFK', code_icao: 'KJFK', airport_code: 'KJFK'}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "code_lid": "JFK",
  "code_iata": "JFK",
  "code_icao": "KJFK",
  "airport_code": "KJFK"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stabletravel-flightaware-airport-canonical-code-lookup-355e784d/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)
