# StableTravel FlightAware Disruption Counts by Entity

> StableTravel FlightAware Disruption Counts by Entity is a paid API for AI agents from stabletravel.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-16).

Returns flight disruption counts (delays and cancellations) ranked by a disruption score for airlines or airports over a specified time period.

## Facts

- Endpoint: GET https://stabletravel.dev/api/flightaware/disruption-counts/entity_type
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stabletravel-flightaware-disruption-counts-by-entity-f2bc6482
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xUQtSJAaF-sdfLl8vnxWy

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-flightaware-disruption-counts-by-entity-f2bc6482
```

Example prompt: Which airlines have had the most delays and cancellations over the last 7 days? Show me the disruption scores and counts ranked by how bad each one is.

## When to prefer this

Use this endpoint when you need aggregated, ranked disruption statistics (delays + cancellations + score) across multiple airlines or airports for a historical time window. Prefer this over single-airport delay endpoints when you want comparative rankings or trend data across entities rather than real-time status at one specific airport.

## Known failure modes

- Invalid entity_type path parameter returns an error or empty result
- Unsupported time_period enum value causes a 400 bad request
- entity_id_filter with a non-existent ID returns an empty entities array
- Pagination cursor mismatch or expired cursor returns no results
- Payment not received results in 402 response blocking the data

## How this service works

Pay-per-request access to flights, award availability, hotels, activities, and transfers. No auth, no subscriptions.

## Output

A paginated list of entities (airlines or airports) with their disruption scores, total flight counts, delay counts, cancellation counts, entity IDs, and entity types. Also includes pagination metadata (num_pages, next cursor link).

## 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",
     "properties": {
      "cursor": {
       "type": "string"
      },
      "max_pages": {
       "type": "number"
      },
      "time_period": {
       "enum": [
        "today",
        "yesterday",
        "last3days",
        "last7days",
        "last14days",
        "last30days"
       ],
       "type": "string"
      },
      "entity_id_filter": {
       "type": "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": [
      "entities"
     ],
     "properties": {
      "links": {
       "type": "object",
       "properties": {
        "next": {
         "anyOf": [
          {
           "type": "string"
          },
          {
           "type": "null"
          }
         ]
        }
       },
       "additionalProperties": false
      },
      "entities": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "name": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "score": {
          "anyOf": [
           {
            "type": "number"
           },
           {
            "type": "null"
           }
          ]
         },
         "total": {
          "anyOf": [
           {
            "type": "number"
           },
           {
            "type": "null"
           }
          ]
         },
         "delays": {
          "anyOf": [
           {
            "type": "number"
           },
           {
            "type": "null"
           }
          ]
         },
         "entity_id": {
          "type": "string"
         },
         "entity_type": {
          "type": "strin
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "entities": [
   {
    "name": "American Airlines",
    "score": 0.12,
    "total": 47,
    "delays": 42,
    "entity_id": "AAL",
    "entity_type": "airline",
    "cancellations": 5
   }
  ],
  "num_pages": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stabletravel-flightaware-disruption-counts-by-entity-f2bc6482/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)
