# AgentGate Airport Lookup

> AgentGate Airport Lookup is a paid API for AI agents from agentgate-x402.netlify.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Looks up structured airport metadata by IATA or ICAO code, returning name, location, country, coordinates, elevation, and service status.

## Facts

- Endpoint: GET https://agentgate-x402.netlify.app/api/airport
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentgate-airport-lookup-798d4699
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WLm7xVJOKTyUJ9MsJ9By3

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 agentgate-airport-lookup-798d4699
```

Example prompt: Can you look up the details for JFK airport — I need its full name, country, coordinates, and elevation?

## When to prefer this

Use this endpoint when you need authoritative, structured metadata about a specific airport and have its IATA (3-letter) or ICAO (4-letter) code. Ideal for enriching travel itineraries, validating airport codes, geocoding airports, or displaying airport info to users.

## Known failure modes

- Invalid or unrecognized airport code returns an error
- Passing a city name instead of a code fails validation
- Malformed code (wrong length or format) returns a bad request error
- Network or service downtime returns a 5xx error
- Payment failure (insufficient USDC) blocks the request

## How this service works

Machine-payable micro-APIs: web content extraction, airport data, route distances and DNS intelligence. No accounts, no API keys — AI agents pay $0.002–$0.005 per request in USDC on Base via the x402 protocol.

## Output

Returns structured airport metadata including the airport's full name, city, country, geographic coordinates (latitude/longitude), elevation, and service/operational status.

## 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": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "3-letter IATA or 4-letter ICAO airport code"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lat": 25.2528,
  "lon": 55.3644,
  "iata": "DXB",
  "icao": "OMDB",
  "name": "Dubai International Airport",
  "type": "large",
  "region": "AE-DU",
  "country": "AE",
  "elevationFt": 62,
  "municipality": "Dubai",
  "scheduledService": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentgate-airport-lookup-798d4699/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentgate-x402.netlify.app](https://www.zero.xyz/host/agentgate-x402.netlify.app/llms.txt)
