Airport lookup, IATA and ICAO codes

$0.01 per call · failed calls are never charged · no account or subscription: pay per call with a card key or USDC

Look up airports by IATA or ICAO code, name or city (Paris, JFK, EGLL, Heathrow): codes, full name, city, country, region, coordinates, elevation, size, scheduled service and Wikipedia link, for ~9,500 airports worldwide; or give lat and lon for the nearest airports with distances. Data: OurAirports (public domain), committed snapshot, answers in milliseconds. Use for travel tools, flight data enrichment and geocoding airport codes.

Run it free (25 free calls) Buy credits by card (from $1) Example result (JSON)

Try it with your own inputs

IATA code, ICAO code, airport name or city

Uses one of your 25 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
qstringIATA code, ICAO code, airport name or city
countrystringOnly airports in this country (code or name)
latnumberLatitude, for the nearest airports (with lon)
lonnumberLongitude, for the nearest airports (with lat)
scheduledstringtrue: only airports with scheduled passenger service
limitintegerNumber of airports (1-25, default 5)

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/airport/lookup?q=Stockholm"

Or one of your 25 free calls, no key:

curl "https://agent-data-tools.revmesh2074.workers.dev/airport/lookup?q=Stockholm&trial=1"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "count": 1,
  "airports": [
    {
      "iata": "ARN",
      "icao": "ESSA",
      "ident": "ESSA",
      "name": "Stockholm-Arlanda Airport",
      "city": "Stockholm",
      "country": "SE",
      "countryName": "Sweden",
      "region": "SE-AB",
      "lat": 59.6485,
      "lon": 17.9288,
      "elevationFt": 137,
      "type": "large",
      "scheduledService": true,
      "wikipedia": "https://en.wikipedia.org/wiki/Stockholm-Arlanda_Airport",
      "homepage": "http://www.swedavia.se/arlanda/"
    }
  ],
  "source": "OurAirports (public domain)",
  "dataDate": "2026-11-06"
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is airport_lookup, and the first 25 successful calls are free:

https://agent-data-tools.revmesh2074.workers.dev/mcp

Related tools