# FlightAware Advanced Flight Search

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

Search for flights using FlightAware's advanced query syntax to filter by operator, route, status, aircraft type, and more.

## Facts

- Endpoint: GET https://stabletravel.dev/api/flightaware/flights/search/advanced
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/flightaware-751fe70d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hPd3m8Wi9C1sQdPiDPyN3

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-751fe70d
```

Example prompt: Search FlightAware for all active airline flights departing from KJFK operated by United Airlines — use an advanced query like {orig "KJFK" airline "UAL"} to find them.

## When to prefer this

Use this endpoint when you need to search for flights with complex, multi-field filtering criteria beyond simple origin/destination lookup — such as filtering by operator, aircraft type, flight category, or combining multiple conditions using FlightAware's advanced query syntax. Prefer this over basic flight listing endpoints when precision filtering is required.

## Known failure modes

- Invalid or malformed advanced query syntax returns an error
- Unknown airport code or operator ICAO returns empty results
- Missing required 'query' parameter returns a 400 error
- Rate limiting or payment failure returns a 402 response
- Query too broad may return truncated or paginated results requiring cursor navigation

## How this service works

Advanced flight search with complex query syntax.

## Output

Returns an array of flight objects, each with flight identifier, operator, type (Airline/General_Aviation/Cargo), origin and destination airport details (ICAO, IATA, city, timezone), route, status, departure and arrival times, aircraft info, diverted and blocked flags, and pagination links.

## 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",
     "required": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "description": "Advanced search query string"
      }
     },
     "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": [
      "flights"
     ],
     "properties": {
      "links": {
       "anyOf": [
        {
         "type": "object",
         "properties": {
          "next": {
           "anyOf": [
            {
             "type": "string"
            },
            {
             "type": "null"
            }
           ]
          }
         },
         "additionalProperties": false
        },
        {
         "type": "null"
        }
       ]
      },
      "flights": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "type": {
          "anyOf": [
           {
            "enum": [
             "Airline",
             "General_Aviation",
             "Cargo"
            ],
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "ident": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "route": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "origin": {
          "anyOf": [
           {
            "type": "object",
            "properties": {
             "city": {
              "anyOf": [
               {
                "type": "string"
               },
               {
                "type": "null"
     
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "flights": [
   {
    "type": "Airline",
    "ident": "AAL100",
    "origin": {
     "city": "New York",
     "code": "KJFK",
     "name": "John F. Kennedy International",
     "code_iata": "JFK",
     "code_icao": "KJFK"
    },
    "status": "Scheduled",
    "operator": "AAL",
    "ident_iata": "AA100",
    "ident_icao": "AAL100",
    "destination": {
     "city": "Los Angeles",
     "code": "KLAX",
     "name": "Los Angeles International",
     "code_iata": "LAX",
     "code_icao": "KLAX"
    },
    "fa_flight_id": "AAL100-1733068800-airline-0001",
    "scheduled_in": "2026-12-01T19:00:00Z",
    "aircraft_type": "B738",
    "flight_number": "100",
    "operator_iata": "AA",
    "operator_icao": "AAL",
    "scheduled_out": "2026-12-01T13:00:00Z"
   }
  ],
  "num_pages": 1
 }
}
```

## More

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