Api Endpoint

Airport Lookup (IATA / ICAO)

Airport lookup by IATA or ICAO code: get the airport's name, city, country, ISO 3166-2 region code, WGS-84 coordinates, elevation and IANA time zone, or find the nearest airports to a coordinate within a radius. Covers every airport worldwide that holds a three-letter IATA code and scheduled service. Returns the code type that matched and the distance in kilometres for proximity results.

Open interactive test console

Offering

Provider
api.duoleads.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Location And Travel
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.duoleads.com/v1/ref/airport
MIME type
application/json
First seen
2026-10-16T01:50:38.788Z
Last seen
Tags
airport, airport-lookup, iata, travel, airports

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.05 USDC
Atomic price: 50000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "50000",
    "payTo": "0xCD673f7e1daD254347AEab6be0DEFe8b9C6b3A39"
  }
]

Observed health

Status
Healthy
Latest latency
50 ms
Average latency
384 ms
HTTP status
402
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "3-letter IATA or 4-letter ICAO code, case-insensitive.",
          "maxLength": 16
        },
        "near": {
          "type": "string",
          "description": "lat,lon to search around.",
          "maxLength": 64
        },
        "radius_km": {
          "type": "string",
          "description": "Search radius in km, 1-1000, default 100. Only with near.",
          "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
          "maxLength": 64,
          "default": "100"
        },
        "limit": {
          "type": "string",
          "description": "Maximum results 1-25, default 5. Only with near.",
          "pattern": "^[+-]?\\d+$",
          "maxLength": 64,
          "default": "5"
        },
        "country": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 filter.",
          "maxLength": 16
        }
      },
      "required": []
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "code": {
              "description": "3-letter IATA or 4-letter ICAO code, case-insensitive.",
              "maxLength": 16,
              "type": "string"
            },
            "country": {
              "description": "ISO 3166-1 alpha-2 filter.",
              "maxLength": 16,
              "type": "string"
            },
            "limit": {
              "default": "5",
              "description": "Maximum results 1-25, default 5. Only with near.",
              "maxLength": 64,
              "pattern": "^[+-]?\\d+$",
              "type": "string"
            },
            "near": {
              "description": "lat,lon to search around.",
              "maxLength": 64,
              "type": "string"
            },
            "radius_km": {
              "default": "100",
              "description": "Search radius in km, 1-1000, default 100. Only with near.",
              "maxLength": 64,
              "pattern": "^[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",
              "type": "string"
            }
          },
          "required": [],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "data": {
              "properties": {
                "airport": {
                  "properties": {
                    "country": {
                      "type": "string"
                    },
                    "elevation_ft": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "iata": {
                      "type": "string"
                    },
                    "icao": {
                      "type": "string"
                    },
                    "lat": {
                      "type": "number"
                    },
                    "lon": {
                      "type": "number"
                    },
                    "municipality": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "region": {
                      "type": "string"
                    },
                    "timezone": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "iata",
                    "icao",
                    "name",
                    "municipality",
                    "country",
                    "region",
                    "lat",
                    "lon",
                    "elevation_ft",
                    "type",
                    "timezone"
                  ],
                  "type": "object"
                },
                "found": {
                  "type": "boolean"
                },
                "matched_on": {
                  "type": "string"
                },
                "nearby": {
                  "items": {
                    "properties": {
                      "bearing_deg": {
                        "type": "number"
                      },
                      "country": {
                        "type": "string"
                      },
                      "distance_km": {
                        "type": "number"
                      },
                      "elevation_ft": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "iata": {
                        "type": "string"
                      },
                      "icao": {
                        "type": "string"
                      },
                      "lat": {
                        "type": "number"
                      },
                      "lon": {
                        "type": "number"
                      },
                      "municipality": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "region": {
                        "type": "string"
                      },
                      "timezone": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "iata",
                      "icao",
                      "name",
                      "municipality",
                      "country",
                      "region",
                      "lat",
                      "lon",
                      "elevation_ft",
                      "type",
                      "timezone",
                      "distance_km",
                      "bearing_deg"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "found"
              ],
              "type": "object"
            },
            "meta": {
              "properties": {
                "computed_at": {
                  "description": "RFC 3339 UTC with milliseconds",
                  "type": "string"
                },
                "deterministic": {
                  "type": "boolean"
                },
                "disclaimer": {
                  "type": "string"
                },
                "price_usd": {
                  "type": "string"
                },
                "request_id": {
                  "type": "string"
                },
                "sources": {
                  "items": {
                    "required": [
                      "id",
                      "version",
                      "published"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "request_id",
                "computed_at",
                "price_usd",
                "deterministic",
                "disclaimer"
              ],
              "type": "object"
            },
            "ok": {
              "const": true
            },
            "route": {
              "const": "/v1/ref/airport"
            },
            "version": {
              "type": "string"
            }
          },
          "required": [
            "ok",
            "route",
            "version",
            "data",
            "meta"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}