# FlightAware Flight Search with Positions

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

Search for flights matching a query string and return real-time position data including location, status, origin, destination, and flight type.

## Facts

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

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-58bacfc0
```

Example prompt: Search FlightAware for all airborne United Airlines flights right now and show me their current positions, statuses, and routes — use 'United' as the query and filter to airborne only.

## When to prefer this

Use this endpoint when you need to search for multiple flights matching a keyword, airline, callsign, or route pattern and want real-time position data included in the results. Prefer this over the airport-specific flights endpoint when you don't have a specific airport code but have a flight identifier, airline name, or route pattern. Choose this over the track endpoint when you want to discover flights first before drilling into a specific flight's full track.

## Known failure modes

- Missing required 'query' parameter returns validation error
- Invalid filter value (not 'airborne' or 'grounded') returns 400 error
- Query matches no flights returns empty flights array
- FlightAware upstream timeout returns 503 or gateway error
- Payment of 0.1 USDC not provided returns 402 Payment Required

## How this service works

Search flights with position data.

## Output

Returns an array of flight objects each containing flight identifier, type (Airline/General_Aviation/Cargo), origin and destination airports (with IATA/ICAO codes, city, timezone), current status, route string, position data, and a pagination link for additional results.

## 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": "Search query string"
      },
      "filter": {
       "enum": [
        "airborne",
        "grounded"
       ],
       "type": "string",
       "description": "Filter by flight state"
      },
      "unique_flights": {
       "type": "boolean",
       "description": "Return only unique flights"
      }
     },
     "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"
           }
          ]
         },
         "orig
… (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",
    "last_position": {
     "heading": 270,
     "altitude": 350,
     "latitude": 40.5,
     "longitude": -100.1,
     "timestamp": "2026-12-01T15:00:00Z",
     "groundspeed": 480,
     "update_type": "A",
     "fa_flight_id": "AAL100-1733068800-airline-0001",
     "altitude_change": "C"
    },
    "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-58bacfc0/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)
