# Airport Lookup by IATA or ICAO Code

> Airport Lookup by IATA or ICAO Code is a paid API for AI agents from airport.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns detailed airport information (name, codes, city, country, coordinates, elevation, type) for a given 3-letter IATA or 4-character ICAO code.

## Facts

- Endpoint: POST https://airport.openverbs.com/v1/airport
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/airport-lookup-by-iata-or-icao-code-2f9eb60c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g8kOT5DTMOxctKitFc6OD

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 airport-lookup-by-iata-or-icao-code-2f9eb60c -d '<json body>'
```

Example prompt: What airport is JFK — can you look it up and give me its full name, city, country, and coordinates?

## When to prefer this

Use this endpoint when you have a specific IATA or ICAO airport code and need structured details about that airport — name, location, coordinates, elevation, and type. Prefer this over the fuzzy-search sibling endpoint when the exact code is already known, and over the nearest-airports sibling when you have a code rather than coordinates.

## Known failure modes

- Invalid or unrecognized IATA/ICAO code returns an error or empty result
- Providing both IATA and ICAO simultaneously may be rejected (only one allowed)
- Malformed code (wrong length or format) returns a validation error
- Payment failure (x402) blocks the request from being processed

## How this service works

Look up an airport by its 3-letter IATA code or 4-character ICAO code. Provide exactly one. Returns the airport name, both codes, city, country, coordinates, elevation and type.

## Output

Returns a structured record containing the airport's full name, IATA code, ICAO code, city, country, geographic coordinates (latitude/longitude), elevation, and airport type for the queried code.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "iata": {
       "type": "string",
       "description": "3-letter IATA code, e.g. \"JFK\"."
      },
      "icao": {
       "type": "string",
       "description": "4-character ICAO code, e.g. \"KJFK\"."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/airport-lookup-by-iata-or-icao-code-2f9eb60c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from airport.openverbs.com](https://www.zero.xyz/host/airport.openverbs.com/llms.txt)
