Airport lookup, IATA and ICAO codes
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.
Inputs
| Name | Type | Description |
|---|---|---|
q | string | IATA code, ICAO code, airport name or city |
country | string | Only airports in this country (code or name) |
lat | number | Latitude, for the nearest airports (with lon) |
lon | number | Longitude, for the nearest airports (with lat) |
scheduled | string | true: only airports with scheduled passenger service |
limit | integer | Number 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