# StableTravel FlightAware Airport Departure History

> StableTravel FlightAware Airport Departure History is a paid API for AI agents from stabletravel.dev, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-13).

Retrieves historical departure flights for a specific airport by its identifier, with optional filtering by time range and airline.

## Facts

- Endpoint: GET https://stabletravel.dev/api/flightaware/history/airports/id/flights/departures
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stabletravel-flightaware-airport-departure-history-292fa42b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2fPIWyoZNIPYkQ__FNB36

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-airport-departure-history-292fa42b
```

Example prompt: Can you pull the historical departure flights from JFK airport for December 1st 2026, filtering to just American Airlines flights?

## When to prefer this

Use this endpoint when you need historical (past) departure records for a specific airport, optionally filtered by time window or airline. Prefer this over arrival endpoints when the query is about outbound flights. Prefer this over live/scheduled endpoints when the user needs actuals rather than forecasts. Ideal for auditing past flight operations, verifying departure times, or building departure history datasets without requiring authentication or subscriptions.

## Known failure modes

- Invalid or unrecognized airport ID returns empty results or 404
- Date range too broad may result in truncated or paginated response requiring cursor navigation
- Invalid airline code filter silently returns no results
- Missing required airport ID in URL path causes 400 or routing error
- Pagination cursor expiry may break multi-page retrieval sessions
- Payment failure (402) if USDC balance insufficient for $0.04 per call

## 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 historical departure records for the specified airport, each including flight identifier (IATA/ICAO), origin and destination airport details (city, codes, timezone), scheduled and actual departure/arrival times, flight status, operator codes, aircraft type, and pagination links for additional pages.

## 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": {
      "end": {
       "type": "string"
      },
      "start": {
       "type": "string"
      },
      "cursor": {
       "type": "string"
      },
      "airline": {
       "type": "string"
      },
      "max_pages": {
       "type": "number"
      }
     },
     "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": [
      "departures"
     ],
     "properties": {
      "links": {
       "type": "object",
       "properties": {
        "next": {
         "anyOf": [
          {
           "type": "string"
          },
          {
           "type": "null"
          }
         ]
        }
       },
       "additionalProperties": false
      },
      "num_pages": {
       "type": "number"
      },
      "departures": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "type": {
          "anyOf": [
           {
            "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": 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "num_pages": 1,
  "departures": [
   {
    "type": "Airline",
    "ident": "AAL100",
    "origin": {
     "city": "New York",
     "code": "KJFK",
     "name": "John F. Kennedy International",
     "code_iata": "JFK",
     "code_icao": "KJFK"
    },
    "status": "Arrived",
    "operator": "AAL",
    "actual_in": "2026-12-01T18:55:00Z",
    "actual_out": "2026-12-01T13:05:00Z",
    "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"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stabletravel-flightaware-airport-departure-history-292fa42b/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)
