# FlightAware Flight Search

> FlightAware 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 query strings by flight identifiers, lat/long coordinates, or airline codes via FlightAware's tracking data.

## Facts

- Endpoint: GET https://stabletravel.dev/api/flightaware/flights/search
- 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-b492c25c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ojhLWHCwm7jY-D39MYTrY

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-b492c25c
```

Example prompt: Search FlightAware for all active United Airlines flights right now using the -airline UAL query syntax — I want to see their idents, origins, destinations, and statuses.

## When to prefer this

Use this endpoint when you need to search across multiple flights simultaneously using FlightAware's powerful query syntax — particularly useful for finding all flights by an airline, all flights near coordinates, or looking up multiple idents at once. Prefer over flight-detail endpoints when you need a broad search rather than a known specific flight.

## Known failure modes

- Invalid query syntax (missing -latlong, -idents, or -airline prefix) returns an error
- Unknown airline code returns empty flights array
- Malformed lat/long coordinates cause query failure
- Payment failure (402) if x402 payment header is missing or insufficient
- Rate limiting if too many requests are made quickly

## How this service works

Search flights by query string (idents, latlong, airline).

## Output

An array of flight objects each containing flight ident, type (Airline/General_Aviation/Cargo), operator, origin and destination airport details (city, IATA/ICAO codes, timezone), flight status, route string, departure and arrival times, 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 (-latlong, -idents, -airline syntax)"
      }
     },
     "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"
               },
               {
        
… (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-b492c25c/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)
