# FlightAware Airport-to-Airport Flights

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

Returns a list of flights operating between two specific airports (CGK to KNO) including status, schedules, and operator details

## Facts

- Endpoint: GET https://stabletravel.dev/api/flightaware/airports/cgk/flights/to/kno
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stabletravel-dev-cea474b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oN5PWj0csu4Yhd5vyfR5s

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-dev-cea474b1
```

Example prompt: Can you pull up all the flights from Jakarta Soekarno-Hatta (CGK) to Medan Kualanamu (KNO) for tomorrow using FlightAware, and show me which ones are still scheduled or in the air?

## When to prefer this

Use this endpoint when you need to enumerate all flights operating between two specific airports — especially CGK and KNO — with real-time status, operator, and schedule data sourced from FlightAware. Prefer this over general airport-level flight endpoints when you know both origin and destination and need route-specific filtering.

## Known failure modes

- Invalid airport code returns empty results or 404
- No flights found for the given date range returns an empty flights array
- Pagination cursor mismatch or expired cursor returns an error
- Rate limiting or payment failure returns 402 or 429
- Server-side FlightAware data unavailability returns 503

## How this service works

Get flights from one airport to another specific destination airport

## Output

Returns an array of flight objects for the CGK-to-KNO route, each containing flight identifier, operator, origin and destination airport details (city, IATA/ICAO codes, timezone), scheduled and actual departure/arrival times, flight status, block/divert flags, aircraft type, and a pagination cursor 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",
     "properties": {
      "type": {
       "type": "string"
      },
      "cursor": {
       "type": "string"
      },
      "date_end": {
       "type": "string"
      },
      "max_pages": {
       "type": "number"
      },
      "connection": {
       "type": "string"
      },
      "date_start": {
       "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": [
      "flights"
     ],
     "properties": {
      "links": {
       "type": "object",
       "properties": {
        "next": {
         "anyOf": [
          {
           "type": "string"
          },
          {
           "type": "null"
          }
         ]
        }
       },
       "additionalProperties": false
      },
      "flights": {
       "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)
```

## More

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