# StableTravel FlightAware Canonical Flight ID Lookup

> StableTravel FlightAware Canonical Flight ID 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).

Resolves a flight identifier (IATA, ICAO, registration, or FlightAware ID) to its canonical FlightAware flight ID and normalized ident fields

## Facts

- Endpoint: GET https://stabletravel.dev/api/flightaware/flights/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-canonical-flight-id-lookup-c6ca762f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UDfiGHgywhZgenq9-cPYD

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-canonical-flight-id-lookup-c6ca762f
```

Example prompt: What is the FlightAware canonical flight ID and IATA/ICAO idents for American Airlines flight AA100 — look it up by its fa_flight_id designator.

## When to prefer this

Use this endpoint when you need to resolve or normalize a flight identifier (IATA, ICAO, registration, or FlightAware ID) into FlightAware's canonical fa_flight_id before making downstream FlightAware API calls for arrivals, departures, or delay data. Prefer this over searching by flight number when you need the precise fa_flight_id used across the StableTravel FlightAware ecosystem.

## Known failure modes

- Flight identifier not found — returns null fields or 404
- Invalid ident_type enum value causes bad request
- Payment of 0.002 USDC not fulfilled — 402 response blocking access
- Ambiguous designator matches multiple flights — may return unexpected canonical result
- Malformed flight ID returns empty or error response

## How this service works

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

## Output

Returns a JSON object with the canonical ident (e.g. 'AAL100'), IATA ident (e.g. 'AA100'), ICAO ident (e.g. 'AAL100'), and the FlightAware fa_flight_id string (e.g. 'AAL100-1733068800-airline-0001') for the queried flight.

## 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": {
      "ident_type": {
       "enum": [
        "fa_flight_id",
        "designator",
        "registration"
       ],
       "type": "string",
       "description": "Type of flight identifier"
      },
      "country_code": {
       "type": "string",
       "description": "Country code filter"
      }
     },
     "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",
     "properties": {
      "ident": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ]
      },
      "ident_iata": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ]
      },
      "ident_icao": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ]
      },
      "fa_flight_id": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ]
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ident": "AAL100",
  "ident_iata": "AA100",
  "ident_icao": "AAL100",
  "fa_flight_id": "AAL100-1733068800-airline-0001"
 }
}
```

## More

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