# FlightAware Flight Search by Query String

> FlightAware Flight Search by Query String is a paid API for AI agents from StableTravel at stabletravel.dev, paid per call via MPP or x402, $0.1/call, status unknown (last checked 2026-10-10).

Search for flights using FlightAware's query syntax including lat/long area, flight identifiers, or airline filters

## Facts

- Endpoint: GET https://stabletravel.dev/api/flightaware/flights/search?utm_source=zero.xyz
- Price: $0.1/call
- Payment: MPP, x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Provider: StableTravel
- Docs: https://stabletravel.dev
- Website: https://stabletravel.dev
- Tags: flightaware, flights, google-flights, seats-aero, travel, data, web
- Canonical page: https://www.zero.xyz/c/stabletravel-search-4acf7b1a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4r5Y3DPDDW1U0xXkErurS

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-search-4acf7b1a
```

Example prompt: Search FlightAware for all Delta Airlines flights currently active using the -airline syntax, and show me their origins, destinations, and statuses.

## When to prefer this

Use this endpoint when you need to search for flights across FlightAware's dataset using flexible query syntax — particularly when filtering by geographic area (lat/long bounding), specific flight identifiers, or airline. Prefer over airline-specific APIs when you need cross-carrier results or real-time positional queries. Choose over the Count endpoint when you need actual flight details, not just a count.

## Known failure modes

- Invalid query syntax returns an error — must use correct -latlong, -idents, or -airline prefix
- Missing required query parameter returns a 400 error
- No matching flights returns an empty flights array
- Malformed lat/long coordinates cause a query parse failure
- Rate limiting or payment failure returns a 402 response

## How this service works

Search for flights by query string (-latlong, -idents, -airline syntax)

## Output

Returns an array of flight objects, each containing flight identifier, IATA/ICAO idents, origin and destination airport details (city, code, timezone), flight status, operator, scheduled and actual departure/arrival times, route string, codeshares, whether the flight is blocked/diverted/cancelled, and a pagination link for the next page of results.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query string (-latlong, -idents, -airline syntax)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "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"
           }
          ]
         },
         "code": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "name": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "code_lid": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "timezone": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "code_iata": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "code_icao": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "airport_info_url": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         }
        },
        "additio
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stabletravel-search-4acf7b1a/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)
