# IATA/ICAO Airport Code Lookup

> IATA/ICAO Airport Code Lookup is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Looks up airport details by IATA or ICAO code, returning name, type, location coordinates, country, region, municipality, scheduled service flag, and reference links.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/iata-airport-info
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-6048aa05
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q93reXRGxVbGQpmDJu-U5

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 x402-deployer-x402-deployer-workers-dev-6048aa05 -d '<json body>'
```

Example prompt: Can you look up the full details for the airport with IATA code SIN — I need its official name, what type of airport it is, its country and municipality, whether it has scheduled service, and its coordinates.

## When to prefer this

Use this endpoint when you need structured, authoritative airport metadata from a code — especially when you need location, country, type, or scheduled-service status for travel planning, data enrichment, or flight-related workflows. Prefer over web scraping or general search when you need clean structured data from a well-known CC0 aviation dataset.

## Known failure modes

- Unknown or invalid IATA/ICAO code returns an error or empty result
- Mistyped 3-letter vs 4-letter code (IATA vs ICAO confusion) may yield no match
- Small private airfields may have limited metadata
- Wikipedia/homepage links may be null for minor airports

## How this service works

IATA / ICAO airport code lookup. Returns name, type, location, country, region, municipality, scheduled-service flag, home/wikipedia links. OurAirports CC0.

## Output

Returns the airport's full name, type (e.g. large_airport, heliport), geographic coordinates, country code, region, municipality, whether scheduled service operates, and links to its homepage and Wikipedia page.

## 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": {
     "required": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "IATA-3 (e.g. 'SFO', 'JFK', 'LHR') or ICAO-4 (e.g. 'KSFO', 'KJFK', 'EGLL') airport code. Case-insensitive."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "query": {
       "type": "string"
      },
      "airport": {
       "type": "object",
       "properties": {
        "iata": {
         "type": "string"
        },
        "icao": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "type": {
         "type": "string"
        },
        "region": {
         "type": "string"
        },
        "country": {
         "type": "string"
        },
        "latitude": {
         "type": "number"
        },
        "continent": {
         "type": "string"
        },
        "home_link": {
         "type": "string"
        },
        "longitude": {
         "type": "number"
        },
        "elevation_ft": {
         "type": "integer"
        },
        "municipality": {
         "type": "string"
        },
        "wikipedia_link": {
         "type": "string"
        },
        "scheduled_service": {
         "type": "boolean"
        }
       }
      },
      "attribution": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-6048aa05/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
