# opendata402 Airport Lookup

> opendata402 Airport Lookup is a paid API for AI agents from opendata402.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-15).

Look up airport details by IATA code, ICAO code, or name/city, returning name, type, location, coordinates, elevation, and service status for ~9,000 airports worldwide.

## Facts

- Endpoint: GET https://opendata402.com/v1/airports?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/opendata402-airport-lookup-0fc4a2ce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2sHpKXLTeppzy8X5jme0x

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 opendata402-airport-lookup-0fc4a2ce
```

Example prompt: What are the full details for Amsterdam Airport Schiphol — its IATA and ICAO codes, coordinates, elevation, country, and whether it has scheduled service?

## When to prefer this

Choose this endpoint when you need structured, authoritative airport reference data — especially coordinates, codes, type, and scheduled-service status — for travel itinerary planning, logistics routing, or aviation lookups. It covers ~9,000 large, medium, and IATA-coded airports globally with nightly-refreshed OurAirports data. Prefer it over general geocoding APIs when the entity is specifically an airport and you need both IATA and ICAO identifiers together.

## Known failure modes

- No results found if the IATA/ICAO code is invalid or not in the database
- Ambiguous name/city queries may return multiple results requiring further filtering
- Small or private airports not assigned IATA codes may not appear
- Stale data possible for recently opened or closed airports despite nightly refresh
- Missing q or code parameter returns an error requiring at least one search term

## How this service works

Airport lookup by IATA code (AMS), ICAO code (EHAM) or name/city: name, type, city, country, region, coordinates, elevation, scheduled service and both codes, for about 9,000 large, medium and IATA-coded airports worldwide. Use it for travel, logistics and aviation tasks. OurAirports data, public domain, refreshed nightly.

## Output

Returns a JSON object (or array) with airport name, type (large/medium/small), city, country, region, geographic coordinates (latitude/longitude), elevation in feet, scheduled service flag, IATA code, and ICAO code for each matched airport.

## 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",
     "properties": {
      "q": {
       "type": "string",
       "maxLength": 80,
       "minLength": 3,
       "description": "Name or city."
      },
      "code": {
       "type": "string",
       "pattern": "^[A-Za-z0-9]{3,4}$",
       "description": "IATA (3) or ICAO (4) code."
      },
      "country": {
       "type": "string",
       "pattern": "^[A-Za-z]{2}$",
       "description": "ISO country code filter for q."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/opendata402-airport-lookup-0fc4a2ce/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from opendata402.com](https://www.zero.xyz/host/opendata402.com/llms.txt)
