# Airlines Reference – Route Count & Top Airports by Airline

> Airlines Reference – Route Count & Top Airports by Airline is a paid API for AI agents from airlines-reference.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-02).

Returns route count, airport count, codeshare routes, and top origin/destination airports for a given airline from the 2017 OpenFlights snapshot.

## Facts

- Endpoint: GET https://airlines-reference.x402tookit.com/airline-routes?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/airlines-reference-route-count-top-airports-by-airline-b7e42cc8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ifUV5o8RjawHcmKO6jsiB

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 airlines-reference-route-count-top-airports-by-airline-b7e42cc8
```

Example prompt: How many routes does British Airways (BA) have in the OpenFlights snapshot, and what are their top origin and destination airports?

## When to prefer this

Use this endpoint when you need a quick summary of an airline's route footprint — total routes, top hubs, and codeshare activity — based on the 2017 OpenFlights snapshot. Ideal for aviation data enrichment, historical route analysis, or building airline profile cards. Not suitable if you need real-time or post-2017 route data.

## Known failure modes

- Ambiguous airline code or name matching multiple airlines — disambiguate using openflightsId parameter
- Airline not found in the 2017 snapshot — returns null or empty result
- Inactive or defunct airline with no routes in snapshot — route count may be zero
- IATA/ICAO code not recognized — endpoint may return null airline object
- Payment failure via x402 protocol — call blocked before reaching the API

## How this service works

Route count and top origin and destination airports for an airline from the old OpenFlights routes snapshot (2017).

## Output

Returns a JSON object including the airline's IATA/ICAO codes, name, country, active status, total route count, airport count, codeshare route count, top origin airports (with route counts per airport), top destination airports (with route counts per airport), snapshot date (2017), attribution, and any data quality disclaimers or degradation flags.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "airline"
     ],
     "properties": {
      "airline": {
       "type": "string",
       "description": "IATA/ICAO code or name: BA, BAW, British Airways"
      },
      "openflightsId": {
       "type": "integer",
       "description": "Pick one airline when the code or name is ambiguous"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "airline": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "iata": {
         "type": [
          "null",
          "string"
         ]
        },
        "icao": {
         "type": [
          "null",
          "string"
         ]
        },
        "name": {
         "type": [
          "null",
          "string"
         ]
        },
        "alias": {},
        "active": {
         "type": [
          "boolean",
          "null"
         ]
        },
        "country": {
         "type": [
          "null",
          "string"
         ]
        },
        "callsign": {
         "type": [
          "null",
          "string"
         ]
        },
        "openflightsId": {
         "type": [
          "null",
          "number"
         ]
        },
        "routesInSnapshot": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      }
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/airlines-reference-route-count-top-airports-by-airline-b7e42cc8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from airlines-reference.x402tookit.com](https://www.zero.xyz/host/airlines-reference.x402tookit.com/llms.txt)
