# FlightAware Flight Search Count

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

Returns the count of flights matching a given search query via the FlightAware API.

## Facts

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

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-5fdf3999
```

Example prompt: How many flights currently match the search query 'origin:KORD destination:KLAX' in FlightAware right now?

## When to prefer this

Use this endpoint when you need a quick numeric summary of how many flights match a specific search — for example, to gauge traffic volume, check disruption scale, or decide whether to fetch full flight details. Prefer this over the full flight search endpoint when you only need the count and want to minimize cost and payload size.

## Known failure modes

- Invalid or malformed search query string returns an error or zero count
- Missing required 'query' parameter results in a 400 bad request
- FlightAware API downtime or rate limiting returns a 5xx or timeout error
- No matching flights returns a count of 0
- Authentication or payment failure via x402 protocol

## How this service works

Get count of flights matching a search.

## Output

A single numeric count representing the number of flights that match the provided search query string.

## 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"
      }
     },
     "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": [
      "count"
     ],
     "properties": {
      "count": {
       "type": "number"
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 42
 }
}
```

## More

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