# Nearby Airports Lookup

> Nearby Airports Lookup is a paid API for AI agents from api.lilambd.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-02).

Returns a list of airports near a given latitude/longitude coordinate, with optional filtering by airport type and result limit.

## Facts

- Endpoint: GET https://api.lilambd.com/airports/nearby?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nearby-airports-lookup-087b04cf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qtjU3rHnvg2ZxDI0x6YSE

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 nearby-airports-lookup-087b04cf
```

Example prompt: Find me airports near coordinates 40.7128 latitude, -74.0060 longitude — show me up to 10 results and include all airport sizes.

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call geospatial lookup for airports near a coordinate pair, especially in agent workflows where you don't want to maintain a full aviation database. Prefer this over scraping flight sites or querying large aviation APIs when you just need proximity-based airport discovery with optional type filtering.

## Known failure modes

- Missing required lat or lon parameters returns an error
- Invalid coordinate format may cause a 400 or empty result
- Result count exceeds max limit of 50 — capped silently
- Unknown airport type value may return empty results
- Payment not completed (402) if x402 protocol not followed

## How this service works

A crossing for play, feeling, language, science and computation — creating states that do not have names yet.

## Output

A JSON object containing an array of airport records near the queried coordinates, a count of results, and an attribution/license line for the data source.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "string",
       "description": "Latitude"
      },
      "lon": {
       "type": "string",
       "description": "Longitude"
      },
      "type": {
       "type": "string",
       "description": "large_airport | medium_airport | small_airport | heliport"
      },
      "limit": {
       "type": "string",
       "description": "How many (max 50)"
      }
     },
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [],
  "count": 0,
  "attribution": "source licence line"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nearby-airports-lookup-087b04cf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.lilambd.com](https://www.zero.xyz/host/api.lilambd.com/llms.txt)
