# SiteCheck Airport Lookup

> SiteCheck Airport Lookup is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-16).

Looks up airports by IATA/ICAO code, name/city text search, or nearest geographic coordinates, returning structured airport data.

## Facts

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

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 sitecheck-airport-lookup-a89a6a8d
```

Example prompt: Look up airport details for London Heathrow using its IATA code LHR and give me its coordinates, elevation, and ICAO code.

## When to prefer this

Use this endpoint when you need structured airport data (codes, coordinates, elevation, type) and can identify airports by IATA/ICAO code, name/city text, or geographic proximity. Prefer over general web search when you need machine-readable, consistently structured airport records from a known public-domain dataset. Ideal for travel planning agents, flight booking assistants, and logistics tools needing fast, pay-per-call airport lookups without a subscription.

## Known failure modes

- No airports found for the given code/query/coordinates — returns empty airports array
- Invalid IATA/ICAO code format — may return no results
- Coordinates outside valid range — may return no results
- Search radius out of allowed range (1–300 km) — likely validation error
- Limit parameter out of range (1–20) — may be clamped or rejected
- Payment failure if x402 micropayment not completed — 402 response

## How this service works

Airport lookup in a bundled OurAirports extract (public domain, dated in the answer): by IATA or ICAO code, by name or city words, or the nearest airports within a radius (up to 300 km) of a point. Covers large and medium airports and every airport with an IATA code; small airports without one are left out. Name, codes, type, city, country, coordinates, elevation and Wikipedia link. No time zone (not in the source).

## Output

Returns a JSON object with a count, the original query echoed back, a source attribution, and an array of matching airports each containing IATA code, ICAO code, name, city, country, latitude, longitude, elevation in meters, airport type (large/medium/small), Wikipedia URL, and the data date and check timestamp.

## 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": [],
     "properties": {
      "q": {
       "type": "string",
       "description": "Name or city words, 3 to 60 characters (one of code, q or lat and lon)"
      },
      "lat": {
       "type": "string",
       "description": "Latitude for the nearest search (with lon)"
      },
      "lon": {
       "type": "string",
       "description": "Longitude for the nearest search (with lat)"
      },
      "code": {
       "type": "string",
       "description": "IATA (3 letters) or ICAO (4 letters) code (one of code, q or lat and lon)"
      },
      "limit": {
       "type": "string",
       "description": "Airports to return, 1 to 20, default 10"
      },
      "radiusKm": {
       "type": "string",
       "description": "Search radius for the nearest search, 1 to 300, default 300"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "query": {
   "code": "LHR"
  },
  "source": "OurAirports (public domain), large and medium airports and all airports with an IATA code",
  "airports": [
   {
    "lat": 51.47075,
    "lon": -0.45991,
    "city": "London",
    "iata": "LHR",
    "icao": "EGLL",
    "name": "London Heathrow Airport",
    "type": "large",
    "country": "GB",
    "wikipedia": "https://en.wikipedia.org/wiki/Heathrow_Airport",
    "elevationM": 25
   }
  ],
  "dataDate": "2026-10-15",
  "checkedAt": "2026-10-15T14:00:30.557Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-airport-lookup-a89a6a8d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sitecheck-api.workers.dev](https://www.zero.xyz/host/api.sitecheck-api.workers.dev/llms.txt)
