# Airports Reference: Airport Code Converter (IATA ↔ ICAO)

> Airports Reference: Airport Code Converter (IATA ↔ ICAO) is a paid API for AI agents from airports-reference.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Converts an airport code between IATA (3-letter) and ICAO (4-letter) formats, validates the format, and reports whether the code is known.

## Facts

- Endpoint: GET https://airports-reference.x402tookit.com/airport-code-convert?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/airports-reference-airport-code-converter-iata-icao-58311be8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EiKcVFMtvSXYGAom-VEuj

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 airports-reference-airport-code-converter-iata-icao-58311be8
```

Example prompt: What's the ICAO code for London Heathrow — I have the IATA code LHR and need the 4-letter version for a flight plan.

## When to prefer this

Use this endpoint when you need to convert between IATA and ICAO airport code formats, validate whether a given code is correctly formatted and recognized, or retrieve basic airport metadata keyed by either code type. It is purpose-built for code-format translation and validation, unlike a general airport search endpoint which is better suited for fuzzy name matching or discovery.

## Known failure modes

- Unknown code: code passes format validation but is not found in the dataset — verdict reflects 'unknown', iata/icao fields may be null
- Invalid format: code does not match IATA (3 letters) or ICAO (4 letters) pattern — formatValid returns false
- Missing required parameter: omitting the 'code' query parameter results in an error response
- Ambiguous or non-airport ICAO prefix: some valid-format codes may not correspond to civilian airports

## How this service works

Convert an airport code between IATA (3 letters) and ICAO (4 letters) and validate the format; reports unknown codes.

## Output

Returns both the IATA and ICAO codes for the airport, a format validity flag, a verdict on whether the code is known, a human-readable summary, detailed airport metadata (name, type, lat/lon, country, region, municipality, elevation in meters and feet, scheduled service status), the input code echo, input kind (IATA or ICAO), and source/attribution fields. If the code is unknown or malformed, the verdict and reasons fields reflect that.

## 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": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "An IATA (LHR) or ICAO (EGLL) airport code"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "iata": {
       "type": [
        "null",
        "string"
       ]
      },
      "icao": {
       "type": [
        "null",
        "string"
       ]
      },
      "input": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "airport": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "lat": {
         "type": [
          "null",
          "number"
         ]
        },
        "lon": {
         "type": [
          "null",
          "number"
         ]
        },
        "iata": {
         "type": [
          "null",
          "string"
         ]
        },
        "icao": {
         "type": [
          "null",
          "string"
         ]
        },
        "name": {
         "type": [
          "null",
          "string"
         ]
        },
        "type": {
         "type": [
          "null",
          "string"
         ]
        },
        "ident": {
         "type": [
          "null",
          "string"
         ]
        },
        "region": {
         "type": [
          "null",
          "string"
         ]
        },
        "country": {
         "type": [
          "null",
          "string"
         ]
        },
        "elevationM": {
         "type": [
          "null",
          "number"
         ]
        },
        "regionName": {
         "type": [
          "null",
          "string"
         ]
        },
        "countryName": {
         "type": [
          "null",
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/airports-reference-airport-code-converter-iata-icao-58311be8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from airports-reference.x402tookit.com](https://www.zero.xyz/host/airports-reference.x402tookit.com/llms.txt)
